Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c112 struct device *dev_root; in fsl_wakeup_sys_init()
121 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_init()
122 if (dev_root) { in fsl_wakeup_sys_init()
123 ret = device_create_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_init()
124 put_device(dev_root); in fsl_wakeup_sys_init()
134 struct device *dev_root; in fsl_wakeup_sys_exit()
136 dev_root = bus_get_dev_root(&mpic_subsys); in fsl_wakeup_sys_exit()
137 if (dev_root) { in fsl_wakeup_sys_exit()
138 device_remove_file(dev_root, &mpic_attributes); in fsl_wakeup_sys_exit()
139 put_device(dev_root); in fsl_wakeup_sys_exit()
111 struct device *dev_root; fsl_wakeup_sys_init() local
133 struct device *dev_root; fsl_wakeup_sys_exit() local
[all...]
/linux/arch/powerpc/platforms/pseries/
H A Dpseries_energy.c304 struct device *cpu_dev, *dev_root; in pseries_energy_init()
310 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_init()
311 if (dev_root) { in pseries_energy_init()
312 err = device_create_file(dev_root, &attr_cpu_activate_hint_list); in pseries_energy_init()
314 err = device_create_file(dev_root, &attr_cpu_deactivate_hint_list); in pseries_energy_init()
315 put_device(dev_root); in pseries_energy_init()
343 struct device *cpu_dev, *dev_root; in pseries_energy_cleanup()
349 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_cleanup()
350 if (dev_root) { in pseries_energy_cleanup()
351 device_remove_file(dev_root, in pseries_energy_cleanup()
303 struct device *cpu_dev, *dev_root; pseries_energy_init() local
342 struct device *cpu_dev, *dev_root; pseries_energy_cleanup() local
[all...]
H A Dsuspend.c148 struct device *dev_root; in pseries_suspend_sysfs_register()
157 dev_root = bus_get_dev_root(&suspend_subsys); in pseries_suspend_sysfs_register()
158 if (dev_root) { in pseries_suspend_sysfs_register()
159 rc = device_create_file(dev_root, &dev_attr_hibernate); in pseries_suspend_sysfs_register()
160 put_device(dev_root); in pseries_suspend_sysfs_register()
147 struct device *dev_root; pseries_suspend_sysfs_register() local
/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()
/linux/drivers/sh/intc/
H A Duserimask.c67 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 Dibm_rtl.c203 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 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/arch/powerpc/platforms/powernv/
H A Dsubcore.c421 struct device *dev_root; in subcore_init()
444 dev_root = bus_get_dev_root(&cpu_subsys); in subcore_init()
445 if (dev_root) { in subcore_init()
446 rc = device_create_file(dev_root, &dev_attr_subcores_per_core); in subcore_init()
447 put_device(dev_root); in subcore_init()
420 struct device *dev_root; subcore_init() local
H A Didle.c1470 struct device *dev_root; in pnv_init_idle_states()
1477 dev_root = bus_get_dev_root(&cpu_subsys); in pnv_init_idle_states()
1478 if (dev_root) { in pnv_init_idle_states()
1479 device_create_file(dev_root, in pnv_init_idle_states()
1481 put_device(dev_root); in pnv_init_idle_states()
1469 struct device *dev_root; pnv_init_idle_states() local
/linux/arch/x86/kernel/cpu/microcode/
H A Dcore.c886 struct device *dev_root; in microcode_init()
912 dev_root = bus_get_dev_root(&cpu_subsys); in microcode_init()
913 if (dev_root) { in microcode_init()
914 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group); in microcode_init()
915 put_device(dev_root); in microcode_init()
885 struct device *dev_root; microcode_init() local
/linux/arch/s390/kernel/
H A Dtopology.c683 struct device *dev_root; in topology_init() local
695 dev_root = bus_get_dev_root(&cpu_subsys); in topology_init()
696 if (dev_root) { in topology_init()
697 rc = device_create_file(dev_root, &dev_attr_dispatching); in topology_init()
698 put_device(dev_root); in topology_init()
H A Dsmp.c1151 struct device *dev_root; in smp_rescan_cpus()
1154 dev_root = bus_get_dev_root(&cpu_subsys); in smp_rescan_cpus()
1155 if (dev_root) { in smp_rescan_cpus()
1156 rc = device_create_file(dev_root, &dev_attr_rescan); in smp_rescan_cpus()
1157 put_device(dev_root); in smp_rescan_cpus()
1177 struct device *dev_root; s390_smp_init() local
/linux/drivers/base/
H A Dbus.c1037 if (sp->dev_root) in bus_unregister()
1038 device_unregister(sp->dev_root); in bus_unregister()
1332 sp->dev_root = dev; in subsys_register()
1462 struct device *dev_root; in bus_get_dev_root()
1467 dev_root = get_device(sp->dev_root); in buses_init()
1469 return dev_root; in buses_init()
1455 struct device *dev_root; bus_get_dev_root() local
H A Dbase.h32 * @dev_root: Default device to use as the parent.
55 struct device *dev_root; member
H A Dcore.c3360 struct device *dev_root = bus_get_dev_root(dev->bus); in cleanup_glue_dir()
3362 if (dev_root) { in cleanup_glue_dir()
3363 kobj = &dev_root->kobj; in cleanup_glue_dir()
3364 put_device(dev_root); in cleanup_glue_dir()
3294 struct device *dev_root = bus_get_dev_root(dev->bus); get_device_parent() local
/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()
/linux/arch/x86/coco/sev/
H A Dcore.c1448 struct device *dev_root;
1454 dev_root = bus_get_dev_root(&cpu_subsys); in sev_sysfs_init()
1455 if (!dev_root) in sev_sysfs_init()
1458 sev_kobj = kobject_create_and_add("sev", &dev_root->kobj); in sev_sysfs_init()
1459 put_device(dev_root); in sev_sysfs_init()
1452 struct device *dev_root; sev_sysfs_init() local
/linux/drivers/md/
H A 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()
/linux/drivers/cpufreq/
H A Damd-pstate.c2225 struct device *dev_root; in amd_cppc_supported()
2299 dev_root = bus_get_dev_root(&cpu_subsys); in amd_pstate_init()
2300 if (dev_root) { in amd_pstate_init()
2301 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); in amd_pstate_init()
2302 put_device(dev_root); in amd_pstate_init()
2232 struct device *dev_root; amd_pstate_init() local
H A Dcpufreq.c3035 struct device *dev_root; in cpufreq_core_init()
3040 dev_root = bus_get_dev_root(&cpu_subsys); in cpufreq_policy_is_good_for_eas()
3041 if (dev_root) { in cpufreq_policy_is_good_for_eas()
3042 cpufreq_global_kobject = kobject_create_and_add("cpufreq", &dev_root->kobj); in cpufreq_policy_is_good_for_eas()
3043 put_device(dev_root); in cpufreq_policy_is_good_for_eas()
3021 struct device *dev_root; cpufreq_core_init() local
H A Dintel_pstate.c1823 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/fs/btrfs/
H A Dvolumes.c1818 struct btrfs_root *root = fs_info->dev_root; in find_free_dev_extent()
1959 struct btrfs_root *root = fs_info->dev_root; in btrfs_free_dev_extent()
2298 struct btrfs_root *dev_root = fs_info->dev_root; in btrfs_rm_device()
2306 ret = btrfs_search_slot(trans, dev_root, &key, &path, -1, 1); in btrfs_rm_device()
2316 ret = btrfs_del_item(trans, dev_root, &path); in btrfs_rm_device()
2850 struct btrfs_root *root = fs_info->dev_root; in btrfs_init_new_device()
5229 struct btrfs_root *root = fs_info->dev_root; in btrfs_shrink_device()
8195 if (!device->fs_info->dev_root) in update_dev_stat_item()
8201 ret = btrfs_search_slot(NULL, device->fs_info->dev_root, in update_dev_stat_item()
8186 struct btrfs_root *dev_root = fs_info->dev_root; update_dev_stat_item() local
[all...]
H A Ddisk-io.c1148 return btrfs_grab_root(fs_info->dev_root); in btrfs_insert_fs_root()
1245 btrfs_put_root(fs_info->dev_root);
1692 btrfs_set_backup_dev_root(root_backup, info->dev_root->node->start);
1694 btrfs_header_generation(info->dev_root->node));
1696 btrfs_header_level(info->dev_root->node));
1812 free_root_extent_buffers(info->dev_root); in btrfs_put_root()
2218 fs_info->dev_root = root; in btrfs_read_roots()
H A Dfs.h507 struct btrfs_root *dev_root;
494 struct btrfs_root *dev_root; global() member
/linux/arch/arm64/kernel/
H A Dcpufeature.c1710 struct device *dev_root; in aarch32_el0_sysfs_init()
1716 dev_root = bus_get_dev_root(&cpu_subsys); in has_32bit_el0()
1717 if (dev_root) { in has_32bit_el0()
1718 ret = device_create_file(dev_root, &dev_attr_aarch32_el0); in has_32bit_el0()
1719 put_device(dev_root); in has_32bit_el0()
1698 struct device *dev_root; aarch32_el0_sysfs_init() local

12