Searched refs:dev_root (Results 1 - 25 of 36) sorted by relevance

12

/linux-master/drivers/sh/intc/
H A Duserimask.c64 struct device *dev_root; local
70 dev_root = bus_get_dev_root(&intc_subsys);
71 if (dev_root) {
72 ret = device_create_file(dev_root, &dev_attr_userimask);
73 put_device(dev_root);
/linux-master/drivers/hv/
H A Dhv_debugfs.c113 struct dentry *delay, *dev_root; local
117 dev_root = debugfs_create_dir(device, hv_debug_root);
118 if (IS_ERR(dev_root)) {
121 return PTR_ERR(dev_root);
123 hv_debug_set_test_state(dev, dev_root);
124 hv_debug_set_dir_dentry(dev, dev_root);
125 delay = debugfs_create_dir(delay_name, dev_root);
/linux-master/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c119 struct device *dev_root; local
128 dev_root = bus_get_dev_root(&mpic_subsys);
129 if (dev_root) {
130 ret = device_create_file(dev_root, &mpic_attributes);
131 put_device(dev_root);
141 struct device *dev_root; local
143 dev_root = bus_get_dev_root(&mpic_subsys);
144 if (dev_root) {
145 device_remove_file(dev_root, &mpic_attributes);
146 put_device(dev_root);
[all...]
/linux-master/arch/powerpc/platforms/pseries/
H A Dsuspend.c147 struct device *dev_root; local
156 dev_root = bus_get_dev_root(&suspend_subsys);
157 if (dev_root) {
158 rc = device_create_file(dev_root, &dev_attr_hibernate);
159 put_device(dev_root);
H A Dpseries_energy.c303 struct device *cpu_dev, *dev_root; local
309 dev_root = bus_get_dev_root(&cpu_subsys);
310 if (dev_root) {
311 err = device_create_file(dev_root, &attr_cpu_activate_hint_list);
313 err = device_create_file(dev_root, &attr_cpu_deactivate_hint_list);
314 put_device(dev_root);
342 struct device *cpu_dev, *dev_root; local
348 dev_root = bus_get_dev_root(&cpu_subsys);
349 if (dev_root) {
350 device_remove_file(dev_root,
[all...]
/linux-master/drivers/platform/x86/
H A Dibm_rtl.c202 struct device *dev_root = bus_get_dev_root(&rtl_subsys); local
204 if (dev_root) {
206 device_create_file(dev_root, rtl_attributes[i]);
207 put_device(dev_root);
214 struct device *dev_root = bus_get_dev_root(&rtl_subsys); local
217 if (dev_root) {
219 device_remove_file(dev_root, rtl_attributes[i]);
220 put_device(dev_root);
/linux-master/drivers/acpi/
H A Dacpi_lpit.c101 struct device *dev_root = bus_get_dev_root(&cpu_subsys); local
104 if (!dev_root)
119 sysfs_add_file_to_group(&dev_root->kobj,
123 sysfs_add_file_to_group(&dev_root->kobj,
128 put_device(dev_root);
/linux-master/arch/powerpc/platforms/powernv/
H A Dsubcore.c420 struct device *dev_root; local
443 dev_root = bus_get_dev_root(&cpu_subsys);
444 if (dev_root) {
445 rc = device_create_file(dev_root, &dev_attr_subcores_per_core);
446 put_device(dev_root);
H A Didle.c1469 struct device *dev_root; local
1476 dev_root = bus_get_dev_root(&cpu_subsys);
1477 if (dev_root) {
1478 device_create_file(dev_root,
1480 put_device(dev_root);
/linux-master/arch/sh/drivers/dma/
H A Ddma-sysfs.c48 struct device *dev_root; local
55 dev_root = bus_get_dev_root(&dma_subsys);
56 if (dev_root) {
57 ret = device_create_file(dev_root, &dev_attr_devices);
58 put_device(dev_root);
/linux-master/drivers/platform/x86/intel/uncore-frequency/
H A Duncore-frequency-common.c283 struct device *dev_root = bus_get_dev_root(&cpu_subsys); local
285 if (dev_root) {
287 &dev_root->kobj);
288 put_device(dev_root);
/linux-master/drivers/edac/
H A Dedac_pci_sysfs.c342 struct device *dev_root; local
372 dev_root = bus_get_dev_root(edac_subsys);
373 if (dev_root) {
376 &dev_root->kobj, "pci");
377 put_device(dev_root);
H A Dedac_device_sysfs.c231 struct device *dev_root; local
255 dev_root = bus_get_dev_root(edac_subsys);
256 if (dev_root) {
258 &dev_root->kobj, "%s", edac_dev->name);
259 put_device(dev_root);
/linux-master/arch/x86/kernel/cpu/microcode/
H A Dcore.c809 struct device *dev_root; local
835 dev_root = bus_get_dev_root(&cpu_subsys);
836 if (dev_root) {
837 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group);
838 put_device(dev_root);
/linux-master/fs/btrfs/
H A Ddev-replace.c74 struct btrfs_root *dev_root = fs_info->dev_root; local
84 if (!dev_root)
96 ret = btrfs_search_slot(NULL, dev_root, &key, path, 0, 0);
348 struct btrfs_root *dev_root = fs_info->dev_root; local
372 ret = btrfs_search_slot(trans, dev_root, &key, path, -1, 1);
393 ret = btrfs_del_item(trans, dev_root, path);
406 ret = btrfs_insert_empty_item(trans, dev_root, path,
458 struct btrfs_root *root = fs_info->dev_root;
[all...]
/linux-master/arch/powerpc/kernel/
H A Dsysfs.c220 struct device *dev_root; local
227 dev_root = bus_get_dev_root(&cpu_subsys);
228 if (dev_root) {
229 device_create_file(dev_root, &dev_attr_dscr_default);
230 put_device(dev_root);
754 struct device *dev_root = bus_get_dev_root(&cpu_subsys); local
756 if (dev_root) {
757 device_create_file(dev_root, &dev_attr_svm);
758 put_device(dev_root);
/linux-master/arch/s390/kernel/
H A Dtopology.c643 struct device *dev_root; local
653 dev_root = bus_get_dev_root(&cpu_subsys);
654 if (dev_root) {
655 rc = device_create_file(dev_root, &dev_attr_dispatching);
656 put_device(dev_root);
H A Dsmp.c1189 struct device *dev_root; local
1192 dev_root = bus_get_dev_root(&cpu_subsys);
1193 if (dev_root) {
1194 rc = device_create_file(dev_root, &dev_attr_rescan);
1195 put_device(dev_root);
/linux-master/drivers/base/
H A Dbus.c945 if (sp->dev_root)
946 device_unregister(sp->dev_root);
1240 sp->dev_root = dev;
1370 struct device *dev_root; local
1375 dev_root = get_device(sp->dev_root);
1377 return dev_root;
H A Dbase.h30 * @dev_root: Default device to use as the parent.
54 struct device *dev_root; member in struct:subsys_private
/linux-master/drivers/cpuidle/
H A Dsysfs.c125 struct device *dev_root = bus_get_dev_root(&cpu_subsys); local
128 if (!dev_root)
131 retval = sysfs_create_group(&dev_root->kobj, &cpuidle_attr_group);
132 put_device(dev_root);
/linux-master/kernel/
H A Dcpu.c2991 struct device *dev_root; local
2994 dev_root = bus_get_dev_root(&cpu_subsys);
2995 if (dev_root) {
2996 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group);
2997 put_device(dev_root);
3004 struct device *dev_root; local
3011 dev_root = bus_get_dev_root(&cpu_subsys);
3012 if (dev_root) {
3013 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group);
3014 put_device(dev_root);
[all...]
/linux-master/drivers/cpufreq/
H A Damd-pstate.c1746 struct device *dev_root; local
1816 dev_root = bus_get_dev_root(&cpu_subsys);
1817 if (dev_root) {
1818 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group);
1819 put_device(dev_root);
H A Dcpufreq.c3044 struct device *dev_root; local
3049 dev_root = bus_get_dev_root(&cpu_subsys);
3050 if (dev_root) {
3051 cpufreq_global_kobject = kobject_create_and_add("cpufreq", &dev_root->kobj);
3052 put_device(dev_root);
/linux-master/drivers/md/
H A Ddm-thin-metadata.c1108 dm_block_t dev_root; local
1121 r = dm_btree_empty(&pmd->bl_info, &dev_root);
1128 value = cpu_to_le64(dev_root);
1132 dm_btree_del(&pmd->bl_info, dev_root);
1139 dm_btree_del(&pmd->bl_info, dev_root);

Completed in 206 milliseconds

12