Searched refs:kobj (Results 1 - 25 of 505) sorted by relevance

1234567891011>>

/drivers/md/
H A Ddm-builtin.c43 void dm_kobject_release(struct kobject *kobj) argument
45 complete(dm_get_completion_from_kobject(kobj));
H A Ddm-uevent.h33 extern void dm_send_uevents(struct list_head *events, struct kobject *kobj);
48 struct kobject *kobj)
47 dm_send_uevents(struct list_head *events, struct kobject *kobj) argument
H A Ddm-sysfs.c21 static ssize_t dm_attr_show(struct kobject *kobj, struct attribute *attr, argument
32 md = dm_get_from_kobject(kobj);
93 * Initialize kobj
99 &disk_to_dev(dm_disk(md))->kobj,
104 * Remove kobj, called after all references removed
108 struct kobject *kobj = dm_kobject(md); local
109 kobject_put(kobj);
110 wait_for_completion(dm_get_completion_from_kobject(kobj));
/drivers/iommu/
H A Diommu-sysfs.c77 ret = kobject_set_name_vargs(&dev->kobj, fmt, vargs);
114 ret = sysfs_add_link_to_group(&dev->kobj, "devices",
115 &link->kobj, dev_name(link));
119 ret = sysfs_create_link_nowarn(&link->kobj, &dev->kobj, "iommu");
121 sysfs_remove_link_from_group(&dev->kobj, "devices",
132 sysfs_remove_link(&link->kobj, "iommu");
133 sysfs_remove_link_from_group(&dev->kobj, "devices", dev_name(link));
/drivers/firmware/efi/
H A Druntime-map.c23 struct kobject kobj; /* kobject for each entry */ member in struct:efi_runtime_map_entry
56 static inline struct efi_runtime_map_entry *to_map_entry(struct kobject *kobj) argument
58 return container_of(kobj, struct efi_runtime_map_entry, kobj);
61 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, argument
64 struct efi_runtime_map_entry *entry = to_map_entry(kobj);
92 static void map_release(struct kobject *kobj) argument
96 entry = to_map_entry(kobj);
109 add_sysfs_runtime_map_entry(struct kobject *kobj, int nr) argument
115 map_kset = kset_create_and_add("runtime-map", NULL, kobj);
[all...]
/drivers/edac/
H A Dedac_device_sysfs.c23 #define to_edacdev(k) container_of(k, struct edac_device_ctl_info, kobj)
113 #define to_ctl_info(k) container_of(k, struct edac_device_ctl_info, kobj)
117 static ssize_t edac_dev_ctl_info_show(struct kobject *kobj, argument
120 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj);
129 static ssize_t edac_dev_ctl_info_store(struct kobject *kobj, argument
133 struct edac_device_ctl_info *edac_dev = to_ctl_info(kobj);
177 * called when the reference count for the 'main' kobj
182 * That main kobj is initially set to one AND
186 * Each new internal kobj (in instances and blocks) then
190 * the 'main' kobj
201 edac_device_ctrl_master_release(struct kobject *kobj) argument
333 edac_device_ctrl_instance_release(struct kobject *kobj) argument
354 edac_dev_instance_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument
366 edac_dev_instance_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument
422 block_ue_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument
430 block_ce_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument
439 edac_device_ctrl_block_release(struct kobject *kobj) argument
456 edac_dev_block_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument
468 edac_dev_block_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument
[all...]
/drivers/uwb/
H A Dpal.c48 ret = sysfs_create_link(&pal->device->kobj,
49 &rc->uwb_dev.dev.kobj, "uwb_rc");
53 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj,
54 &pal->device->kobj, pal->name);
56 sysfs_remove_link(&pal->device->kobj, "uwb_rc");
122 sysfs_remove_link(&rc->uwb_dev.dev.kobj, pal->name);
125 sysfs_remove_link(&pal->device->kobj, "uwb_rc");
/drivers/pci/
H A Dslot.c18 static ssize_t pci_slot_attr_show(struct kobject *kobj, argument
21 struct pci_slot *slot = to_pci_slot(kobj);
26 static ssize_t pci_slot_attr_store(struct kobject *kobj, argument
29 struct pci_slot *slot = to_pci_slot(kobj);
101 static void pci_slot_release(struct kobject *kobj) argument
104 struct pci_slot *slot = to_pci_slot(kobj);
188 result = kobject_rename(&slot->kobj, slot_name);
202 kobject_get(&slot->kobj);
270 kobject_put(&slot->kobj);
288 slot->kobj
353 struct kobject *kobj = NULL; local
[all...]
H A Dpci-sysfs.c619 static ssize_t pci_read_config(struct file *filp, struct kobject *kobj, argument
623 struct pci_dev *dev = to_pci_dev(container_of(kobj, struct device,
624 kobj));
696 static ssize_t pci_write_config(struct file *filp, struct kobject *kobj, argument
700 struct pci_dev *dev = to_pci_dev(container_of(kobj, struct device,
701 kobj));
758 static ssize_t read_vpd_attr(struct file *filp, struct kobject *kobj, argument
763 to_pci_dev(container_of(kobj, struct device, kobj));
773 static ssize_t write_vpd_attr(struct file *filp, struct kobject *kobj, argument
801 pci_read_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
827 pci_write_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
852 pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
873 pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
990 pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine) argument
1029 pci_mmap_resource_uc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
1036 pci_mmap_resource_wc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument
1043 pci_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count, bool write) argument
1090 pci_read_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
1097 pci_write_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
1214 pci_write_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
1240 pci_read_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
1501 pci_dev_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument
1520 pci_dev_hp_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument
1544 sriov_attrs_are_visible(struct kobject *kobj, struct attribute *a, int n) argument
[all...]
/drivers/cpuidle/
H A Dsysfs.c151 return sysfs_create_group(&dev->kobj, &cpuidle_attr_group);
159 sysfs_remove_group(&dev->kobj, &cpuidle_attr_group);
178 struct kobject kobj; member in struct:cpuidle_device_kobj
181 static inline struct cpuidle_device *to_cpuidle_device(struct kobject *kobj) argument
184 container_of(kobj, struct cpuidle_device_kobj, kobj);
189 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, argument
193 struct cpuidle_device *dev = to_cpuidle_device(kobj);
204 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, argument
208 struct cpuidle_device *dev = to_cpuidle_device(kobj);
224 cpuidle_sysfs_release(struct kobject *kobj) argument
330 struct kobject kobj; member in struct:cpuidle_state_kobj
338 cpuidle_state_show(struct kobject *kobj, struct attribute *attr, char * buf) argument
352 cpuidle_state_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
371 cpuidle_state_sysfs_release(struct kobject *kobj) argument
399 struct cpuidle_state_kobj *kobj; local
453 struct kobject kobj; member in struct:cpuidle_driver_kobj
473 cpuidle_driver_sysfs_release(struct kobject *kobj) argument
479 cpuidle_driver_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
492 cpuidle_driver_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
[all...]
/drivers/net/bonding/
H A Dbond_sysfs_slave.c94 #define to_slave(obj) container_of(obj, struct slave, kobj)
96 static ssize_t slave_show(struct kobject *kobj, argument
100 struct slave *slave = to_slave(kobj);
120 err = kobject_init_and_add(&slave->kobj, &slave_ktype,
121 &(slave->dev->dev.kobj), "bonding_slave");
126 err = sysfs_create_file(&slave->kobj, &((*a)->attr));
128 kobject_put(&slave->kobj);
141 sysfs_remove_file(&slave->kobj, &((*a)->attr));
143 kobject_put(&slave->kobj);
/drivers/w1/slaves/
H A Dw1_ds2408.c75 static ssize_t state_read(struct file *filp, struct kobject *kobj, argument
79 dev_dbg(&kobj_to_w1_slave(kobj)->dev,
80 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
81 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
84 return _read_reg(kobj_to_w1_slave(kobj), W1_F29_REG_LOGIG_STATE, buf);
87 static ssize_t output_read(struct file *filp, struct kobject *kobj, argument
91 dev_dbg(&kobj_to_w1_slave(kobj)->dev,
92 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
93 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
96 return _read_reg(kobj_to_w1_slave(kobj),
100 activity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
113 cond_search_mask_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
126 cond_search_polarity_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
137 status_control_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
147 output_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
218 activity_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
248 status_control_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
[all...]
H A Dw1_ds2413.c33 static ssize_t state_read(struct file *filp, struct kobject *kobj, argument
37 struct w1_slave *sl = kobj_to_w1_slave(kobj);
39 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p",
40 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
70 static ssize_t output_write(struct file *filp, struct kobject *kobj, argument
74 struct w1_slave *sl = kobj_to_w1_slave(kobj);
/drivers/base/
H A Dmodule.c30 mk->drivers_dir = kobject_create_and_add("drivers", &mk->kobj);
50 mk = container_of(mkobj, struct module_kobject, kobj);
62 no_warn = sysfs_create_link(&drv->p->kobj, &mk->kobj, "module");
66 no_warn = sysfs_create_link(mk->drivers_dir, &drv->p->kobj,
80 sysfs_remove_link(&drv->p->kobj, "module");
H A Dcore.c112 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, argument
116 struct device *dev = kobj_to_dev(kobj);
128 static ssize_t dev_attr_store(struct kobject *kobj, struct attribute *attr, argument
132 struct device *dev = kobj_to_dev(kobj);
219 * @kobj: device's kobject.
225 static void device_release(struct kobject *kobj) argument
227 struct device *dev = kobj_to_dev(kobj);
254 static const void *device_namespace(struct kobject *kobj) argument
256 struct device *dev = kobj_to_dev(kobj);
272 static int dev_uevent_filter(struct kset *kset, struct kobject *kobj) argument
286 dev_uevent_name(struct kset *kset, struct kobject *kobj) argument
297 dev_uevent(struct kset *kset, struct kobject *kobj, struct kobj_uevent_env *env) argument
679 struct kobject kobj; member in struct:class_dir
685 class_dir_release(struct kobject *kobj) argument
692 class_dir_child_ns_type(struct kobject *kobj) argument
733 struct kobject *kobj = NULL; local
894 struct kobject *kobj; local
906 struct kobject *kobj = device_to_dev_kobj(dev); local
920 struct kobject *kobj = device_to_dev_kobj(dev); local
966 struct kobject *kobj; local
1802 struct kobject *kobj = &dev->kobj; local
[all...]
H A Dclass.c26 static ssize_t class_attr_show(struct kobject *kobj, struct attribute *attr, argument
30 struct subsys_private *cp = to_subsys_private(kobj);
38 static ssize_t class_attr_store(struct kobject *kobj, struct attribute *attr, argument
42 struct subsys_private *cp = to_subsys_private(kobj);
50 static void class_release(struct kobject *kobj) argument
52 struct subsys_private *cp = to_subsys_private(kobj);
66 static const struct kobj_ns_type_operations *class_child_ns_type(struct kobject *kobj) argument
68 struct subsys_private *cp = to_subsys_private(kobj);
94 error = sysfs_create_file_ns(&cls->p->subsys.kobj,
105 sysfs_remove_file_ns(&cls->p->subsys.kobj,
498 struct kobject *kobj; member in struct:class_compat
[all...]
/drivers/gpu/drm/ttm/
H A Dttm_module.c60 struct kobject *kobj = &ttm_drm_class_device.kobj; local
61 BUG_ON(kobj == NULL);
62 return kobj;
/drivers/of/
H A Dof_private.h39 static inline struct device_node *kobj_to_device_node(struct kobject *kobj) argument
41 return container_of(kobj, struct device_node, kobj);
47 extern void of_node_release(struct kobject *kobj);
/drivers/thermal/
H A Duser_space.c38 kobject_uevent(&tz->device.kobj, KOBJ_CHANGE);
/drivers/pci/hotplug/
H A Drpadlpar_sysfs.c32 static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, argument
56 static ssize_t add_slot_show(struct kobject *kobj, argument
62 static ssize_t remove_slot_store(struct kobject *kobj, argument
87 static ssize_t remove_slot_show(struct kobject *kobj, argument
116 &pci_slots_kset->kobj);
/drivers/firmware/
H A Dmemmap.c44 struct kobject kobj; /* kobject for each entry */ member in struct:firmware_map_entry
50 static ssize_t memmap_attr_show(struct kobject *kobj,
101 to_memmap_entry(struct kobject *kobj) argument
103 return container_of(kobj, struct firmware_map_entry, kobj);
106 static void __meminit release_firmware_map_entry(struct kobject *kobj) argument
108 struct firmware_map_entry *entry = to_memmap_entry(kobj);
158 kobject_init(&entry->kobj, &memmap_ktype);
187 if (entry->kobj.state_in_sysfs)
196 entry->kobj
397 memmap_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
[all...]
/drivers/md/bcache/
H A Dstats.c55 container_of(kobj, struct cache_stats, kobj);
98 int ret = kobject_add(&acc->total.kobj, parent,
100 ret = ret ?: kobject_add(&acc->five_minute.kobj, parent,
102 ret = ret ?: kobject_add(&acc->hour.kobj, parent,
104 ret = ret ?: kobject_add(&acc->day.kobj, parent,
118 kobject_put(&acc->total.kobj);
119 kobject_put(&acc->five_minute.kobj);
120 kobject_put(&acc->hour.kobj);
121 kobject_put(&acc->day.kobj);
[all...]
/drivers/hid/
H A Dhid-roccat-common.h43 ssize_t roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj,
46 ssize_t roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj,
52 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
55 return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \
61 struct kobject *kobj, struct bin_attribute *attr, char *buf, \
64 return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \
H A Dhid-roccat-lua.c29 static ssize_t lua_sysfs_read(struct file *fp, struct kobject *kobj, argument
33 struct device *dev = container_of(kobj, struct device, kobj);
51 static ssize_t lua_sysfs_write(struct file *fp, struct kobject *kobj, argument
55 struct device *dev = container_of(kobj, struct device, kobj);
72 struct kobject *kobj, struct bin_attribute *attr, \
75 return lua_sysfs_write(fp, kobj, buf, off, count, \
81 struct kobject *kobj, struct bin_attribute *attr, \
84 return lua_sysfs_read(fp, kobj, bu
[all...]
/drivers/scsi/
H A Discsi_boot_sysfs.c40 static ssize_t iscsi_boot_show_attribute(struct kobject *kobj, argument
44 container_of(kobj, struct iscsi_boot_kobj, kobj);
62 static void iscsi_boot_kobj_release(struct kobject *kobj) argument
65 container_of(kobj, struct iscsi_boot_kobj, kobj);
115 static umode_t iscsi_boot_tgt_attr_is_visible(struct kobject *kobj, argument
119 container_of(kobj, struct iscsi_boot_kobj, kobj);
196 static umode_t iscsi_boot_eth_attr_is_visible(struct kobject *kobj, argument
268 iscsi_boot_ini_attr_is_visible(struct kobject *kobj, struct attribute *attr, int i) argument
[all...]

Completed in 1095 milliseconds

1234567891011>>