Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/regulator/
Duserspace-consumer.c103 static const struct attribute_group attr_group = { variable
134 ret = sysfs_create_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe()
154 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe()
168 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_remove()
/linux-2.6.39/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-2.6.39/drivers/memstick/core/
Dmspro_block.c169 struct attribute_group attr_group; member
1027 msb->attr_group.attrs = kzalloc((attr_count + 1) in mspro_block_read_attributes()
1030 if (!msb->attr_group.attrs) { in mspro_block_read_attributes()
1034 msb->attr_group.name = "media_attributes"; in mspro_block_read_attributes()
1050 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()
1196 for (rc = 0; msb->attr_group.attrs[rc]; ++rc) { in mspro_block_init_disk()
1197 s_attr = mspro_from_sysfs_attr(msb->attr_group.attrs[rc]); in mspro_block_init_disk()
1288 if (msb->attr_group.attrs) { in mspro_block_data_clear()
1289 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear()
1290 s_attr = mspro_from_sysfs_attr(msb->attr_group in mspro_block_data_clear()
[all …]
/linux-2.6.39/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-2.6.39/drivers/scsi/
Discsi_boot_sysfs.c305 struct attribute_group *attr_group, in iscsi_boot_create_kobj() argument
327 if (sysfs_create_group(&boot_kobj->kobj, attr_group)) { in iscsi_boot_create_kobj()
338 boot_kobj->attr_group = attr_group; in iscsi_boot_create_kobj()
349 sysfs_remove_group(&boot_kobj->kobj, boot_kobj->attr_group); in iscsi_boot_remove_kobj()
/linux-2.6.39/drivers/block/aoe/
Daoeblk.c110 static const struct attribute_group attr_group = { variable
117 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs()
122 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs()
/linux-2.6.39/kernel/power/
Dmain.c316 static struct attribute_group attr_group = { variable
343 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
Dhibernate.c993 static struct attribute_group attr_group = { variable
1000 return sysfs_create_group(power_kobj, &attr_group); in pm_disk_init()
/linux-2.6.39/include/linux/
Discsi_boot_sysfs.h70 struct attribute_group *attr_group; member
/linux-2.6.39/drivers/input/touchscreen/
Dads7846.c101 struct attribute_group *attr_group; member
528 ts->attr_group = &ads7846_attr_group; in ads784x_hwmon_register()
531 ts->attr_group = &ads7845_attr_group; in ads784x_hwmon_register()
534 ts->attr_group = &ads7843_attr_group; in ads784x_hwmon_register()
541 err = sysfs_create_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_register()
547 sysfs_remove_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_register()
559 sysfs_remove_group(&spi->dev.kobj, ts->attr_group); in ads784x_hwmon_unregister()
/linux-2.6.39/drivers/mtd/
Dsm_ftl.c59 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()
/linux-2.6.39/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-2.6.39/fs/ecryptfs/
Dmain.c802 static struct attribute_group attr_group = { variable
816 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration()
828 sysfs_remove_group(ecryptfs_kobj, &attr_group); in do_sysfs_unregistration()
/linux-2.6.39/drivers/char/tpm/
Dtpm_atmel.c151 .attr_group = &atmel_attr_grp,
Dtpm.h80 struct attribute_group *attr_group; member
Dtpm_nsc.c262 .attr_group = &nsc_attr_grp,
Dtpm.c1089 sysfs_remove_group(&dev->kobj, chip->vendor.attr_group); in tpm_remove_hardware()
1245 if (sysfs_create_group(&dev->kobj, chip->vendor.attr_group)) { in tpm_register_hardware()
Dtpm_infineon.c405 .attr_group = &inf_attr_grp,
Dtpm_tis.c403 .attr_group = &tis_attr_grp,
/linux-2.6.39/drivers/rtc/
Drtc-m41t80.c459 static struct attribute_group attr_group = { variable
465 return sysfs_create_group(&dev->kobj, &attr_group); in m41t80_sysfs_register()