| /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()
|
| H A D | idle.c | 1469 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 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/drivers/base/ |
| H A D | bus.c | 1030 if (sp->dev_root) in bus_unregister() 1031 device_unregister(sp->dev_root); in bus_unregister() 1325 sp->dev_root = dev; in subsys_register() 1455 struct device *dev_root; in bus_get_dev_root() local 1460 dev_root = get_device(sp->dev_root); in bus_get_dev_root() 1462 return dev_root; in bus_get_dev_root()
|
| H A D | base.h | 54 struct device *dev_root; member
|
| /linux/kernel/ |
| H A D | cpu.c | 3011 struct device *dev_root; 3014 dev_root = bus_get_dev_root(&cpu_subsys); 3015 if (dev_root) { 3016 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group); 3017 put_device(dev_root); 3024 struct device *dev_root; in cpu_smt_sysfs_init() 3031 dev_root = bus_get_dev_root(&cpu_subsys); in cpu_smt_sysfs_init() 3032 if (dev_root) { 3033 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group); in cpuhp_sysfs_init() 3034 put_device(dev_root); in cpuhp_sysfs_init() 3022 struct device *dev_root; cpu_smt_sysfs_init() local 3035 struct device *dev_root; cpuhp_sysfs_init() local [all...] |
| /linux/drivers/cpuidle/ |
| H A D | sysfs.c | 125 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/arch/s390/kernel/ |
| H A D | smp.c | 1177 struct device *dev_root; in s390_smp_init() local 1180 dev_root = bus_get_dev_root(&cpu_subsys); in s390_smp_init() 1181 if (dev_root) { in s390_smp_init() 1182 rc = device_create_file(dev_root, &dev_attr_rescan); in s390_smp_init() 1183 put_device(dev_root); in s390_smp_init()
|
| /linux/arch/x86/coco/sev/ |
| H A D | core.c | 1452 struct device *dev_root; in sev_sysfs_init() local 1458 dev_root = bus_get_dev_root(&cpu_subsys); in sev_sysfs_init() 1459 if (!dev_root) in sev_sysfs_init() 1462 sev_kobj = kobject_create_and_add("sev", &dev_root->kobj); in sev_sysfs_init() 1463 put_device(dev_root); in sev_sysfs_init()
|
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 1775 struct device *dev_root; in amd_pstate_init() local 1849 dev_root = bus_get_dev_root(&cpu_subsys); in amd_pstate_init() 1850 if (dev_root) { in amd_pstate_init() 1851 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); in amd_pstate_init() 1852 put_device(dev_root); in amd_pstate_init()
|
| H A D | cpufreq.c | 3034 struct device *dev_root; in cpufreq_core_init() 3039 dev_root = bus_get_dev_root(&cpu_subsys); in cpufreq_core_init() 3040 if (dev_root) { in cpufreq_core_init() 3041 cpufreq_global_kobject = kobject_create_and_add("cpufreq", &dev_root->kobj); in cpufreq_core_init() 3042 put_device(dev_root); in cpufreq_core_init() 3037 struct device *dev_root; cpufreq_core_init() local
|
| H A D | intel_pstate.c | 1823 struct device *dev_root = bus_get_dev_root(&cpu_subsys); in intel_pstate_sysfs_expose_params() local 1826 if (dev_root) { in intel_pstate_sysfs_expose_params() 1827 intel_pstate_kobject = kobject_create_and_add("intel_pstate", &dev_root->kobj); in intel_pstate_sysfs_expose_params() 1828 put_device(dev_root); in intel_pstate_sysfs_expose_params()
|
| /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/fs/btrfs/ |
| H A D | volumes.c | 1812 struct btrfs_root *root = fs_info->dev_root; in find_free_dev_extent() 1953 struct btrfs_root *root = fs_info->dev_root; in btrfs_free_dev_extent() 2804 struct btrfs_root *root = fs_info->dev_root; in btrfs_init_new_device() 5144 struct btrfs_root *root = fs_info->dev_root; in btrfs_shrink_device() 7945 if (!device->fs_info->dev_root) in btrfs_device_init_dev_stats() 7951 ret = btrfs_search_slot(NULL, device->fs_info->dev_root, &key, path, 0, 0); in btrfs_device_init_dev_stats() 8013 struct btrfs_root *dev_root = fs_info->dev_root; in update_dev_stat_item() local 8028 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1); in update_dev_stat_item() 8039 ret = btrfs_del_item(trans, dev_root, pat in update_dev_stat_item() [all...] |
| H A D | disk-io.c | 1118 return btrfs_grab_root(fs_info->dev_root); in btrfs_get_global_root() 1215 btrfs_put_root(fs_info->dev_root); in btrfs_free_fs_info() 1662 btrfs_set_backup_dev_root(root_backup, info->dev_root->node->start); in backup_super_roots() 1664 btrfs_header_generation(info->dev_root->node)); in backup_super_roots() 1666 btrfs_header_level(info->dev_root->node)); in backup_super_roots() 1783 free_root_extent_buffers(info->dev_root); in free_root_pointers() 2197 fs_info->dev_root = root; in btrfs_read_roots()
|
| /linux/include/uapi/linux/ |
| H A D | btrfs_tree.h | 529 __le64 dev_root; 522 __le64 dev_root; global() member
|
| /linux/arch/arm64/kernel/ |
| H A D | cpufeature.c | 1694 struct device *dev_root; in aarch32_el0_sysfs_init() local 1700 dev_root = bus_get_dev_root(&cpu_subsys); in aarch32_el0_sysfs_init() 1701 if (dev_root) { in aarch32_el0_sysfs_init() 1702 ret = device_create_file(dev_root, &dev_attr_aarch32_el0); in aarch32_el0_sysfs_init() 1703 put_device(dev_root); in aarch32_el0_sysfs_init()
|