/linux-3.4.99/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()
|
/linux-3.4.99/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()
|
/linux-3.4.99/arch/powerpc/platforms/pseries/ |
D | power.c | 63 static struct attribute_group attr_group = { variable 72 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
|
/linux-3.4.99/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 …]
|
/linux-3.4.99/samples/kobject/ |
D | kobject-example.c | 98 static struct attribute_group attr_group = { variable 122 retval = sysfs_create_group(example_kobj, &attr_group); in example_init()
|
/linux-3.4.99/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()
|
/linux-3.4.99/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()
|
/linux-3.4.99/include/linux/ |
D | iscsi_boot_sysfs.h | 70 struct attribute_group *attr_group; member
|
/linux-3.4.99/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()
|
/linux-3.4.99/kernel/power/ |
D | main.c | 419 static struct attribute_group attr_group = { variable 447 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
|
D | hibernate.c | 1009 static struct attribute_group attr_group = { variable 1016 return sysfs_create_group(power_kobj, &attr_group); in pm_disk_init()
|
/linux-3.4.99/drivers/mtd/ |
D | sm_ftl.c | 59 struct attribute_group *attr_group; in sm_create_sysfs_attributes() local 92 attr_group = kzalloc(sizeof(struct attribute_group), GFP_KERNEL); in sm_create_sysfs_attributes() 93 if (!attr_group) in sm_create_sysfs_attributes() 95 attr_group->attrs = attributes; in sm_create_sysfs_attributes() 96 return attr_group; in sm_create_sysfs_attributes()
|
/linux-3.4.99/fs/ecryptfs/ |
D | main.c | 768 static struct attribute_group attr_group = { variable 782 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration() 794 sysfs_remove_group(ecryptfs_kobj, &attr_group); in do_sysfs_unregistration()
|
/linux-3.4.99/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()
|
/linux-3.4.99/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_infineon.c | 405 .attr_group = &inf_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_tis.c | 449 .attr_group = &tis_attr_grp,
|
/linux-3.4.99/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()
|