/drivers/base/ |
H A D | devcoredump.c | 65 if (devcd->failing_dev->kobj.sd) 66 sysfs_delete_link(&devcd->failing_dev->kobj, &dev->kobj, 83 static ssize_t devcd_data_read(struct file *filp, struct kobject *kobj, argument 87 struct device *dev = kobj_to_dev(kobj); 93 static ssize_t devcd_data_write(struct file *filp, struct kobject *kobj, argument 97 struct device *dev = kobj_to_dev(kobj); 225 if (sysfs_create_link(&devcd->devcd_dev.kobj, &dev->kobj, 229 if (sysfs_create_link(&dev->kobj, [all...] |
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 149 bus_release(struct kobject *kobj) argument 164 bus_uevent_filter(struct kset *kset, struct kobject *kobj) argument [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) 130 extern char *make_class_name(const char *name, struct kobject *kobj);
|
H A D | dd.c | 199 __func__, kobject_name(&dev->kobj)); 228 ret = sysfs_create_link(&dev->driver->p->kobj, &dev->kobj, 229 kobject_name(&dev->kobj)); 231 ret = sysfs_create_link(&dev->kobj, &dev->driver->p->kobj, 234 sysfs_remove_link(&dev->driver->p->kobj, 235 kobject_name(&dev->kobj)); 245 sysfs_remove_link(&drv->p->kobj, kobject_name(&dev->kobj)); [all...] |
H A D | node.c | 337 ret = sysfs_create_link(&node_devices[nid]->dev.kobj, 338 &obj->kobj, 339 kobject_name(&obj->kobj)); 343 return sysfs_create_link(&obj->kobj, 344 &node_devices[nid]->dev.kobj, 345 kobject_name(&node_devices[nid]->dev.kobj)); 359 sysfs_remove_link(&node_devices[nid]->dev.kobj, 360 kobject_name(&obj->kobj)); 361 sysfs_remove_link(&obj->kobj, 362 kobject_name(&node_devices[nid]->dev.kobj)); [all...] |
/drivers/edac/ |
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 */ 241 edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, char *buffer) argument 252 edac_pci_dev_store(struct kobject *kobj, struct attribute *attr, const char *buffer, size_t count) argument 317 edac_pci_release_main_kobj(struct kobject *kobj) argument [all...] |
/drivers/gpu/drm/ttm/ |
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/w1/slaves/ |
H A D | w1_ds2406.c | 32 struct file *filp, struct kobject *kobj, 37 struct w1_slave *sl = kobj_to_w1_slave(kobj); 69 struct file *filp, struct kobject *kobj, 73 struct w1_slave *sl = kobj_to_w1_slave(kobj); 130 &sl->dev.kobj, 134 sysfs_remove_bin_file(&sl->dev.kobj, 143 sysfs_remove_bin_file(&sl->dev.kobj, 31 w1_f12_read_state( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 68 w1_f12_write_output( struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument
|
/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sysfs.c | 271 static ssize_t qlcnic_sysfs_read_crb(struct file *filp, struct kobject *kobj, argument 275 struct device *dev = container_of(kobj, struct device, kobj); 288 static ssize_t qlcnic_sysfs_write_crb(struct file *filp, struct kobject *kobj, argument 292 struct device *dev = container_of(kobj, struct device, kobj); 317 static ssize_t qlcnic_sysfs_read_mem(struct file *filp, struct kobject *kobj, argument 321 struct device *dev = container_of(kobj, struct device, kobj); 339 static ssize_t qlcnic_sysfs_write_mem(struct file *filp, struct kobject *kobj, argument 402 qlcnic_sysfs_write_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 452 qlcnic_sysfs_read_pm_config(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 545 qlcnic_sysfs_write_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 629 qlcnic_sysfs_read_esw_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 681 qlcnic_sysfs_write_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 728 qlcnic_sysfs_read_npar_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 775 qlcnic_sysfs_get_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 810 qlcnic_sysfs_get_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 845 qlcnic_sysfs_clear_esw_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 874 qlcnic_sysfs_clear_port_stats(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 904 qlcnic_sysfs_read_pci_config(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 944 qlcnic_83xx_sysfs_flash_read_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument 1123 qlcnic_83xx_sysfs_flash_write_handler(struct file *filp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t offset, size_t size) argument [all...] |
/drivers/fmc/ |
H A D | fmc-core.c | 81 static ssize_t fmc_read_eeprom(struct file *file, struct kobject *kobj, argument 89 dev = container_of(kobj, struct device, kobj); 102 static ssize_t fmc_write_eeprom(struct file *file, struct kobject *kobj, argument 109 dev = container_of(kobj, struct device, kobj); 227 "\"%s\"\n", fmc->slot_id, fmc->dev.kobj.name); 230 ret = sysfs_create_bin_file(&fmc->dev.kobj, &fmc_eeprom_attr); 249 sysfs_remove_bin_file(&devs[i]->dev.kobj, &fmc_eeprom_attr); 276 sysfs_remove_bin_file(&devs[i]->dev.kobj, [all...] |
/drivers/pci/ |
H A D | pci-label.c | 76 static umode_t smbios_instance_string_exist(struct kobject *kobj, argument 82 dev = container_of(kobj, struct device, kobj); 132 return sysfs_create_group(&pdev->dev.kobj, &smbios_attr_group); 137 sysfs_remove_group(&pdev->dev.kobj, &smbios_attr_group); 226 static umode_t acpi_index_string_exist(struct kobject *kobj, argument 231 dev = container_of(kobj, struct device, kobj); 274 return sysfs_create_group(&pdev->dev.kobj, &acpi_attr_group); 279 sysfs_remove_group(&pdev->dev.kobj, [all...] |
/drivers/scsi/arcmsr/ |
H A D | arcmsr_attr.c | 64 struct kobject *kobj, 69 struct device *dev = container_of(kobj,struct device,kobj); 111 struct kobject *kobj, 116 struct device *dev = container_of(kobj,struct device,kobj); 159 struct kobject *kobj, 164 struct device *dev = container_of(kobj,struct device,kobj); 225 error = sysfs_create_bin_file(&host->shost_dev.kobj, 63 arcmsr_sysfs_iop_message_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin, char *buf, loff_t off, size_t count) argument 110 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/hid/ |
H A D | hid-roccat-common.c | 133 ssize_t roccat_common2_sysfs_read(struct file *fp, struct kobject *kobj, argument 138 container_of(kobj, struct device, kobj)->parent->parent; 157 ssize_t roccat_common2_sysfs_write(struct file *fp, struct kobject *kobj, argument 162 container_of(kobj, struct device, kobj)->parent->parent;
|
H A D | hid-roccat-pyra.c | 87 static ssize_t pyra_sysfs_read(struct file *fp, struct kobject *kobj, argument 92 container_of(kobj, struct device, kobj)->parent->parent; 113 static ssize_t pyra_sysfs_write(struct file *fp, struct kobject *kobj, argument 118 container_of(kobj, struct device, kobj)->parent->parent; 138 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 141 return pyra_sysfs_write(fp, kobj, buf, off, count, \ 147 struct kobject *kobj, struct bin_attribute *attr, char *buf, \ 150 return pyra_sysfs_read(fp, kobj, bu 188 pyra_sysfs_read_profilex_settings(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 207 pyra_sysfs_read_profilex_buttons(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument 245 pyra_sysfs_write_settings(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument [all...] |
/drivers/md/ |
H A D | dm.h | 152 struct kobject kobj; member in struct:dm_kobject_holder 156 static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) argument 158 return &container_of(kobj, struct dm_kobject_holder, kobj)->completion; 164 struct mapped_device *dm_get_from_kobject(struct kobject *kobj); 169 void dm_kobject_release(struct kobject *kobj);
|
/drivers/hwmon/ |
H A D | mc13783-adc.c | 195 ret = sysfs_create_group(&pdev->dev.kobj, &mc13783_group_base); 200 ret = sysfs_create_group(&pdev->dev.kobj, 207 ret = sysfs_create_group(&pdev->dev.kobj, &mc13783_group_ts); 225 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_ts); 229 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_16chans); 232 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_base); 244 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_ts); 247 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_16chans); 249 sysfs_remove_group(&pdev->dev.kobj, &mc13783_group_base);
|
/drivers/md/bcache/ |
H A D | sysfs.h | 15 static ssize_t fn ## _show(struct kobject *kobj, struct attribute *attr,\ 19 static ssize_t fn ## _store(struct kobject *kobj, struct attribute *attr,\ 27 ret = __ ## fn ## _show(kobj, attr, buf); \ 37 ret = __ ## fn ## _store(kobj, attr, buf, size); \
|
/drivers/message/i2o/ |
H A D | device.c | 255 rc = sysfs_create_link(&i2o_dev->device.kobj, 256 &tmp->device.kobj, "user"); 265 rc = sysfs_create_link(&tmp->device.kobj, 266 &i2o_dev->device.kobj, "user"); 274 rc = sysfs_create_link(&i2o_dev->device.kobj, 275 &tmp->device.kobj, "parent"); 284 rc = sysfs_create_link(&tmp->device.kobj, 285 &i2o_dev->device.kobj, "parent"); 303 sysfs_remove_link(&tmp->device.kobj, "parent"); 305 sysfs_remove_link(&i2o_dev->device.kobj, "paren [all...] |
/drivers/misc/ |
H A D | ds1682.c | 141 static ssize_t ds1682_eeprom_read(struct file *filp, struct kobject *kobj, argument 145 struct i2c_client *client = kobj_to_i2c_client(kobj); 165 static ssize_t ds1682_eeprom_write(struct file *filp, struct kobject *kobj, argument 169 struct i2c_client *client = kobj_to_i2c_client(kobj); 213 rc = sysfs_create_group(&client->dev.kobj, &ds1682_group); 217 rc = sysfs_create_bin_file(&client->dev.kobj, &ds1682_eeprom_attr); 224 sysfs_remove_group(&client->dev.kobj, &ds1682_group); 231 sysfs_remove_bin_file(&client->dev.kobj, &ds1682_eeprom_attr); 232 sysfs_remove_group(&client->dev.kobj, &ds1682_group);
|
/drivers/firmware/ |
H A D | dmi-sysfs.c | 34 struct kobject kobj; member in struct:dmi_sysfs_entry 81 static void dmi_entry_free(struct kobject *kobj) argument 83 kfree(kobj); 86 static struct dmi_sysfs_entry *to_entry(struct kobject *kobj) argument 88 return container_of(kobj, struct dmi_sysfs_entry, kobj); 96 static ssize_t dmi_sysfs_attr_show(struct kobject *kobj, argument 99 struct dmi_sysfs_entry *entry = to_entry(kobj); 213 static ssize_t dmi_entry_attr_show(struct kobject *kobj, argument 223 return find_dmi_entry(to_entry(kobj 428 dmi_sel_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument 533 dmi_entry_raw_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t pos, size_t count) argument 553 dmi_sysfs_entry_release(struct kobject *kobj) argument [all...] |
/drivers/parisc/ |
H A D | pdc_stable.c | 106 struct kobject kobj; member in struct:pdcspath_entry 137 #define to_pdcspath_entry(obj) container_of(obj, struct pdcspath_entry, kobj) 335 sysfs_remove_link(&entry->kobj, "device"); 336 ret = sysfs_create_link(&entry->kobj, &entry->dev->kobj, "device"); 443 * @kobj: The kobject to get info from. 448 pdcspath_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 450 struct pdcspath_entry *entry = to_pdcspath_entry(kobj); 462 * @kobj: The kobject to write info to. 468 pdcspath_attr_store(struct kobject *kobj, struc argument 528 pdcs_size_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 548 pdcs_auto_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf, int knob) argument 573 pdcs_autoboot_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 583 pdcs_autosearch_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 595 pdcs_timer_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 620 pdcs_osid_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 640 pdcs_osdep1_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 666 pdcs_diagnostic_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 690 pdcs_fastsize_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 718 pdcs_osdep2_read(struct kobject *kobj, struct kobj_attribute *attr, char *buf) argument 754 pdcs_auto_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, int knob) argument 826 pdcs_autoboot_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 842 pdcs_autosearch_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 858 pdcs_osdep1_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 895 pdcs_osdep2_write(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument [all...] |
/drivers/pci/hotplug/ |
H A D | pci_hotplug_core.c | 318 retval = sysfs_create_file(&slot->kobj, 325 retval = sysfs_create_file(&slot->kobj, 332 retval = sysfs_create_file(&slot->kobj, 339 retval = sysfs_create_file(&slot->kobj, 346 retval = sysfs_create_file(&slot->kobj, 356 sysfs_remove_file(&slot->kobj, 360 sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_latch.attr); 363 sysfs_remove_file(&slot->kobj, 367 sysfs_remove_file(&slot->kobj, &hotplug_slot_attr_power.attr); 377 sysfs_remove_file(&slot->kobj, [all...] |
/drivers/staging/iio/accel/ |
H A D | adis16220_core.c | 162 static ssize_t adis16220_accel_bin_read(struct file *filp, struct kobject *kobj, argument 168 struct iio_dev *indio_dev = dev_to_iio_dev(kobj_to_dev(kobj)); 184 static ssize_t adis16220_adc1_bin_read(struct file *filp, struct kobject *kobj, argument 189 struct iio_dev *indio_dev = dev_to_iio_dev(kobj_to_dev(kobj)); 205 static ssize_t adis16220_adc2_bin_read(struct file *filp, struct kobject *kobj, argument 210 struct iio_dev *indio_dev = dev_to_iio_dev(kobj_to_dev(kobj)); 445 ret = sysfs_create_bin_file(&indio_dev->dev.kobj, &accel_bin); 449 ret = sysfs_create_bin_file(&indio_dev->dev.kobj, &adc1_bin); 453 ret = sysfs_create_bin_file(&indio_dev->dev.kobj, &adc2_bin); 467 sysfs_remove_bin_file(&indio_dev->dev.kobj, [all...] |
/drivers/acpi/ |
H A D | processor_driver.c | 199 result = sysfs_create_link(&device->dev.kobj, 200 &pr->cdev->device.kobj, 207 result = sysfs_create_link(&pr->cdev->device.kobj, 208 &device->dev.kobj, 221 sysfs_remove_link(&pr->cdev->device.kobj, "device"); 223 sysfs_remove_link(&device->dev.kobj, "thermal_cooling"); 259 sysfs_remove_link(&device->dev.kobj, "thermal_cooling"); 260 sysfs_remove_link(&pr->cdev->device.kobj, "device");
|