Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/powerpc/sysdev/
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-6.6.21/arch/powerpc/platforms/pseries/
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()
313 err = device_create_file(dev_root, &attr_cpu_deactivate_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()
[all …]
Dsuspend.c146 struct device *dev_root; in pseries_suspend_sysfs_register() local
155 dev_root = bus_get_dev_root(&suspend_subsys); in pseries_suspend_sysfs_register()
156 if (dev_root) { in pseries_suspend_sysfs_register()
157 rc = device_create_file(dev_root, &dev_attr_hibernate); in pseries_suspend_sysfs_register()
158 put_device(dev_root); in pseries_suspend_sysfs_register()
/linux-6.6.21/drivers/sh/intc/
Duserimask.c64 struct device *dev_root; in userimask_sysdev_init() local
70 dev_root = bus_get_dev_root(&intc_subsys); in userimask_sysdev_init()
71 if (dev_root) { in userimask_sysdev_init()
72 ret = device_create_file(dev_root, &dev_attr_userimask); in userimask_sysdev_init()
73 put_device(dev_root); in userimask_sysdev_init()
/linux-6.6.21/drivers/hv/
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-6.6.21/drivers/platform/x86/
Dibm_rtl.c202 struct device *dev_root = bus_get_dev_root(&rtl_subsys); in rtl_setup_sysfs() local
204 if (dev_root) { in rtl_setup_sysfs()
206 device_create_file(dev_root, rtl_attributes[i]); in rtl_setup_sysfs()
207 put_device(dev_root); in rtl_setup_sysfs()
214 struct device *dev_root = bus_get_dev_root(&rtl_subsys); in rtl_teardown_sysfs() local
217 if (dev_root) { in rtl_teardown_sysfs()
219 device_remove_file(dev_root, rtl_attributes[i]); in rtl_teardown_sysfs()
220 put_device(dev_root); in rtl_teardown_sysfs()
/linux-6.6.21/drivers/acpi/
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-6.6.21/arch/sh/drivers/dma/
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-6.6.21/arch/powerpc/platforms/powernv/
Dsubcore.c420 struct device *dev_root; in subcore_init() local
442 dev_root = bus_get_dev_root(&cpu_subsys); in subcore_init()
443 if (dev_root) { in subcore_init()
444 rc = device_create_file(dev_root, &dev_attr_subcores_per_core); in subcore_init()
445 put_device(dev_root); in subcore_init()
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-6.6.21/arch/x86/kernel/cpu/microcode/
Dcore.c634 struct device *dev_root; in microcode_init() local
655 dev_root = bus_get_dev_root(&cpu_subsys); in microcode_init()
656 if (dev_root) { in microcode_init()
657 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group); in microcode_init()
658 put_device(dev_root); in microcode_init()
/linux-6.6.21/drivers/platform/x86/intel/uncore-frequency/
Duncore-frequency-common.c283 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in uncore_freq_common_init() local
285 if (dev_root) { in uncore_freq_common_init()
287 &dev_root->kobj); in uncore_freq_common_init()
288 put_device(dev_root); in uncore_freq_common_init()
/linux-6.6.21/drivers/edac/
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()
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-6.6.21/fs/btrfs/
Ddev-replace.c77 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_init_dev_replace() local
87 if (!dev_root) in btrfs_init_dev_replace()
99 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0); in btrfs_init_dev_replace()
349 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_run_dev_replace() local
373 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); in btrfs_run_dev_replace()
394 ret = btrfs_del_item(trans, dev_root, path); in btrfs_run_dev_replace()
407 ret = btrfs_insert_empty_item(trans, dev_root, path, in btrfs_run_dev_replace()
459 struct btrfs_root *root = fs_info->dev_root; in mark_block_group_to_copy()
605 struct btrfs_root *root = fs_info->dev_root; in btrfs_dev_replace_start()
/linux-6.6.21/arch/powerpc/kernel/
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-6.6.21/arch/s390/kernel/
Dtopology.c644 struct device *dev_root; in topology_init() local
654 dev_root = bus_get_dev_root(&cpu_subsys); in topology_init()
655 if (dev_root) { in topology_init()
656 rc = device_create_file(dev_root, &dev_attr_dispatching); in topology_init()
657 put_device(dev_root); in topology_init()
Dsmp.c1237 struct device *dev_root; in s390_smp_init() local
1240 dev_root = bus_get_dev_root(&cpu_subsys); in s390_smp_init()
1241 if (dev_root) { in s390_smp_init()
1242 rc = device_create_file(dev_root, &dev_attr_rescan); in s390_smp_init()
1243 put_device(dev_root); in s390_smp_init()
/linux-6.6.21/drivers/base/
Dbus.c938 if (sp->dev_root) in bus_unregister()
939 device_unregister(sp->dev_root); in bus_unregister()
1233 sp->dev_root = dev; in subsys_register()
1363 struct device *dev_root; in bus_get_dev_root() local
1368 dev_root = get_device(sp->dev_root); in bus_get_dev_root()
1370 return dev_root; in bus_get_dev_root()
Dbase.h54 struct device *dev_root; member
/linux-6.6.21/drivers/cpuidle/
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-6.6.21/kernel/
Dcpu.c3040 struct device *dev_root; in cpu_smt_sysfs_init() local
3043 dev_root = bus_get_dev_root(&cpu_subsys); in cpu_smt_sysfs_init()
3044 if (dev_root) { in cpu_smt_sysfs_init()
3045 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group); in cpu_smt_sysfs_init()
3046 put_device(dev_root); in cpu_smt_sysfs_init()
3053 struct device *dev_root; in cpuhp_sysfs_init() local
3060 dev_root = bus_get_dev_root(&cpu_subsys); in cpuhp_sysfs_init()
3061 if (dev_root) { in cpuhp_sysfs_init()
3062 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group); in cpuhp_sysfs_init()
3063 put_device(dev_root); in cpuhp_sysfs_init()
/linux-6.6.21/drivers/cpufreq/
Damd-pstate.c1474 struct device *dev_root; in amd_pstate_init() local
1539 dev_root = bus_get_dev_root(&cpu_subsys); in amd_pstate_init()
1540 if (dev_root) { in amd_pstate_init()
1541 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); in amd_pstate_init()
1542 put_device(dev_root); in amd_pstate_init()
Dcpufreq.c2986 struct device *dev_root; in cpufreq_core_init() local
2991 dev_root = bus_get_dev_root(&cpu_subsys); in cpufreq_core_init()
2992 if (dev_root) { in cpufreq_core_init()
2993 cpufreq_global_kobject = kobject_create_and_add("cpufreq", &dev_root->kobj); in cpufreq_core_init()
2994 put_device(dev_root); in cpufreq_core_init()
/linux-6.6.21/drivers/md/
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()

12