Home
last modified time | relevance | path

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

/drivers/regulator/
Duserspace-consumer.c104 static const struct attribute_group attr_group = { variable
137 ret = sysfs_create_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe()
157 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe()
166 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_remove()
/drivers/acpi/
Dpower.c403 struct attribute_group *attr_group) in acpi_power_hide_list() argument
414 attr_group->name, in acpi_power_hide_list()
417 sysfs_remove_group(&adev->dev.kobj, attr_group); in acpi_power_hide_list()
422 struct attribute_group *attr_group) in acpi_power_expose_list() argument
430 ret = sysfs_create_group(&adev->dev.kobj, attr_group); in acpi_power_expose_list()
438 attr_group->name, in acpi_power_expose_list()
442 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
450 struct attribute_group *attr_group, in acpi_power_expose_hide() argument
454 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
456 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
/drivers/memstick/core/
Dmspro_block.c170 struct attribute_group attr_group; member
1027 msb->attr_group.attrs = kcalloc(attr_count + 1, in mspro_block_read_attributes()
1028 sizeof(*msb->attr_group.attrs), 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()
1277 if (msb->attr_group.attrs) { in mspro_block_data_clear()
1278 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear()
[all …]
Dms_block.h156 struct attribute_group attr_group; member
/drivers/hwmon/
Diio_hwmon.c33 struct attribute_group attr_group; member
145 st->attr_group.attrs = st->attrs; in iio_hwmon_probe()
146 st->groups[0] = &st->attr_group; in iio_hwmon_probe()
Dcoretemp.c99 struct attribute_group attr_group; member
415 tdata->attr_group.attrs = tdata->attrs; in create_core_attrs()
416 return sysfs_create_group(&dev->kobj, &tdata->attr_group); in create_core_attrs()
561 sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); in coretemp_remove_core()
/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()
/drivers/s390/cio/
Dcmf.c125 struct attribute_group *attr_group; member
776 .attr_group = &cmf_attr_group,
1032 .attr_group = &cmf_attr_group_ext,
1227 ret = sysfs_create_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf()
1234 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf()
1262 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in __disable_cmf()
/drivers/block/aoe/
Daoeblk.c180 static const struct attribute_group attr_group = { variable
225 return sysfs_create_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_add_sysfs()
230 sysfs_remove_group(&disk_to_dev(d->gd)->kobj, &attr_group); in aoedisk_rm_sysfs()
/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()
/drivers/misc/mic/bus/
Dcosm_bus.h55 const struct attribute_group **attr_group; member
/drivers/rtc/
Drtc-m41t80.c329 static struct attribute_group attr_group = { variable
335 return sysfs_create_group(&dev->kobj, &attr_group); in m41t80_sysfs_register()
/drivers/misc/mic/cosm/
Dcosm_main.c264 MKDEV(0, cdev->index), cdev, cdev->attr_group, in cosm_driver_probe()
Dcosm_sysfs.c460 cdev->attr_group = cosm_default_groups; in cosm_sysfs_init()
/drivers/tty/serial/
Dserial_core.c2713 if (uport->attr_group) in uart_add_one_port()
2723 if (uport->attr_group) in uart_add_one_port()
2724 uport->tty_groups[1] = uport->attr_group; in uart_add_one_port()
/drivers/tty/serial/8250/
D8250_port.c2679 up->port.attr_group = &serial8250_dev_attr_group; in register_dev_spec_attr_grp()