/drivers/regulator/ |
D | userspace-consumer.c | 99 static const struct attribute_group attr_group = { variable 132 ret = sysfs_create_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe() 152 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_probe() 161 sysfs_remove_group(&pdev->dev.kobj, &attr_group); in regulator_userspace_consumer_remove()
|
/drivers/memstick/core/ |
D | mspro_block.c | 166 struct attribute_group attr_group; member 1017 msb->attr_group.attrs = kcalloc(attr_count + 1, in mspro_block_read_attributes() 1018 sizeof(*msb->attr_group.attrs), in mspro_block_read_attributes() 1020 if (!msb->attr_group.attrs) { in mspro_block_read_attributes() 1024 msb->attr_group.name = "media_attributes"; in mspro_block_read_attributes() 1039 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes() 1184 for (rc = 0; msb->attr_group.attrs[rc]; ++rc) { in mspro_block_init_disk() 1185 s_attr = mspro_from_sysfs_attr(msb->attr_group.attrs[rc]); in mspro_block_init_disk() 1264 if (msb->attr_group.attrs) { in mspro_block_data_clear() 1265 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear() [all …]
|
D | ms_block.h | 153 struct attribute_group attr_group; member
|
/drivers/acpi/ |
D | power.c | 524 const struct attribute_group *attr_group) in acpi_power_hide_list() argument 535 attr_group->name, in acpi_power_hide_list() 538 sysfs_remove_group(&adev->dev.kobj, attr_group); in acpi_power_hide_list() 543 const struct attribute_group *attr_group) in acpi_power_expose_list() argument 551 ret = sysfs_create_group(&adev->dev.kobj, attr_group); in acpi_power_expose_list() 559 attr_group->name, in acpi_power_expose_list() 563 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list() 571 const struct attribute_group *attr_group, in acpi_power_expose_hide() argument 575 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide() 577 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
|
/drivers/hwmon/ |
D | iio_hwmon.c | 29 struct attribute_group attr_group; member 149 st->attr_group.attrs = st->attrs; in iio_hwmon_probe() 150 st->groups[0] = &st->attr_group; in iio_hwmon_probe()
|
D | coretemp.c | 86 struct attribute_group attr_group; member 402 tdata->attr_group.attrs = tdata->attrs; in create_core_attrs() 403 return sysfs_create_group(&dev->kobj, &tdata->attr_group); in create_core_attrs() 523 sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); in coretemp_remove_core()
|
D | asus_atk0110.c | 128 struct attribute_group attr_group; member 1180 data->attr_group.attrs = attrs; in atk_init_attribute_groups() 1181 data->attr_groups[0] = &data->attr_group; in atk_init_attribute_groups()
|
/drivers/counter/ |
D | counter.c | 588 groups_list[i].attr_group.name = name; in counter_signals_register() 601 kfree(groups_list[i].attr_group.name); in counter_signals_register() 1087 groups_list[i].attr_group.name = name; in counter_counts_register() 1106 kfree(groups_list[i].attr_group.name); in counter_counts_register() 1269 kfree(group->attr_group.name); in counter_device_groups_list_free() 1270 kfree(group->attr_group.attrs); in counter_device_groups_list_free() 1346 group->attr_group.attrs = kcalloc(group->num_attr + 1, in counter_device_groups_prepare() 1347 sizeof(*group->attr_group.attrs), GFP_KERNEL); in counter_device_groups_prepare() 1348 if (!group->attr_group.attrs) { in counter_device_groups_prepare() 1356 group->attr_group.attrs[j++] = &p->dev_attr.attr; in counter_device_groups_prepare() [all …]
|
/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 339 struct attribute_group *attr_group, in iscsi_boot_create_kobj() argument 363 if (sysfs_create_group(&boot_kobj->kobj, attr_group)) { in iscsi_boot_create_kobj() 374 boot_kobj->attr_group = attr_group; in iscsi_boot_create_kobj() 385 sysfs_remove_group(&boot_kobj->kobj, boot_kobj->attr_group); in iscsi_boot_remove_kobj()
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 574 kfree(perf->attr_group); in kfd_remove_sysfs_node_entry() 575 perf->attr_group = NULL; in kfd_remove_sysfs_node_entry() 716 perf->attr_group = kzalloc(sizeof(struct kfd_perf_attr) in kfd_build_sysfs_node_entry() 719 if (!perf->attr_group) in kfd_build_sysfs_node_entry() 722 attrs = (struct attribute **)(perf->attr_group + 1); in kfd_build_sysfs_node_entry() 732 perf->attr_group->name = perf->block_name; in kfd_build_sysfs_node_entry() 733 perf->attr_group->attrs = attrs; in kfd_build_sysfs_node_entry() 734 ret = sysfs_create_group(dev->kobj_perf, perf->attr_group); in kfd_build_sysfs_node_entry()
|
D | kfd_topology.h | 152 struct attribute_group *attr_group; member
|
/drivers/staging/greybus/ |
D | light.c | 29 struct attribute_group *attr_group; member 293 channel->attr_group = kcalloc(1, sizeof(*channel->attr_group), in channel_attr_groups_set() 295 if (!channel->attr_group) in channel_attr_groups_set() 309 channel->attr_group->attrs = channel->attrs; in channel_attr_groups_set() 311 channel->attr_groups[0] = channel->attr_group; in channel_attr_groups_set() 1080 kfree(channel->attr_group); in gb_lights_channel_free()
|
/drivers/s390/cio/ |
D | cmf.c | 113 struct attribute_group *attr_group; member 721 .attr_group = &cmf_attr_group, 974 .attr_group = &cmf_attr_group_ext, 1142 ret = sysfs_create_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf() 1149 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf() 1177 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in __disable_cmf()
|
/drivers/hwtracing/intel_th/ |
D | pti.c | 239 .attr_group = &pti_output_group, 307 .attr_group = &lpp_output_group,
|
D | core.c | 74 if (thdrv->attr_group) { in intel_th_probe() 75 ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_probe() 146 if (thdrv->attr_group) in intel_th_remove() 147 sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_remove()
|
D | intel_th.h | 179 struct attribute_group *attr_group; member
|
D | msu.c | 2125 .attr_group = &msc_output_group,
|
/drivers/mtd/ |
D | sm_ftl.c | 56 struct attribute_group *attr_group; in sm_create_sysfs_attributes() local 89 attr_group = kzalloc(sizeof(struct attribute_group), GFP_KERNEL); in sm_create_sysfs_attributes() 90 if (!attr_group) in sm_create_sysfs_attributes() 92 attr_group->attrs = attributes; in sm_create_sysfs_attributes() 93 return attr_group; in sm_create_sysfs_attributes()
|
/drivers/misc/mic/bus/ |
D | cosm_bus.h | 45 const struct attribute_group **attr_group; member
|
/drivers/infiniband/core/ |
D | sysfs.c | 914 static void free_hsag(struct kobject *kobj, struct attribute_group *attr_group) in free_hsag() argument 918 sysfs_remove_group(kobj, attr_group); in free_hsag() 920 for (attr = attr_group->attrs; *attr; attr++) in free_hsag() 922 kfree(attr_group); in free_hsag()
|
/drivers/misc/mic/cosm/ |
D | cosm_main.c | 257 MKDEV(0, cdev->index), cdev, cdev->attr_group, in cosm_driver_probe()
|
D | cosm_sysfs.c | 448 cdev->attr_group = cosm_default_groups; in cosm_sysfs_init()
|
/drivers/tty/serial/ |
D | serial_core.c | 2844 if (uport->attr_group) in uart_add_one_port() 2854 if (uport->attr_group) in uart_add_one_port() 2855 uport->tty_groups[1] = uport->attr_group; in uart_add_one_port()
|
/drivers/tty/serial/8250/ |
D | 8250_port.c | 2979 up->port.attr_group = &serial8250_dev_attr_group; in register_dev_spec_attr_grp()
|