Searched refs:kobj (Results 76 - 100 of 505) sorted by relevance

1234567891011>>

/drivers/rtc/
H A Drtc-tx4939.c192 static ssize_t tx4939_rtc_nvram_read(struct file *filp, struct kobject *kobj, argument
196 struct device *dev = container_of(kobj, struct device, kobj);
211 static ssize_t tx4939_rtc_nvram_write(struct file *filp, struct kobject *kobj, argument
215 struct device *dev = container_of(kobj, struct device, kobj);
270 ret = sysfs_create_bin_file(&pdev->dev.kobj, &tx4939_rtc_nvram_attr);
279 sysfs_remove_bin_file(&pdev->dev.kobj, &tx4939_rtc_nvram_attr);
/drivers/scsi/qla4xxx/
H A Dql4_attr.c13 qla4_8xxx_sysfs_read_fw_dump(struct file *filep, struct kobject *kobj, argument
17 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj,
18 struct device, kobj)));
31 qla4_8xxx_sysfs_write_fw_dump(struct file *filep, struct kobject *kobj, argument
35 struct scsi_qla_host *ha = to_qla_host(dev_to_shost(container_of(kobj,
36 struct device, kobj)));
133 ret = sysfs_create_bin_file(&host->shost_gendev.kobj,
148 sysfs_remove_bin_file(&host->shost_gendev.kobj,
/drivers/video/fbdev/omap2/dss/
H A Ddisplay-sysfs.c311 struct kobject *kobj = &dssdev->dev->kobj; local
313 r = sysfs_create_files(kobj, display_sysfs_attrs);
319 r = sysfs_create_link(&pdev->dev.kobj, kobj, dssdev->alias);
321 sysfs_remove_files(kobj, display_sysfs_attrs);
341 sysfs_remove_link(&pdev->dev.kobj, dssdev->alias);
342 sysfs_remove_files(&dssdev->dev->kobj,
H A Doverlay-sysfs.c405 static ssize_t overlay_attr_show(struct kobject *kobj, struct attribute *attr, argument
411 overlay = container_of(kobj, struct omap_overlay, kobj);
420 static ssize_t overlay_attr_store(struct kobject *kobj, struct attribute *attr, argument
426 overlay = container_of(kobj, struct omap_overlay, kobj);
448 return kobject_init_and_add(&ovl->kobj, &overlay_ktype,
449 &pdev->dev.kobj, "overlay%d", ovl->id);
454 kobject_del(&ovl->kobj);
455 kobject_put(&ovl->kobj);
[all...]
/drivers/w1/slaves/
H A Dw1_ds28e04.c121 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, argument
125 struct w1_slave *sl = kobj_to_w1_slave(kobj);
229 static ssize_t eeprom_write(struct file *filp, struct kobject *kobj, argument
234 struct w1_slave *sl = kobj_to_w1_slave(kobj);
285 static ssize_t pio_read(struct file *filp, struct kobject *kobj, argument
290 struct w1_slave *sl = kobj_to_w1_slave(kobj);
304 static ssize_t pio_write(struct file *filp, struct kobject *kobj, argument
309 struct w1_slave *sl = kobj_to_w1_slave(kobj);
/drivers/hwmon/
H A Dmax1111.c225 err = sysfs_create_group(&spi->dev.kobj, &max1111_attr_group);
231 err = sysfs_create_group(&spi->dev.kobj, &max1110_attr_group);
252 sysfs_remove_group(&spi->dev.kobj, &max1110_attr_group);
253 sysfs_remove_group(&spi->dev.kobj, &max1111_attr_group);
262 sysfs_remove_group(&spi->dev.kobj, &max1110_attr_group);
263 sysfs_remove_group(&spi->dev.kobj, &max1111_attr_group);
H A Dpcf8591.c215 err = sysfs_create_group(&client->dev.kobj, &pcf8591_attr_group);
242 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group_opt);
243 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group);
252 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group_opt);
253 sysfs_remove_group(&client->dev.kobj, &pcf8591_attr_group);
H A Dad7314.c121 ret = sysfs_create_group(&spi_dev->dev.kobj, &ad7314_group);
134 sysfs_remove_group(&spi_dev->dev.kobj, &ad7314_group);
143 sysfs_remove_group(&spi_dev->dev.kobj, &ad7314_group);
H A Djz4740-hwmon.c141 ret = sysfs_create_group(&pdev->dev.kobj, &jz4740_hwmon_attr_group);
156 sysfs_remove_group(&pdev->dev.kobj, &jz4740_hwmon_attr_group);
165 sysfs_remove_group(&pdev->dev.kobj, &jz4740_hwmon_attr_group);
H A Dmcp3021.c154 err = sysfs_create_file(&client->dev.kobj, &dev_attr_in0_input.attr);
167 sysfs_remove_file(&client->dev.kobj, &dev_attr_in0_input.attr);
176 sysfs_remove_file(&client->dev.kobj, &dev_attr_in0_input.attr);
/drivers/infiniband/hw/mlx4/
H A Dsysfs.c179 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
201 vdentry->kobj = _kobj;
210 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr);
388 struct kobject kobj; member in struct:mlx4_port
399 static void mlx4_port_release(struct kobject *kobj) argument
401 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
421 static ssize_t port_attr_show(struct kobject *kobj, argument
426 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj);
433 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
[all...]
/drivers/md/bcache/
H A Dsysfs.c111 struct cached_dev *dc = container_of(kobj, struct cached_dev,
112 disk.kobj);
192 struct cached_dev *dc = container_of(kobj, struct cached_dev,
193 disk.kobj);
261 &disk_to_dev(dc->disk.disk)->kobj, KOBJ_CHANGE, env->envp);
290 struct cached_dev *dc = container_of(kobj, struct cached_dev,
291 disk.kobj);
294 size = __cached_dev_store(kobj, attr, buf, size);
343 struct bcache_device *d = container_of(kobj, struct bcache_device,
344 kobj);
[all...]
H A Dsuper.c688 sysfs_remove_link(&d->c->kobj, d->name);
689 sysfs_remove_link(&d->kobj, "cache");
708 WARN(sysfs_create_link(&d->kobj, &c->kobj, "cache") ||
709 sysfs_create_link(&c->kobj, &d->kobj, d->name),
898 kobject_uevent_env(&disk_to_dev(d->disk)->kobj, KOBJ_CHANGE, env);
902 if (sysfs_create_link(&d->kobj, &disk_to_dev(d->disk)->kobj, "dev") ||
903 sysfs_create_link(&disk_to_dev(d->disk)->kobj,
1063 bch_cached_dev_release(struct kobject *kobj) argument
1206 bch_flash_dev_release(struct kobject *kobj) argument
1335 bch_cache_set_release(struct kobject *kobj) argument
1792 bch_cache_release(struct kobject *kobj) argument
[all...]
/drivers/hid/
H A Dhid-roccat-arvo.c191 struct kobject *kobj, void const *buf,
195 container_of(kobj, struct device, kobj)->parent->parent;
211 struct kobject *kobj, void *buf, loff_t off,
215 container_of(kobj, struct device, kobj)->parent->parent;
234 struct kobject *kobj, struct bin_attribute *attr, char *buf,
237 return arvo_sysfs_write(fp, kobj, buf, off, count,
244 struct kobject *kobj, struct bin_attribute *attr, char *buf,
247 return arvo_sysfs_read(fp, kobj, bu
190 arvo_sysfs_write(struct file *fp, struct kobject *kobj, void const *buf, loff_t off, size_t count, size_t real_size, uint command) argument
210 arvo_sysfs_read(struct file *fp, struct kobject *kobj, void *buf, loff_t off, size_t count, size_t real_size, uint command) argument
233 arvo_sysfs_write_button(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
243 arvo_sysfs_read_info(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
[all...]
H A Dhid-roccat-isku.c120 static ssize_t isku_sysfs_read(struct file *fp, struct kobject *kobj, argument
125 container_of(kobj, struct device, kobj)->parent->parent;
143 static ssize_t isku_sysfs_write(struct file *fp, struct kobject *kobj, argument
148 container_of(kobj, struct device, kobj)->parent->parent;
165 static ssize_t isku_sysfs_write_ ## thingy(struct file *fp, struct kobject *kobj, \
169 return isku_sysfs_write(fp, kobj, buf, off, count, \
174 static ssize_t isku_sysfs_read_ ## thingy(struct file *fp, struct kobject *kobj, \
178 return isku_sysfs_read(fp, kobj, bu
[all...]
H A Dhid-roccat-kone.c267 static ssize_t kone_sysfs_read_settings(struct file *fp, struct kobject *kobj, argument
271 container_of(kobj, struct device, kobj)->parent->parent;
292 static ssize_t kone_sysfs_write_settings(struct file *fp, struct kobject *kobj, argument
296 container_of(kobj, struct device, kobj)->parent->parent;
331 struct kobject *kobj, struct bin_attribute *attr,
334 container_of(kobj, struct device, kobj)->parent->parent;
352 struct kobject *kobj, struc
330 kone_sysfs_read_profilex(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
351 kone_sysfs_write_profilex(struct file *fp, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) argument
[all...]
/drivers/infiniband/core/
H A Dsysfs.c44 struct kobject kobj; member in struct:ib_port
70 static ssize_t port_attr_show(struct kobject *kobj, argument
75 struct ib_port *p = container_of(kobj, struct ib_port, kobj);
426 static void ib_port_release(struct kobject *kobj) argument
428 struct ib_port *p = container_of(kobj, struct ib_port, kobj);
540 ret = kobject_init_and_add(&p->kobj, &port_type,
548 ret = sysfs_create_group(&p->kobj, &pma_group);
559 ret = sysfs_create_group(&p->kobj,
[all...]
/drivers/gpu/drm/ttm/
H A Dttm_page_alloc.c111 struct kobject kobj; member in struct:ttm_pool_manager
146 static void ttm_pool_kobj_release(struct kobject *kobj) argument
149 container_of(kobj, struct ttm_pool_manager, kobj);
153 static ssize_t ttm_pool_store(struct kobject *kobj, argument
157 container_of(kobj, struct ttm_pool_manager, kobj);
187 static ssize_t ttm_pool_show(struct kobject *kobj, argument
191 container_of(kobj, struct ttm_pool_manager, kobj);
[all...]
/drivers/pci/
H A Diov.c111 rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf);
114 rc = sysfs_create_link(&virtfn->dev.kobj, &dev->dev.kobj, "physfn");
118 kobject_uevent(&virtfn->dev.kobj, KOBJ_CHANGE);
123 sysfs_remove_link(&dev->dev.kobj, buf);
154 sysfs_remove_link(&dev->dev.kobj, buf);
160 if (virtfn->dev.kobj.sd)
161 sysfs_remove_link(&virtfn->dev.kobj, "physfn");
239 rc = sysfs_create_link(&dev->dev.kobj,
[all...]
/drivers/firmware/
H A Dedd.c60 struct kobject kobj; member in struct:edd_device
111 #define to_edd_device(obj) container_of(obj,struct edd_device,kobj)
114 edd_attr_show(struct kobject * kobj, struct attribute *attr, char *buf) argument
116 struct edd_device *dev = to_edd_device(kobj);
615 * @kobj: kobject of edd structure
622 static void edd_release(struct kobject * kobj) argument
624 struct edd_device * dev = to_edd_device(kobj);
688 ret = sysfs_create_link(&edev->kobj,&pci_dev->dev.kobj,"pci_dev");
696 kobject_put(&edev->kobj);
[all...]
/drivers/misc/eeprom/
H A Deeprom.c83 static ssize_t eeprom_read(struct file *filp, struct kobject *kobj, argument
87 struct i2c_client *client = to_i2c_client(container_of(kobj, struct device, kobj));
192 return sysfs_create_bin_file(&client->dev.kobj, &eeprom_attr);
197 sysfs_remove_bin_file(&client->dev.kobj, &eeprom_attr);
/drivers/cpufreq/
H A Dcpufreq.c108 return &policy->kobj;
218 kobject_get(&policy->kobj);
235 kobject_put(&policy->kobj);
407 static ssize_t show_boost(struct kobject *kobj, argument
413 static ssize_t store_boost(struct kobject *kobj, struct attribute *attr, argument
756 #define to_policy(k) container_of(k, struct cpufreq_policy, kobj)
759 static ssize_t show(struct kobject *kobj, struct attribute *attr, char *buf) argument
761 struct cpufreq_policy *policy = to_policy(kobj);
781 static ssize_t store(struct kobject *kobj, struct attribute *attr, argument
784 struct cpufreq_policy *policy = to_policy(kobj);
812 cpufreq_sysfs_release(struct kobject *kobj) argument
1062 struct kobject *kobj; local
[all...]
/drivers/base/
H A Dsoc.c45 static umode_t soc_attribute_mode(struct kobject *kobj, argument
49 struct device *dev = container_of(kobj, struct device, kobj);
/drivers/net/wireless/ti/wlcore/
H A Dsysfs.c109 static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj, argument
113 struct device *dev = container_of(kobj, struct device, kobj);
/drivers/regulator/
H A Duserspace-consumer.c137 ret = sysfs_create_group(&pdev->dev.kobj, &attr_group);
157 sysfs_remove_group(&pdev->dev.kobj, &attr_group);
166 sysfs_remove_group(&pdev->dev.kobj, &attr_group);

Completed in 600 milliseconds

1234567891011>>