/drivers/regulator/ |
D | userspace-consumer.c | 104 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/ |
D | power.c | 403 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/ |
D | mspro_block.c | 170 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 …]
|
D | ms_block.h | 156 struct attribute_group attr_group; member
|
/drivers/hwmon/ |
D | iio_hwmon.c | 33 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()
|
D | coretemp.c | 99 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/ |
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/s390/cio/ |
D | cmf.c | 125 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/ |
D | aoeblk.c | 180 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/ |
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()
|
/drivers/misc/mic/bus/ |
D | cosm_bus.h | 55 const struct attribute_group **attr_group; member
|
/drivers/rtc/ |
D | rtc-m41t80.c | 329 static struct attribute_group attr_group = { variable 335 return sysfs_create_group(&dev->kobj, &attr_group); in m41t80_sysfs_register()
|
/drivers/misc/mic/cosm/ |
D | cosm_main.c | 264 MKDEV(0, cdev->index), cdev, cdev->attr_group, in cosm_driver_probe()
|
D | cosm_sysfs.c | 460 cdev->attr_group = cosm_default_groups; in cosm_sysfs_init()
|
/drivers/tty/serial/ |
D | serial_core.c | 2713 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/ |
D | 8250_port.c | 2679 up->port.attr_group = &serial8250_dev_attr_group; in register_dev_spec_attr_grp()
|