/linux-master/drivers/sh/intc/ |
H A D | userimask.c | 64 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 D | hv_debugfs.c | 113 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 D | fsl_mpic_timer_wakeup.c | 119 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 D | suspend.c | 147 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 D | pseries_energy.c | 303 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 D | ibm_rtl.c | 202 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 D | acpi_lpit.c | 101 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 D | subcore.c | 420 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 D | idle.c | 1469 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 D | dma-sysfs.c | 48 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 D | uncore-frequency-common.c | 283 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/arch/x86/kernel/cpu/microcode/ |
H A D | core.c | 814 struct device *dev_root; local 840 dev_root = bus_get_dev_root(&cpu_subsys); 841 if (dev_root) { 842 error = sysfs_create_group(&dev_root->kobj, &cpu_root_microcode_group); 843 put_device(dev_root);
|
/linux-master/drivers/edac/ |
H A D | edac_pci_sysfs.c | 342 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 D | edac_device_sysfs.c | 231 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/fs/btrfs/ |
H A D | dev-replace.c | 74 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 D | sysfs.c | 220 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 D | topology.c | 643 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 D | smp.c | 1189 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 D | bus.c | 938 if (sp->dev_root) 939 device_unregister(sp->dev_root); 1233 sp->dev_root = dev; 1363 struct device *dev_root; local 1368 dev_root = get_device(sp->dev_root); 1370 return dev_root;
|
H A D | base.h | 30 * @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 D | sysfs.c | 125 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 D | cpu.c | 3039 struct device *dev_root; local 3042 dev_root = bus_get_dev_root(&cpu_subsys); 3043 if (dev_root) { 3044 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_smt_attr_group); 3045 put_device(dev_root); 3052 struct device *dev_root; local 3059 dev_root = bus_get_dev_root(&cpu_subsys); 3060 if (dev_root) { 3061 ret = sysfs_create_group(&dev_root->kobj, &cpuhp_cpu_root_attr_group); 3062 put_device(dev_root); [all...] |
/linux-master/drivers/cpufreq/ |
H A D | amd-pstate.c | 1644 struct device *dev_root; local 1709 dev_root = bus_get_dev_root(&cpu_subsys); 1710 if (dev_root) { 1711 ret = sysfs_create_group(&dev_root->kobj, &amd_pstate_global_attr_group); 1712 put_device(dev_root);
|
H A D | cpufreq.c | 3005 struct device *dev_root; local 3010 dev_root = bus_get_dev_root(&cpu_subsys); 3011 if (dev_root) { 3012 cpufreq_global_kobject = kobject_create_and_add("cpufreq", &dev_root->kobj); 3013 put_device(dev_root);
|
/linux-master/drivers/md/ |
H A D | dm-thin-metadata.c | 1108 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);
|