| /linux/arch/powerpc/sysdev/ |
| H A D | fsl_mpic_timer_wakeup.c | 111 struct device *dev_root; in fsl_wakeup_sys_init() local 120 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_init() 121 if (dev_root) { in fsl_wakeup_sys_init() 122 ret = device_create_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_init() 123 put_device(dev_root); in fsl_wakeup_sys_init() 133 struct device *dev_root; in fsl_wakeup_sys_exit() local 135 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_exit() 136 if (dev_root) { in fsl_wakeup_sys_exit() 137 device_remove_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_exit() 138 put_device(dev_root); in fsl_wakeup_sys_exit()
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | pseries_energy.c | 303 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 …]
|
| H A D | suspend.c | 147 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 D | hv_debugfs.c | 113 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 D | userimask.c | 67 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 D | ibm_rtl.c | 203 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/arch/sh/drivers/dma/ |
| H A D | dma-sysfs.c | 48 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 D | subcore.c | 420 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()
|
| /linux/drivers/edac/ |
| H A D | edac_pci_sysfs.c | 342 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 D | edac_device_sysfs.c | 231 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/arch/x86/kernel/cpu/microcode/ |
| H A D | core.c | 879 struct device *dev_root; in microcode_init() local 905 dev_root = bus_get_dev_root(&cpu_subsys); in microcode_init() 906 if (dev_root) { in microcode_init() 907 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group); in microcode_init() 908 put_device(dev_root); in microcode_init()
|
| /linux/drivers/platform/x86/intel/uncore-frequency/ |
| H A D | uncore-frequency-common.c | 320 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in uncore_freq_common_init() local 322 if (dev_root) { in uncore_freq_common_init() 324 &dev_root->kobj); in uncore_freq_common_init() 325 put_device(dev_root); in uncore_freq_common_init()
|
| /linux/drivers/base/ |
| H A D | bus.c | 989 if (sp->dev_root) in bus_unregister() 990 device_unregister(sp->dev_root); in bus_unregister() 1284 sp->dev_root = dev; in subsys_register() 1414 struct device *dev_root; in bus_get_dev_root() local 1419 dev_root = get_device(sp->dev_root); in bus_get_dev_root() 1421 return dev_root; in bus_get_dev_root()
|
| H A D | base.h | 54 struct device *dev_root; member
|
| H A D | core.c | 3292 struct device *dev_root = bus_get_dev_root(dev->bus); in get_device_parent() local 3294 if (dev_root) { in get_device_parent() 3295 kobj = &dev_root->kobj; in get_device_parent() 3296 put_device(dev_root); in get_device_parent()
|
| /linux/kernel/ |
| H A D | cpu.c | 3022 struct device *dev_root; in cpu_smt_sysfs_init() local 3025 dev_root = bus_get_dev_root(&cpu_subsys); in cpu_smt_sysfs_init() 3026 if (dev_root) { in cpu_smt_sysfs_init() 3027 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group); in cpu_smt_sysfs_init() 3028 put_device(dev_root); in cpu_smt_sysfs_init() 3035 struct device *dev_root; in cpuhp_sysfs_init() local 3042 dev_root = bus_get_dev_root(&cpu_subsys); in cpuhp_sysfs_init() 3043 if (dev_root) { in cpuhp_sysfs_init() 3044 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group); in cpuhp_sysfs_init() 3045 put_device(dev_root); in cpuhp_sysfs_init()
|
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 1762 struct device *dev_root; in amd_pstate_init() local 1836 dev_root = bus_get_dev_root(&cpu_subsys); in amd_pstate_init() 1837 if (dev_root) { in amd_pstate_init() 1838 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); in amd_pstate_init() 1839 put_device(dev_root); in amd_pstate_init()
|
| H A D | intel_pstate.c | 1821 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in intel_pstate_sysfs_expose_params() local 1824 if (dev_root) { in intel_pstate_sysfs_expose_params() 1825 intel_pstate_kobject = kobject_create_and_add("intel_pstate", &dev_root->kobj); in intel_pstate_sysfs_expose_params() 1826 put_device(dev_root); in intel_pstate_sysfs_expose_params()
|
| /linux/arch/x86/coco/sev/ |
| H A D | core.c | 1827 struct device *dev_root; in sev_sysfs_init() local 1833 dev_root = bus_get_dev_root(&cpu_subsys); in sev_sysfs_init() 1834 if (!dev_root) in sev_sysfs_init() 1837 sev_kobj = kobject_create_and_add("sev", &dev_root->kobj); in sev_sysfs_init() 1838 put_device(dev_root); in sev_sysfs_init()
|
| /linux/drivers/md/ |
| H A D | dm-thin-metadata.c | 1108 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/include/uapi/linux/ |
| H A D | btrfs_tree.h | 522 __le64 dev_root; member
|
| /linux/arch/arm64/kernel/ |
| H A D | cpufeature.c | 1693 struct device *dev_root; in aarch32_el0_sysfs_init() local 1699 dev_root = bus_get_dev_root(&cpu_subsys); in aarch32_el0_sysfs_init() 1700 if (dev_root) { in aarch32_el0_sysfs_init() 1701 ret = device_create_file(dev_root, &dev_attr_aarch32_el0); in aarch32_el0_sysfs_init() 1702 put_device(dev_root); in aarch32_el0_sysfs_init()
|
| /linux/fs/btrfs/ |
| H A D | zoned.c | 297 struct btrfs_root *root = fs_info->dev_root; in calculate_emulated_zone_size()
|
| H A D | scrub.c | 2675 struct btrfs_root *root = fs_info->dev_root; in scrub_enumerate_chunks()
|