Home
last modified time | relevance | path

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

12

/openbmc/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()
/openbmc/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.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()
/openbmc/linux/drivers/sh/intc/
H A 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()
/openbmc/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()
/openbmc/linux/drivers/platform/x86/
H A 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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A 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()
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()
/openbmc/linux/arch/x86/kernel/cpu/microcode/
H A 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()
/openbmc/linux/drivers/platform/x86/intel/uncore-frequency/
H A 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()
/openbmc/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()
/openbmc/linux/fs/btrfs/
H A 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()
/openbmc/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()
/openbmc/linux/arch/s390/kernel/
H A 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()
H A 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()
/openbmc/linux/drivers/base/
H A 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()
H A Dbase.h54 struct device *dev_root; member
/openbmc/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()
/openbmc/linux/kernel/
H A 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()
/openbmc/linux/drivers/cpufreq/
H A 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()
/openbmc/u-boot/fs/btrfs/
H A Dconv-funcs.h162 dev_root, dev_root_gen, csum_root, csum_root_gen, total_bytes,
H A Dctree.h115 __u64 dev_root; member

12