Home
last modified time | relevance | path

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

/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()
/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()
/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()
/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()
/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()
/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()
/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()
/arch/arm64/kernel/
Dcpufeature.c1517 struct device *dev_root; in aarch32_el0_sysfs_init() local
1523 dev_root = bus_get_dev_root(&cpu_subsys); in aarch32_el0_sysfs_init()
1524 if (dev_root) { in aarch32_el0_sysfs_init()
1525 ret = device_create_file(dev_root, &dev_attr_aarch32_el0); in aarch32_el0_sysfs_init()
1526 put_device(dev_root); in aarch32_el0_sysfs_init()