/drivers/uwb/ |
H A D | pal.c | 47 ret = sysfs_create_link(&pal->device->kobj, 48 &rc->uwb_dev.dev.kobj, "uwb_rc"); 51 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj, 52 &pal->device->kobj, pal->name); 54 sysfs_remove_link(&pal->device->kobj, "uwb_rc"); 86 sysfs_remove_link(&rc->uwb_dev.dev.kobj, pal->name); 87 sysfs_remove_link(&pal->device->kobj, "uwb_rc");
|
/drivers/pci/hotplug/ |
H A D | fakephp.c | 26 struct kobject kobj; member in struct:legacy_slot 33 static ssize_t legacy_show(struct kobject *kobj, struct attribute *attr, argument 36 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); 46 static ssize_t legacy_store(struct kobject *kobj, struct attribute *attr, argument 49 struct legacy_slot *slot = container_of(kobj, typeof(*slot), kobj); 58 sysfs_schedule_callback(&slot->dev->dev.kobj, remove_callback, 68 static void legacy_release(struct kobject *kobj) argument 70 struct legacy_slot *slot = container_of(kobj, typeo [all...] |
H A D | rpadlpar_sysfs.c | 32 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/gpu/drm/ttm/ |
H A D | ttm_module.c | 60 struct kobject *kobj = &ttm_drm_class_device.kobj; local 61 BUG_ON(kobj == NULL); 62 return kobj;
|
H A D | ttm_memory.c | 43 struct kobject kobj; member in struct:ttm_mem_zone 74 static void ttm_mem_zone_kobj_release(struct kobject *kobj) argument 77 container_of(kobj, struct ttm_mem_zone, kobj); 84 static ssize_t ttm_mem_zone_show(struct kobject *kobj, argument 89 container_of(kobj, struct ttm_mem_zone, kobj); 111 static ssize_t ttm_mem_zone_store(struct kobject *kobj, argument 117 container_of(kobj, struct ttm_mem_zone, kobj); 169 ttm_mem_global_kobj_release(struct kobject *kobj) argument [all...] |
/drivers/md/ |
H A D | dm-uevent.h | 33 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 D | dm-sysfs.c | 21 static ssize_t dm_attr_show(struct kobject *kobj, struct attribute *attr, argument 32 md = dm_get_from_kobject(kobj); 92 * Initialize kobj 98 &disk_to_dev(dm_disk(md))->kobj, 103 * Remove kobj, called after all references removed
|
/drivers/edac/ |
H A D | edac_device_sysfs.c | 23 #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 335 edac_device_ctrl_instance_release(struct kobject *kobj) argument 356 edac_dev_instance_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 368 edac_dev_instance_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 424 block_ue_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument 432 block_ce_count_show(struct kobject *kobj, struct attribute *attr, char *data) argument 441 edac_device_ctrl_block_release(struct kobject *kobj) argument 458 edac_dev_block_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 470 edac_dev_block_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument [all...] |
H A D | edac_mc_sysfs.c | 208 #define to_csrow(k) container_of(k, struct csrow_info, kobj) 212 static ssize_t csrowdev_show(struct kobject *kobj, argument 215 struct csrow_info *csrow = to_csrow(kobj); 224 static ssize_t csrowdev_store(struct kobject *kobj, struct attribute *attr, argument 227 struct csrow_info *csrow = to_csrow(kobj); 314 static int edac_create_channel_files(struct kobject *kobj, int chan) argument 322 err = sysfs_create_file(kobj, 328 err = sysfs_create_file(kobj, 339 /* No memory to release for this kobj */ 340 static void edac_csrow_instance_release(struct kobject *kobj) argument 365 struct kobject *kobj; local 541 mcidev_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 555 mcidev_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 622 edac_mci_control_release(struct kobject *kobj) argument 722 inst_grp_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 736 inst_grp_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 751 edac_inst_grp_release(struct kobject *kobj) argument 781 edac_create_mci_instance_attributes(struct mem_ctl_info *mci, const struct mcidev_sysfs_attribute *sysfs_attrib, struct kobject *kobj) argument 842 edac_remove_mci_instance_attributes(struct mem_ctl_info *mci, const struct mcidev_sysfs_attribute *sysfs_attrib, struct kobject *kobj, int count) argument [all...] |
H A D | mce_amd_inj.c | 23 ssize_t (*show) (struct kobject *kobj, struct edac_mce_attr *attr, char *buf); 24 ssize_t (*store)(struct kobject *kobj, struct edac_mce_attr *attr, 39 static ssize_t edac_inject_##reg##_store(struct kobject *kobj, \ 60 static ssize_t edac_inject_##reg##_show(struct kobject *kobj, \ 79 static ssize_t edac_inject_bank_store(struct kobject *kobj, argument 105 static ssize_t edac_inject_bank_show(struct kobject *kobj, argument 126 mce_kobj = kobject_create_and_add("mce", &edac_subsys->dev_root->kobj);
|
H A D | edac_pci_sysfs.c | 73 #define to_instance(k) container_of(k, struct edac_pci_ctl_info, kobj) 77 static void edac_pci_instance_release(struct kobject *kobj) argument 84 pci = to_instance(kobj); 86 /* decrement reference count on top main kobj */ 100 static ssize_t edac_pci_instance_show(struct kobject *kobj, argument 103 struct edac_pci_ctl_info *pci = to_instance(kobj); 112 static ssize_t edac_pci_instance_store(struct kobject *kobj, argument 116 struct edac_pci_ctl_info *pci = to_instance(kobj); 166 /* First bump the ref count on the top main kobj, which will 176 /* And now register this new kobject under the main kobj */ 242 edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 253 edac_pci_dev_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 318 edac_pci_release_main_kobj(struct kobject *kobj) argument [all...] |
/drivers/w1/slaves/ |
H A D | w1_ds2408.c | 75 struct file *filp, struct kobject *kobj, 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); 88 struct file *filp, struct kobject *kobj, 92 dev_dbg(&kobj_to_w1_slave(kobj)->dev, 93 "Reading %s kobj: %p, off: %0#10x, count: %zu, buff addr: %p", 94 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); 97 return _read_reg(kobj_to_w1_slave(kobj), 74 w1_f29_read_state( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 87 w1_f29_read_output( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 101 w1_f29_read_activity( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 115 w1_f29_read_cond_search_mask( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 129 w1_f29_read_cond_search_polarity( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 140 w1_f29_read_status_control( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 154 w1_f29_write_output( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 220 w1_f29_write_activity( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 251 w1_f29_write_status_control( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument [all...] |
/drivers/base/ |
H A D | core.c | 87 #define to_dev(obj) container_of(obj, struct device, kobj) 90 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, argument 94 struct device *dev = to_dev(kobj); 106 static ssize_t dev_attr_store(struct kobject *kobj, struct attribute *attr, argument 110 struct device *dev = to_dev(kobj); 176 * @kobj: device's kobject. 182 static void device_release(struct kobject *kobj) argument 184 struct device *dev = to_dev(kobj); 200 static const void *device_namespace(struct kobject *kobj) argument 202 struct device *dev = to_dev(kobj); 218 dev_uevent_filter(struct kset *kset, struct kobject *kobj) argument 232 dev_uevent_name(struct kset *kset, struct kobject *kobj) argument 243 dev_uevent(struct kset *kset, struct kobject *kobj, struct kobj_uevent_env *env) argument 673 struct kobject kobj; member in struct:class_dir 679 class_dir_release(struct kobject *kobj) argument 686 class_dir_child_ns_type(struct kobject *kobj) argument 727 struct kobject *kobj = NULL; local 886 struct kobject *kobj; local 898 struct kobject *kobj = device_to_dev_kobj(dev); local 912 struct kobject *kobj = device_to_dev_kobj(dev); local 958 struct kobject *kobj; local [all...] |
H A D | module.c | 30 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 D | class.c | 26 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 const void *class_attr_namespace(struct kobject *kobj, argument 54 struct subsys_private *cp = to_subsys_private(kobj); 62 static void class_release(struct kobject *kobj) argument 64 struct subsys_private *cp = to_subsys_private(kobj); 78 static const struct kobj_ns_type_operations *class_child_ns_type(struct kobject *kobj) argument 80 struct subsys_private *cp = to_subsys_private(kobj); 509 struct kobject *kobj; member in struct:class_compat [all...] |
H A D | base.h | 44 #define to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj) 47 struct kobject kobj; member in struct:driver_private 53 #define to_driver(obj) container_of(obj, struct driver_private, kobj) 120 extern char *make_class_name(const char *name, struct kobject *kobj);
|
H A D | bus.c | 54 static ssize_t drv_attr_show(struct kobject *kobj, struct attribute *attr, argument 58 struct driver_private *drv_priv = to_driver(kobj); 66 static ssize_t drv_attr_store(struct kobject *kobj, struct attribute *attr, argument 70 struct driver_private *drv_priv = to_driver(kobj); 83 static void driver_release(struct kobject *kobj) argument 85 struct driver_private *drv_priv = to_driver(kobj); 87 pr_debug("driver: '%s': %s\n", kobject_name(kobj), __func__); 99 static ssize_t bus_attr_show(struct kobject *kobj, struct attribute *attr, argument 103 struct subsys_private *subsys_priv = to_subsys_private(kobj); 111 static ssize_t bus_attr_store(struct kobject *kobj, struc argument 153 bus_uevent_filter(struct kset *kset, struct kobject *kobj) argument [all...] |
/drivers/cpuidle/ |
H A D | sysfs.c | 146 return sysfs_create_group(&dev->kobj, &cpuidle_attr_group); 154 sysfs_remove_group(&dev->kobj, &cpuidle_attr_group); 168 #define kobj_to_cpuidledev(k) container_of(k, struct cpuidle_device, kobj) 170 static ssize_t cpuidle_show(struct kobject * kobj, struct attribute * attr ,char * buf) argument 173 struct cpuidle_device *dev = kobj_to_cpuidledev(kobj); 184 static ssize_t cpuidle_store(struct kobject * kobj, struct attribute * attr, argument 188 struct cpuidle_device *dev = kobj_to_cpuidledev(kobj); 204 static void cpuidle_sysfs_release(struct kobject *kobj) argument 206 struct cpuidle_device *dev = kobj_to_cpuidledev(kobj); 298 #define kobj_to_state_obj(k) container_of(k, struct cpuidle_state_kobj, kobj) 302 cpuidle_state_show(struct kobject * kobj, struct attribute * attr ,char * buf) argument 316 cpuidle_state_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument 334 cpuidle_state_sysfs_release(struct kobject *kobj) argument 362 struct cpuidle_state_kobj *kobj; local [all...] |
/drivers/pci/ |
H A D | slot.c | 18 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 379 struct kobject *kobj = NULL; local [all...] |
H A D | pci-sysfs.c | 428 pci_read_config(struct file *filp, struct kobject *kobj, argument 432 struct pci_dev *dev = to_pci_dev(container_of(kobj,struct device,kobj)); 502 pci_write_config(struct file* filp, struct kobject *kobj, argument 506 struct pci_dev *dev = to_pci_dev(container_of(kobj,struct device,kobj)); 560 read_vpd_attr(struct file *filp, struct kobject *kobj, argument 565 to_pci_dev(container_of(kobj, struct device, kobj)); 576 write_vpd_attr(struct file *filp, struct kobject *kobj, argument 605 pci_read_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 633 pci_write_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 659 pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 682 pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 803 pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine) argument 844 pci_mmap_resource_uc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 852 pci_mmap_resource_wc(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, struct vm_area_struct *vma) argument 860 pci_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count, bool write) argument 908 pci_read_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 916 pci_write_resource_io(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 1035 pci_write_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 1062 pci_read_rom(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument [all...] |
/drivers/firmware/ |
H A D | memmap.c | 43 struct kobject kobj; /* kobject for each entry */ member in struct:firmware_map_entry 49 static ssize_t memmap_attr_show(struct kobject *kobj, 119 kobject_init(&entry->kobj, &memmap_ktype); 140 entry->kobj.kset = mmap_kset; 141 if (kobject_add(&entry->kobj, NULL, "%d", map_entries_nr++)) 142 kobject_put(&entry->kobj); 221 #define to_memmap_entry(obj) container_of(obj, struct firmware_map_entry, kobj) 223 static ssize_t memmap_attr_show(struct kobject *kobj, argument 226 struct firmware_map_entry *entry = to_memmap_entry(kobj);
|
/drivers/scsi/arcmsr/ |
H A D | arcmsr_attr.c | 63 struct kobject *kobj, 68 struct device *dev = container_of(kobj,struct device,kobj); 110 struct kobject *kobj, 115 struct device *dev = container_of(kobj,struct device,kobj); 159 struct kobject *kobj, 164 struct device *dev = container_of(kobj,struct device,kobj); 223 error = sysfs_create_bin_file(&host->shost_dev.kobj, 62 arcmsr_sysfs_iop_message_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument 109 arcmsr_sysfs_iop_message_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument 158 arcmsr_sysfs_iop_message_clear(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument [all...] |
/drivers/scsi/ |
H A D | iscsi_boot_sysfs.c | 40 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...] |
/drivers/acpi/ |
H A D | fan.c | 150 result = sysfs_create_link(&device->dev.kobj, 151 &cdev->device.kobj, 157 result = sysfs_create_link(&cdev->device.kobj, 158 &device->dev.kobj, 179 sysfs_remove_link(&device->dev.kobj, "thermal_cooling"); 180 sysfs_remove_link(&cdev->device.kobj, "device");
|
/drivers/message/i2o/ |
H A D | device.c | 245 rc = sysfs_create_link(&i2o_dev->device.kobj, 246 &tmp->device.kobj, "user"); 255 rc = sysfs_create_link(&tmp->device.kobj, 256 &i2o_dev->device.kobj, "user"); 264 rc = sysfs_create_link(&i2o_dev->device.kobj, 265 &tmp->device.kobj, "parent"); 274 rc = sysfs_create_link(&tmp->device.kobj, 275 &i2o_dev->device.kobj, "parent"); 293 sysfs_remove_link(&tmp->device.kobj, "parent"); 295 sysfs_remove_link(&i2o_dev->device.kobj, "paren [all...] |