Home
last modified time | relevance | path

Searched refs:dev_root (Results 1 – 25 of 37) sorted by relevance

12

/linux/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c119 struct device *dev_root; in fsl_wakeup_sys_init() local
128 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_init()
129 if (dev_root) { in fsl_wakeup_sys_init()
130 ret = device_create_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_init()
131 put_device(dev_root); in fsl_wakeup_sys_init()
141 struct device *dev_root; in fsl_wakeup_sys_exit() local
143 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_exit()
144 if (dev_root) { in fsl_wakeup_sys_exit()
145 device_remove_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_exit()
146 put_device(dev_root); in fsl_wakeup_sys_exit()
/linux/arch/powerpc/platforms/pseries/
H A Dpseries_energy.c303 struct device *cpu_dev, *dev_root; in pseries_energy_init() local
309 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_init()
310 if (dev_root) { in pseries_energy_init()
311 err = device_create_file(dev_root, &attr_cpu_activate_hint_list); in pseries_energy_init()
314 put_device(dev_root); in pseries_energy_init()
342 struct device *cpu_dev, *dev_root; in pseries_energy_cleanup() local
348 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_cleanup()
349 if (dev_root) { in pseries_energy_cleanup()
350 device_remove_file(dev_root, &attr_cpu_activate_hint_list); in pseries_energy_cleanup()
351 device_remove_file(dev_root, &attr_cpu_deactivate_hint_list); in pseries_energy_cleanup()
[all …]
H A Dsuspend.c147 struct device *dev_root; in pseries_suspend_sysfs_register() local
156 dev_root = bus_get_dev_root(&suspend_subsys); in pseries_suspend_sysfs_register()
157 if (dev_root) { in pseries_suspend_sysfs_register()
158 rc = device_create_file(dev_root, &dev_attr_hibernate); in pseries_suspend_sysfs_register()
159 put_device(dev_root); in pseries_suspend_sysfs_register()
/linux/drivers/hv/
H A Dhv_debugfs.c113 struct dentry *delay, *dev_root; in hv_debug_add_dev_dir() local
117 dev_root = debugfs_create_dir(device, hv_debug_root); in hv_debug_add_dev_dir()
118 if (IS_ERR(dev_root)) { in hv_debug_add_dev_dir()
121 return PTR_ERR(dev_root); in hv_debug_add_dev_dir()
123 hv_debug_set_test_state(dev, dev_root); in hv_debug_add_dev_dir()
124 hv_debug_set_dir_dentry(dev, dev_root); in hv_debug_add_dev_dir()
125 delay = debugfs_create_dir(delay_name, dev_root); in hv_debug_add_dev_dir()
/linux/drivers/sh/intc/
H A Duserimask.c67 struct device *dev_root; in userimask_sysdev_init() local
73 dev_root = bus_get_dev_root(&intc_subsys); in userimask_sysdev_init()
74 if (dev_root) { in userimask_sysdev_init()
75 ret = device_create_file(dev_root, &dev_attr_userimask); in userimask_sysdev_init()
76 put_device(dev_root); in userimask_sysdev_init()
/linux/drivers/platform/x86/
H A Dibm_rtl.c203 struct device *dev_root = bus_get_dev_root(&rtl_subsys); in rtl_setup_sysfs() local
205 if (dev_root) { in rtl_setup_sysfs()
207 device_create_file(dev_root, rtl_attributes[i]); in rtl_setup_sysfs()
208 put_device(dev_root); in rtl_setup_sysfs()
215 struct device *dev_root = bus_get_dev_root(&rtl_subsys); in rtl_teardown_sysfs() local
218 if (dev_root) { in rtl_teardown_sysfs()
220 device_remove_file(dev_root, rtl_attributes[i]); in rtl_teardown_sysfs()
221 put_device(dev_root); in rtl_teardown_sysfs()
/linux/drivers/acpi/
H A Dacpi_lpit.c101 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in lpit_update_residency() local
104 if (!dev_root) in lpit_update_residency()
119 sysfs_add_file_to_group(&dev_root->kobj, in lpit_update_residency()
123 sysfs_add_file_to_group(&dev_root->kobj, in lpit_update_residency()
128 put_device(dev_root); in lpit_update_residency()
/linux/arch/sh/drivers/dma/
H A Ddma-sysfs.c48 struct device *dev_root; in dma_subsys_init() local
55 dev_root = bus_get_dev_root(&dma_subsys); in dma_subsys_init()
56 if (dev_root) { in dma_subsys_init()
57 ret = device_create_file(dev_root, &dev_attr_devices); in dma_subsys_init()
58 put_device(dev_root); in dma_subsys_init()
/linux/arch/powerpc/platforms/powernv/
H A Dsubcore.c420 struct device *dev_root; in subcore_init() local
443 dev_root = bus_get_dev_root(&cpu_subsys); in subcore_init()
444 if (dev_root) { in subcore_init()
445 rc = device_create_file(dev_root, &dev_attr_subcores_per_core); in subcore_init()
446 put_device(dev_root); in subcore_init()
H A Didle.c1469 struct device *dev_root; in pnv_init_idle_states() local
1476 dev_root = bus_get_dev_root(&cpu_subsys); in pnv_init_idle_states()
1477 if (dev_root) { in pnv_init_idle_states()
1478 device_create_file(dev_root, in pnv_init_idle_states()
1480 put_device(dev_root); in pnv_init_idle_states()
/linux/drivers/edac/
H A Dedac_pci_sysfs.c342 struct device *dev_root; in edac_pci_main_kobj_setup() local
372 dev_root = bus_get_dev_root(edac_subsys); in edac_pci_main_kobj_setup()
373 if (dev_root) { in edac_pci_main_kobj_setup()
376 &dev_root->kobj, "pci"); in edac_pci_main_kobj_setup()
377 put_device(dev_root); in edac_pci_main_kobj_setup()
H A Dedac_device_sysfs.c231 struct device *dev_root; in edac_device_register_sysfs_main_kobj() local
255 dev_root = bus_get_dev_root(edac_subsys); in edac_device_register_sysfs_main_kobj()
256 if (dev_root) { in edac_device_register_sysfs_main_kobj()
258 &dev_root->kobj, "%s", edac_dev->name); in edac_device_register_sysfs_main_kobj()
259 put_device(dev_root); in edac_device_register_sysfs_main_kobj()
/linux/fs/btrfs/
H A Ddev-replace.c74 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace() local
84 if (!dev_root) in btrfs_init_dev_replace()
96 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); in btrfs_init_dev_replace()
348 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_run_dev_replace() local
372 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); in btrfs_run_dev_replace()
393 ret = btrfs_del_item(trans, dev_root, path); in btrfs_run_dev_replace()
406 ret = btrfs_insert_empty_item(trans, dev_root, path, in btrfs_run_dev_replace()
458 struct btrfs_root *root = fs_info->dev_root; in mark_block_group_to_copy()
602 struct btrfs_root *root = fs_info->dev_root; in btrfs_dev_replace_start()
/linux/arch/x86/kernel/cpu/microcode/
H A Dcore.c809 struct device *dev_root; in microcode_init() local
835 dev_root = bus_get_dev_root(&cpu_subsys); in microcode_init()
836 if (dev_root) { in microcode_init()
837 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group); in microcode_init()
838 put_device(dev_root); in microcode_init()
/linux/drivers/platform/x86/intel/uncore-frequency/
H A Duncore-frequency-common.c286 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in uncore_freq_common_init() local
288 if (dev_root) { in uncore_freq_common_init()
290 &dev_root->kobj); in uncore_freq_common_init()
291 put_device(dev_root); in uncore_freq_common_init()
/linux/arch/powerpc/kernel/
H A Dsysfs.c220 struct device *dev_root; in sysfs_create_dscr_default() local
227 dev_root = bus_get_dev_root(&cpu_subsys); in sysfs_create_dscr_default()
228 if (dev_root) { in sysfs_create_dscr_default()
229 device_create_file(dev_root, &dev_attr_dscr_default); in sysfs_create_dscr_default()
230 put_device(dev_root); in sysfs_create_dscr_default()
754 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in create_svm_file() local
756 if (dev_root) { in create_svm_file()
757 device_create_file(dev_root, &dev_attr_svm); in create_svm_file()
758 put_device(dev_root); in create_svm_file()
/linux/arch/s390/kernel/
H A Dtopology.c679 struct device *dev_root; in topology_init() local
691 dev_root = bus_get_dev_root(&cpu_subsys); in topology_init()
692 if (dev_root) { in topology_init()
693 rc = device_create_file(dev_root, &dev_attr_dispatching); in topology_init()
694 put_device(dev_root); in topology_init()
H A Dsmp.c1189 struct device *dev_root; in s390_smp_init() local
1192 dev_root = bus_get_dev_root(&cpu_subsys); in s390_smp_init()
1193 if (dev_root) { in s390_smp_init()
1194 rc = device_create_file(dev_root, &dev_attr_rescan); in s390_smp_init()
1195 put_device(dev_root); in s390_smp_init()
/linux/drivers/base/
H A Dbus.c949 if (sp->dev_root) in bus_unregister()
950 device_unregister(sp->dev_root); in bus_unregister()
1244 sp->dev_root = dev; in subsys_register()
1374 struct device *dev_root; in bus_get_dev_root() local
1379 dev_root = get_device(sp->dev_root); in bus_get_dev_root()
1381 return dev_root; in bus_get_dev_root()
H A Dbase.h54 struct device *dev_root; member
/linux/drivers/cpuidle/
H A Dsysfs.c125 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in cpuidle_add_interface() local
128 if (!dev_root) in cpuidle_add_interface()
131 retval = sysfs_create_group(&dev_root->kobj, &cpuidle_attr_group); in cpuidle_add_interface()
132 put_device(dev_root); in cpuidle_add_interface()
/linux/kernel/
H A Dcpu.c3028 struct device *dev_root; in cpu_smt_sysfs_init() local
3031 dev_root = bus_get_dev_root(&cpu_subsys); in cpu_smt_sysfs_init()
3032 if (dev_root) { in cpu_smt_sysfs_init()
3033 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group); in cpu_smt_sysfs_init()
3034 put_device(dev_root); in cpu_smt_sysfs_init()
3041 struct device *dev_root; in cpuhp_sysfs_init() local
3048 dev_root = bus_get_dev_root(&cpu_subsys); in cpuhp_sysfs_init()
3049 if (dev_root) { in cpuhp_sysfs_init()
3050 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group); in cpuhp_sysfs_init()
3051 put_device(dev_root); in cpuhp_sysfs_init()
/linux/drivers/cpufreq/
H A Damd-pstate.c1833 struct device *dev_root; in amd_pstate_init() local
1924 dev_root = bus_get_dev_root(&cpu_subsys); in amd_pstate_init()
1925 if (dev_root) { in amd_pstate_init()
1926 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); in amd_pstate_init()
1927 put_device(dev_root); in amd_pstate_init()
/linux/drivers/md/
H A Ddm-thin-metadata.c1108 dm_block_t dev_root; in __create_thin() local
1121 r = dm_btree_empty(&pmd->bl_info, &dev_root); in __create_thin()
1128 value = cpu_to_le64(dev_root); in __create_thin()
1132 dm_btree_del(&pmd->bl_info, dev_root); in __create_thin()
1139 dm_btree_del(&pmd->bl_info, dev_root); in __create_thin()
/linux/arch/x86/coco/sev/
H A Dcore.c2583 struct device *dev_root; in sev_sysfs_init() local
2589 dev_root = bus_get_dev_root(&cpu_subsys); in sev_sysfs_init()
2590 if (!dev_root) in sev_sysfs_init()
2593 sev_kobj = kobject_create_and_add("sev", &dev_root->kobj); in sev_sysfs_init()
2594 put_device(dev_root); in sev_sysfs_init()

12