Searched refs:attr_group (Results 1 – 15 of 15) sorted by relevance
/drivers/staging/iio/ |
D | iio_hwmon.c | 32 struct attribute_group attr_group; member 170 st->attr_group.attrs = st->attrs; in iio_hwmon_probe() 172 ret = sysfs_create_group(&pdev->dev.kobj, &st->attr_group); in iio_hwmon_probe() 184 sysfs_remove_group(&pdev->dev.kobj, &st->attr_group); in iio_hwmon_probe() 201 sysfs_remove_group(&pdev->dev.kobj, &st->attr_group); in iio_hwmon_remove()
|
/drivers/regulator/ |
D | userspace-consumer.c | 104 static const struct attribute_group attr_group = { variable 135 ret = sysfs_create_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe() 155 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe() 169 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_remove()
|
/drivers/memstick/core/ |
D | mspro_block.c | 170 struct attribute_group attr_group; member 1028 msb->attr_group.attrs = kzalloc((attr_count + 1) in mspro_block_read_attributes() 1031 if (!msb->attr_group.attrs) { in mspro_block_read_attributes() 1035 msb->attr_group.name = "media_attributes"; in mspro_block_read_attributes() 1051 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes() 1197 for (rc = 0; msb->attr_group.attrs[rc]; ++rc) { in mspro_block_init_disk() 1198 s_attr = mspro_from_sysfs_attr(msb->attr_group.attrs[rc]); in mspro_block_init_disk() 1289 if (msb->attr_group.attrs) { in mspro_block_data_clear() 1290 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear() 1291 s_attr = mspro_from_sysfs_attr(msb->attr_group in mspro_block_data_clear() [all …]
|
/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 306 struct attribute_group *attr_group, in iscsi_boot_create_kobj() argument 330 if (sysfs_create_group(&boot_kobj->kobj, attr_group)) { in iscsi_boot_create_kobj() 341 boot_kobj->attr_group = attr_group; in iscsi_boot_create_kobj() 352 sysfs_remove_group(&boot_kobj->kobj, boot_kobj->attr_group); in iscsi_boot_remove_kobj()
|
/drivers/block/aoe/ |
D | aoeblk.c | 111 static const struct attribute_group attr_group = { variable 118 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs() 123 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs()
|
/drivers/input/touchscreen/ |
D | ads7846.c | 102 struct attribute_group *attr_group; member 533 ts->attr_group = &ads7846_attr_group; in ads784x_hwmon_register() 536 ts->attr_group = &ads7845_attr_group; in ads784x_hwmon_register() 539 ts->attr_group = &ads7843_attr_group; in ads784x_hwmon_register() 546 err = sysfs_create_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_register() 552 sysfs_remove_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_register() 564 sysfs_remove_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_unregister()
|
/drivers/mtd/ |
D | sm_ftl.c | 59 struct attribute_group *attr_group; in sm_create_sysfs_attributes() local 95 attr_group = kzalloc(sizeof(struct attribute_group), GFP_KERNEL); in sm_create_sysfs_attributes() 96 if (!attr_group) in sm_create_sysfs_attributes() 98 attr_group->attrs = attributes; in sm_create_sysfs_attributes() 99 return attr_group; in sm_create_sysfs_attributes()
|
/drivers/s390/cio/ |
D | cmf.c | 129 struct attribute_group *attr_group; member 775 .attr_group = &cmf_attr_group, 1042 .attr_group = &cmf_attr_group_ext, 1234 ret = sysfs_create_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf() 1259 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in disable_cmf()
|
/drivers/char/tpm/ |
D | tpm_atmel.c | 151 .attr_group = &atmel_attr_grp,
|
D | tpm.h | 90 struct attribute_group *attr_group; member
|
D | tpm_nsc.c | 262 .attr_group = &nsc_attr_grp,
|
D | tpm.c | 1271 sysfs_remove_group(&dev->kobj, chip->vendor.attr_group); in tpm_remove_hardware() 1427 if (sysfs_create_group(&dev->kobj, chip->vendor.attr_group)) { in tpm_register_hardware()
|
D | tpm_infineon.c | 405 .attr_group = &inf_attr_grp,
|
D | tpm_tis.c | 449 .attr_group = &tis_attr_grp,
|
/drivers/rtc/ |
D | rtc-m41t80.c | 468 static struct attribute_group attr_group = { variable 474 return sysfs_create_group(&dev->kobj, &attr_group); in m41t80_sysfs_register()
|