Home
last modified time | relevance | path

Searched refs:attr_group (Results 1 – 21 of 21) sorted by relevance

/linux-3.4.99/drivers/staging/iio/
Diio_hwmon.c32 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/
Duserspace-consumer.c104 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/
Dpower.c63 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/
Dmspro_block.c170 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/
Dkobject-example.c98 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/
Discsi_boot_sysfs.c306 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/
Daoeblk.c111 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/
Discsi_boot_sysfs.h70 struct attribute_group *attr_group; member
/linux-3.4.99/drivers/input/touchscreen/
Dads7846.c102 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/
Dmain.c419 static struct attribute_group attr_group = { variable
447 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
Dhibernate.c1009 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/
Dsm_ftl.c59 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/
Dmain.c768 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/
Dcmf.c129 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/
Dtpm_atmel.c151 .attr_group = &atmel_attr_grp,
Dtpm.h90 struct attribute_group *attr_group; member
Dtpm_nsc.c262 .attr_group = &nsc_attr_grp,
Dtpm_infineon.c405 .attr_group = &inf_attr_grp,
Dtpm.c1271 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()
Dtpm_tis.c449 .attr_group = &tis_attr_grp,
/linux-3.4.99/drivers/rtc/
Drtc-m41t80.c468 static struct attribute_group attr_group = { variable
474 return sysfs_create_group(&dev->kobj, &attr_group); in m41t80_sysfs_register()