Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 25 of 64) sorted by relevance

123

/arch/powerpc/platforms/powernv/
Dopal-elog.c21 struct kobject kobj; member
28 #define to_elog_obj(x) container_of(x, struct elog_obj, kobj)
76 sysfs_remove_file_self(&elog_obj->kobj, &attr->attr); in elog_ack_store()
77 kobject_put(&elog_obj->kobj); in elog_ack_store()
90 static ssize_t elog_attr_show(struct kobject *kobj, in elog_attr_show() argument
98 elog = to_elog_obj(kobj); in elog_attr_show()
106 static ssize_t elog_attr_store(struct kobject *kobj, in elog_attr_store() argument
114 elog = to_elog_obj(kobj); in elog_attr_store()
127 static void elog_release(struct kobject *kobj) in elog_release() argument
131 elog = to_elog_obj(kobj); in elog_release()
[all …]
Dopal-dump.c21 struct kobject kobj; member
28 #define to_dump_obj(x) container_of(x, struct dump_obj, kobj)
92 sysfs_remove_file_self(&dump_obj->kobj, &attr->attr); in dump_ack_store()
93 kobject_put(&dump_obj->kobj); in dump_ack_store()
154 static ssize_t dump_attr_show(struct kobject *kobj, in dump_attr_show() argument
162 dump = to_dump_obj(kobj); in dump_attr_show()
170 static ssize_t dump_attr_store(struct kobject *kobj, in dump_attr_store() argument
178 dump = to_dump_obj(kobj); in dump_attr_store()
191 static void dump_release(struct kobject *kobj) in dump_release() argument
195 dump = to_dump_obj(kobj); in dump_release()
[all …]
Dopal-flash.c150 static ssize_t validate_show(struct kobject *kobj, in validate_show() argument
190 static ssize_t validate_store(struct kobject *kobj, in validate_store() argument
235 static ssize_t manage_show(struct kobject *kobj, in manage_show() argument
252 static ssize_t manage_store(struct kobject *kobj, in manage_store() argument
320 static ssize_t update_show(struct kobject *kobj, in update_show() argument
332 static ssize_t update_store(struct kobject *kobj, in update_store() argument
434 static ssize_t image_data_write(struct file *filp, struct kobject *kobj, in image_data_write() argument
Dopal-psr.c25 static ssize_t psr_show(struct kobject *kobj, struct kobj_attribute *attr, in psr_show() argument
75 static ssize_t psr_store(struct kobject *kobj, struct kobj_attribute *attr, in psr_store() argument
/arch/x86/kernel/
Dksysfs.c22 static ssize_t version_show(struct kobject *kobj, in version_show() argument
30 static ssize_t boot_params_data_read(struct file *fp, struct kobject *kobj, in boot_params_data_read() argument
62 static int kobj_to_setup_data_nr(struct kobject *kobj, int *nr) in kobj_to_setup_data_nr() argument
66 name = kobject_name(kobj); in kobj_to_setup_data_nr()
115 static ssize_t type_show(struct kobject *kobj, in type_show() argument
122 ret = kobj_to_setup_data_nr(kobj, &nr); in type_show()
139 struct kobject *kobj, in setup_data_data_read() argument
149 ret = kobj_to_setup_data_nr(kobj, &nr); in setup_data_data_read()
214 struct kobject *kobj; in create_setup_data_node() local
218 kobj = kobject_create_and_add(name, parent); in create_setup_data_node()
[all …]
Dtopology.c76 kobject_uevent(&dev->kobj, KOBJ_OFFLINE); in _debug_hotplug_cpu()
84 kobject_uevent(&dev->kobj, KOBJ_ONLINE); in _debug_hotplug_cpu()
/arch/ia64/kernel/
Dtopology.c125 struct kobject kobj; member
131 struct kobject kobj; member
269 #define to_object(k) container_of(k, struct cache_info, kobj)
272 static ssize_t ia64_cache_show(struct kobject * kobj, struct attribute * attr, char * buf) in ia64_cache_show() argument
275 struct cache_info *this_leaf = to_object(kobj); in ia64_cache_show()
300 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_exit()
342 memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); in cpu_cache_sysfs_init()
355 if (all_cpu_cache_info[cpu].kobj.parent) in cache_add_dev()
363 retval = kobject_init_and_add(&all_cpu_cache_info[cpu].kobj, in cache_add_dev()
364 &cache_ktype_percpu_entry, &sys_dev->kobj, in cache_add_dev()
[all …]
/arch/arm64/kernel/
Dcpuinfo.c223 #define kobj_to_cpuinfo(kobj) container_of(kobj, struct cpuinfo_arm64, kobj) argument
225 static ssize_t _name##_show(struct kobject *kobj, \
228 struct cpuinfo_arm64 *info = kobj_to_cpuinfo(kobj); \
262 rc = kobject_add(&info->kobj, &dev->kobj, "regs"); in cpuid_cpu_online()
265 rc = sysfs_create_group(&info->kobj, &cpuregs_attr_group); in cpuid_cpu_online()
267 kobject_del(&info->kobj); in cpuid_cpu_online()
280 if (info->kobj.parent) { in cpuid_cpu_offline()
281 sysfs_remove_group(&info->kobj, &cpuregs_attr_group); in cpuid_cpu_offline()
282 kobject_del(&info->kobj); in cpuid_cpu_offline()
295 kobject_init(&info->kobj, &cpuregs_kobj_type); in cpuinfo_regs_init()
/arch/s390/kernel/
Dipl.c173 static ssize_t sys_##_prefix##_##_name##_show(struct kobject *kobj, \
181 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
214 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
231 static ssize_t sys_##_prefix##_##_name##_store(struct kobject *kobj, \
268 static ssize_t ipl_type_show(struct kobject *kobj, struct kobj_attribute *attr, in ipl_type_show() argument
276 static ssize_t ipl_secure_show(struct kobject *kobj, in ipl_secure_show() argument
285 static ssize_t ipl_has_secure_show(struct kobject *kobj, in ipl_has_secure_show() argument
294 static ssize_t ipl_vm_parm_show(struct kobject *kobj, in ipl_vm_parm_show() argument
307 static ssize_t sys_ipl_device_show(struct kobject *kobj, in sys_ipl_device_show() argument
325 static ssize_t ipl_parameter_read(struct file *filp, struct kobject *kobj, in ipl_parameter_read() argument
[all …]
/arch/powerpc/kernel/
Dcacheinfo.c30 struct kobject *kobj; /* bare (not embedded) kobject for cache member
40 struct kobject kobj; member
134 return container_of(k, struct cache_index_dir, kobj); in kobj_to_cache_index_dir()
479 struct kobject *kobj = NULL; in cacheinfo_create_cache_dir() local
486 kobj = kobject_create_and_add("cache", &dev->kobj); in cacheinfo_create_cache_dir()
487 if (!kobj) in cacheinfo_create_cache_dir()
494 cache_dir->kobj = kobj; in cacheinfo_create_cache_dir()
502 kobject_put(kobj); in cacheinfo_create_cache_dir()
506 static void cache_index_release(struct kobject *kobj) in cache_index_release() argument
510 index = kobj_to_cache_index_dir(kobj); in cache_index_release()
[all …]
/arch/sh/kernel/cpu/sh4/
Dsq.c266 static ssize_t sq_sysfs_show(struct kobject *kobj, struct attribute *attr, in sq_sysfs_show() argument
277 static ssize_t sq_sysfs_store(struct kobject *kobj, struct attribute *attr, in sq_sysfs_store() argument
340 struct kobject *kobj; in sq_dev_add() local
347 kobj = sq_kobject[cpu]; in sq_dev_add()
348 error = kobject_init_and_add(kobj, &ktype_percpu_entry, &dev->kobj, in sq_dev_add()
351 kobject_uevent(kobj, KOBJ_ADD); in sq_dev_add()
358 struct kobject *kobj = sq_kobject[cpu]; in sq_dev_remove() local
360 kobject_put(kobj); in sq_dev_remove()
/arch/alpha/kernel/
Dpci-sysfs.c64 static int pci_mmap_resource(struct kobject *kobj, in pci_mmap_resource() argument
68 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); in pci_mmap_resource()
93 static int pci_mmap_resource_sparse(struct file *filp, struct kobject *kobj, in pci_mmap_resource_sparse() argument
97 return pci_mmap_resource(kobj, attr, vma, 1); in pci_mmap_resource_sparse()
100 static int pci_mmap_resource_dense(struct file *filp, struct kobject *kobj, in pci_mmap_resource_dense() argument
104 return pci_mmap_resource(kobj, attr, vma, 0); in pci_mmap_resource_dense()
123 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()
129 sysfs_remove_bin_file(&pdev->dev.kobj, res_attr); in pci_remove_resource_files()
167 return sysfs_create_bin_file(&pdev->dev.kobj, res_attr); in pci_create_one_attr()
/arch/x86/kernel/cpu/mce/
Damd.c1133 #define to_block(k) container_of(k, struct threshold_block, kobj)
1136 static ssize_t show(struct kobject *kobj, struct attribute *attr, char *buf) in show() argument
1138 struct threshold_block *b = to_block(kobj); in show()
1147 static ssize_t store(struct kobject *kobj, struct attribute *attr, in store() argument
1150 struct threshold_block *b = to_block(kobj); in store()
1251 err = kobject_init_and_add(&b->kobj, &threshold_ktype, in allocate_threshold_blocks()
1252 per_cpu(threshold_banks, cpu)[bank]->kobj, in allocate_threshold_blocks()
1266 kobject_uevent(&b->kobj, KOBJ_ADD); in allocate_threshold_blocks()
1272 kobject_put(&b->kobj); in allocate_threshold_blocks()
1286 err = kobject_add(&b->blocks->kobj, b->kobj, b->blocks->kobj.name); in __threshold_add_blocks()
[all …]
Dtherm_throt.c243 err = sysfs_create_group(&dev->kobj, &thermal_attr_group); in thermal_throttle_add_dev()
248 err = sysfs_add_file_to_group(&dev->kobj, in thermal_throttle_add_dev()
252 err = sysfs_add_file_to_group(&dev->kobj, in thermal_throttle_add_dev()
256 err = sysfs_add_file_to_group(&dev->kobj, in thermal_throttle_add_dev()
266 sysfs_remove_group(&dev->kobj, &thermal_attr_group); in thermal_throttle_remove_dev()
/arch/s390/pci/
Dpci_sysfs.c80 static ssize_t util_string_read(struct file *filp, struct kobject *kobj, in util_string_read() argument
84 struct device *dev = kobj_to_dev(kobj); in util_string_read()
93 static ssize_t report_error_write(struct file *filp, struct kobject *kobj, in report_error_write() argument
98 struct device *dev = kobj_to_dev(kobj); in report_error_write()
/arch/x86/platform/uv/
Duv_sysfs.c15 static ssize_t partition_id_show(struct kobject *kobj, in partition_id_show() argument
21 static ssize_t coherence_id_show(struct kobject *kobj, in coherence_id_show() argument
/arch/powerpc/platforms/pseries/
Dpower.c22 static ssize_t auto_poweron_show(struct kobject *kobj, in auto_poweron_show() argument
28 static ssize_t auto_poweron_store(struct kobject *kobj, in auto_poweron_store() argument
/arch/x86/kernel/cpu/
Dumwait.c164 max_time_show(struct device *kobj, struct device_attribute *attr, char *buf) in max_time_show() argument
171 static ssize_t max_time_store(struct device *kobj, in max_time_store() argument
241 return sysfs_create_group(&dev->kobj, &umwait_attr_group); in umwait_init()
Dintel_epb.c180 sysfs_merge_group(&cpu_dev->kobj, &intel_epb_attr_group); in intel_epb_online()
190 sysfs_unmerge_group(&cpu_dev->kobj, &intel_epb_attr_group); in intel_epb_offline()
/arch/sh/drivers/dma/
Ddma-sysfs.c146 return sysfs_create_link(&info->pdev->dev.kobj, &dev->kobj, name); in dma_create_sysfs_files()
161 sysfs_remove_link(&info->pdev->dev.kobj, name); in dma_remove_sysfs_files()
/arch/x86/include/asm/
Damd_nb.h48 struct kobject kobj; /* sysfs object */ member
56 struct kobject *kobj; member
/arch/powerpc/platforms/4xx/
Dcpm.c124 static ssize_t cpm_idle_show(struct kobject *kobj, in cpm_idle_show() argument
142 static ssize_t cpm_idle_store(struct kobject *kobj, in cpm_idle_store() argument
173 ret = sysfs_create_file(&dev->kobj, in cpm_idle_config_sysfs()
/arch/x86/kernel/cpu/microcode/
Dcore.c745 err = sysfs_create_group(&dev->kobj, &mc_attr_group); in mc_device_add()
764 sysfs_remove_group(&dev->kobj, &mc_attr_group); in mc_device_remove()
803 if (sysfs_create_group(&dev->kobj, &mc_attr_group)) in mc_cpu_online()
814 sysfs_remove_group(&dev->kobj, &mc_attr_group); in mc_cpu_down_prep()
865 error = sysfs_create_group(&cpu_subsys.dev_root->kobj, in microcode_init()
888 sysfs_remove_group(&cpu_subsys.dev_root->kobj, in microcode_init()
/arch/x86/events/
Dprobe.c8 not_visible(struct kobject *kobj, struct attribute *attr, int i) in not_visible() argument
/arch/x86/platform/olpc/
Dolpc-xo15-sci.c164 r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_add()
191 sysfs_remove_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_remove()

123