Home
last modified time | relevance | path

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

12

/drivers/regulator/
Duserspace-consumer.c99 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/acpi/dptf/
Ddptf_power.c174 const struct attribute_group *attr_group; in dptf_power_add() local
185 attr_group = &dptf_power_attribute_group; in dptf_power_add()
187 attr_group = &dptf_battery_attribute_group; in dptf_power_add()
199 attr_group); in dptf_power_add()
/drivers/memstick/core/
Dmspro_block.c165 struct attribute_group attr_group; member
978 msb->attr_group.attrs = kcalloc(attr_count + 1, in mspro_block_read_attributes()
979 sizeof(*msb->attr_group.attrs), in mspro_block_read_attributes()
981 if (!msb->attr_group.attrs) { in mspro_block_read_attributes()
985 msb->attr_group.name = "media_attributes"; in mspro_block_read_attributes()
1000 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()
1145 for (rc = 0; msb->attr_group.attrs[rc]; ++rc) { in mspro_block_init_disk()
1146 s_attr = mspro_from_sysfs_attr(msb->attr_group.attrs[rc]); in mspro_block_init_disk()
1227 if (msb->attr_group.attrs) { in mspro_block_data_clear()
1228 for (cnt = 0; msb->attr_group.attrs[cnt]; ++cnt) { in mspro_block_data_clear()
[all …]
Dms_block.h152 struct attribute_group attr_group; member
/drivers/acpi/
Dpower.c538 const struct attribute_group *attr_group) in acpi_power_hide_list() argument
549 attr_group->name, in acpi_power_hide_list()
552 sysfs_remove_group(&adev->dev.kobj, attr_group); in acpi_power_hide_list()
557 const struct attribute_group *attr_group) in acpi_power_expose_list() argument
565 ret = sysfs_create_group(&adev->dev.kobj, attr_group); in acpi_power_expose_list()
573 attr_group->name, in acpi_power_expose_list()
577 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
585 const struct attribute_group *attr_group, in acpi_power_expose_hide() argument
589 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
591 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
/drivers/mfd/
Dgateworks-gsc.c153 static struct attribute_group attr_group = { variable
245 ret = sysfs_create_group(&dev->kobj, &attr_group); in gsc_probe()
251 sysfs_remove_group(&dev->kobj, &attr_group); in gsc_probe()
260 sysfs_remove_group(&client->dev.kobj, &attr_group); in gsc_remove()
/drivers/hwmon/
Diio_hwmon.c31 struct attribute_group attr_group; member
151 st->attr_group.attrs = st->attrs; in iio_hwmon_probe()
152 st->groups[0] = &st->attr_group; in iio_hwmon_probe()
Dcoretemp.c83 struct attribute_group attr_group; member
411 tdata->attr_group.attrs = tdata->attrs; in create_core_attrs()
412 return sysfs_create_group(&dev->kobj, &tdata->attr_group); in create_core_attrs()
546 sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); in coretemp_remove_core()
Dasus_atk0110.c128 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/scsi/
Discsi_boot_sysfs.c339 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/amdgpu/
Damdgpu_pmu.c410 struct attribute_group *attr_group, in amdgpu_pmu_create_event_attrs_by_type() argument
422 attr_group->attrs[i] = &pmu_attr->attr.attr; in amdgpu_pmu_create_event_attrs_by_type()
433 static void amdgpu_pmu_create_attrs(struct attribute_group *attr_group, in amdgpu_pmu_create_attrs() argument
438 amdgpu_pmu_create_event_attrs_by_type(attr_group, pmu_attr, events, 0, in amdgpu_pmu_create_attrs()
/drivers/gpio/
Dgpio-sim.c315 struct attribute_group *attr_group; in gpio_sim_setup_sysfs() local
325 attr_group = devm_kzalloc(dev, sizeof(*attr_group), GFP_KERNEL); in gpio_sim_setup_sysfs()
330 if (!attr_group || !attrs || !val_attr || !pull_attr) in gpio_sim_setup_sysfs()
333 attr_group->name = devm_kasprintf(dev, GFP_KERNEL, in gpio_sim_setup_sysfs()
335 if (!attr_group->name) in gpio_sim_setup_sysfs()
359 attr_group->attrs = attrs; in gpio_sim_setup_sysfs()
360 chip->attr_groups[i] = attr_group; in gpio_sim_setup_sysfs()
/drivers/staging/greybus/
Dlight.c29 struct attribute_group *attr_group; member
293 channel->attr_group = kzalloc(sizeof(*channel->attr_group), GFP_KERNEL); in channel_attr_groups_set()
294 if (!channel->attr_group) in channel_attr_groups_set()
308 channel->attr_group->attrs = channel->attrs; in channel_attr_groups_set()
310 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/
Dcmf.c113 struct attribute_group *attr_group; member
722 .attr_group = &cmf_attr_group,
975 .attr_group = &cmf_attr_group_ext,
1138 ret = sysfs_create_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf()
1145 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in enable_cmf()
1173 sysfs_remove_group(&cdev->dev.kobj, cmbops->attr_group); in __disable_cmf()
/drivers/hwtracing/intel_th/
Dpti.c239 .attr_group = &pti_output_group,
307 .attr_group = &lpp_output_group,
Dcore.c74 if (thdrv->attr_group) { in intel_th_probe()
75 ret = sysfs_create_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_probe()
148 if (thdrv->attr_group) in intel_th_remove()
149 sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_remove()
Dintel_th.h184 const struct attribute_group *attr_group; member
Dmsu.c2193 .attr_group = &msc_output_group,
/drivers/mtd/
Dsm_ftl.c56 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/hwtracing/coresight/
Dcoresight-cti-sysfs.c1063 tc->attr_group = group; in cti_create_con_sysfs_group()
1072 struct attribute_group *attr_group = NULL; in cti_create_con_attr_set() local
1076 attr_group = cti_create_con_sysfs_group(dev, ctidev, con_idx, tc); in cti_create_con_attr_set()
1077 if (!attr_group) in cti_create_con_attr_set()
1118 attr_group->attrs = tc->con_attrs; in cti_create_con_attr_set()
Dcoresight-cti.h93 struct attribute_group *attr_group; member
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c638 kfree(perf->attr_group); in kfd_remove_sysfs_node_entry()
639 perf->attr_group = NULL; in kfd_remove_sysfs_node_entry()
814 perf->attr_group = kzalloc(sizeof(struct kfd_perf_attr) in kfd_build_sysfs_node_entry()
817 if (!perf->attr_group) in kfd_build_sysfs_node_entry()
820 attrs = (struct attribute **)(perf->attr_group + 1); in kfd_build_sysfs_node_entry()
830 perf->attr_group->name = perf->block_name; in kfd_build_sysfs_node_entry()
831 perf->attr_group->attrs = attrs; in kfd_build_sysfs_node_entry()
832 ret = sysfs_create_group(dev->kobj_perf, perf->attr_group); in kfd_build_sysfs_node_entry()
Dkfd_topology.h125 struct attribute_group *attr_group; member
/drivers/ptp/
Dptp_ocp.c315 const struct attribute_group **attr_group; member
1937 sysfs_remove_groups(&bp->dev.kobj, bp->attr_group); in ptp_ocp_attr_group_del()
1938 kfree(bp->attr_group); in ptp_ocp_attr_group_del()
1953 bp->attr_group = kcalloc(count + 1, sizeof(struct attribute_group *), in ptp_ocp_attr_group_add()
1955 if (!bp->attr_group) in ptp_ocp_attr_group_add()
1961 bp->attr_group[count++] = attr_tbl[i].group; in ptp_ocp_attr_group_add()
1963 err = sysfs_create_groups(&bp->dev.kobj, bp->attr_group); in ptp_ocp_attr_group_add()
1965 bp->attr_group[0] = NULL; in ptp_ocp_attr_group_add()
/drivers/tty/serial/
Dserial_core.c3118 if (uport->attr_group) in uart_add_one_port()
3128 if (uport->attr_group) in uart_add_one_port()
3129 uport->tty_groups[1] = uport->attr_group; in uart_add_one_port()

12