Home
last modified time | relevance | path

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

12

/Linux-v5.10/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()
/Linux-v5.10/drivers/acpi/dptf/
Ddptf_power.c173 const struct attribute_group *attr_group; in dptf_power_add() local
184 attr_group = &dptf_power_attribute_group; in dptf_power_add()
186 attr_group = &dptf_battery_attribute_group; in dptf_power_add()
198 attr_group); in dptf_power_add()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dpower.c54 static struct attribute_group attr_group = { variable
63 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
/Linux-v5.10/drivers/memstick/core/
Dmspro_block.c166 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 …]
Dms_block.h153 struct attribute_group attr_group; member
/Linux-v5.10/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()
/Linux-v5.10/drivers/acpi/
Dpower.c522 const struct attribute_group *attr_group) in acpi_power_hide_list() argument
533 attr_group->name, in acpi_power_hide_list()
536 sysfs_remove_group(&adev->dev.kobj, attr_group); in acpi_power_hide_list()
541 const struct attribute_group *attr_group) in acpi_power_expose_list() argument
549 ret = sysfs_create_group(&adev->dev.kobj, attr_group); in acpi_power_expose_list()
557 attr_group->name, in acpi_power_expose_list()
561 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
569 const struct attribute_group *attr_group, in acpi_power_expose_hide() argument
573 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
575 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
/Linux-v5.10/drivers/hwmon/
Diio_hwmon.c29 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()
Dcoretemp.c86 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()
/Linux-v5.10/samples/kobject/
Dkobject-example.c105 static struct attribute_group attr_group = { variable
129 retval = sysfs_create_group(example_kobj, &attr_group); in example_init()
/Linux-v5.10/drivers/counter/
Dcounter.c513 groups_list[i].attr_group.name = name; in counter_signals_register()
526 kfree(groups_list[i].attr_group.name); in counter_signals_register()
1016 groups_list[i].attr_group.name = name; in counter_counts_register()
1035 kfree(groups_list[i].attr_group.name); in counter_counts_register()
1198 kfree(group->attr_group.name); in counter_device_groups_list_free()
1199 kfree(group->attr_group.attrs); in counter_device_groups_list_free()
1275 group->attr_group.attrs = kcalloc(group->num_attr + 1, in counter_device_groups_prepare()
1276 sizeof(*group->attr_group.attrs), GFP_KERNEL); in counter_device_groups_prepare()
1277 if (!group->attr_group.attrs) { in counter_device_groups_prepare()
1285 group->attr_group.attrs[j++] = &p->dev_attr.attr; in counter_device_groups_prepare()
[all …]
/Linux-v5.10/kernel/trace/
Dpreemptirq_delay_test.c171 static struct attribute_group attr_group = { variable
190 retval = sysfs_create_group(preemptirq_delay_kobj, &attr_group); in preemptirq_delay_init()
/Linux-v5.10/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()
/Linux-v5.10/arch/powerpc/perf/
Dimc-pmu.c221 struct attribute_group *attr_group; in update_events_in_group() local
269 attr_group = kzalloc(sizeof(*attr_group), GFP_KERNEL); in update_events_in_group()
270 if (!attr_group) { in update_events_in_group()
285 kfree(attr_group); in update_events_in_group()
290 attr_group->name = "events"; in update_events_in_group()
291 attr_group->attrs = attrs; in update_events_in_group()
319 pmu->attr_groups[IMC_EVENT_ATTR] = attr_group; in update_events_in_group()
/Linux-v5.10/arch/x86/events/intel/
Duncore.c948 } *attr_group; in uncore_type_init() local
951 attr_group = kzalloc(struct_size(attr_group, attrs, i + 1), in uncore_type_init()
953 if (!attr_group) in uncore_type_init()
956 attr_group->group.name = "events"; in uncore_type_init()
957 attr_group->group.attrs = attr_group->attrs; in uncore_type_init()
960 attr_group->attrs[j] = &type->event_descs[j].attr.attr; in uncore_type_init()
962 type->events_group = &attr_group->group; in uncore_type_init()
/Linux-v5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c598 kfree(perf->attr_group); in kfd_remove_sysfs_node_entry()
599 perf->attr_group = NULL; in kfd_remove_sysfs_node_entry()
748 perf->attr_group = kzalloc(sizeof(struct kfd_perf_attr) in kfd_build_sysfs_node_entry()
751 if (!perf->attr_group) in kfd_build_sysfs_node_entry()
754 attrs = (struct attribute **)(perf->attr_group + 1); in kfd_build_sysfs_node_entry()
764 perf->attr_group->name = perf->block_name; in kfd_build_sysfs_node_entry()
765 perf->attr_group->attrs = attrs; in kfd_build_sysfs_node_entry()
766 ret = sysfs_create_group(dev->kobj_perf, perf->attr_group); in kfd_build_sysfs_node_entry()
/Linux-v5.10/drivers/staging/greybus/
Dlight.c29 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()
1081 kfree(channel->attr_group); in gb_lights_channel_free()
/Linux-v5.10/drivers/s390/cio/
Dcmf.c113 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()
/Linux-v5.10/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()
146 if (thdrv->attr_group) in intel_th_remove()
147 sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_remove()
/Linux-v5.10/include/linux/
Discsi_boot_sysfs.h69 struct attribute_group *attr_group; member
/Linux-v5.10/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()
/Linux-v5.10/drivers/hwtracing/coresight/
Dcoresight-cti.h93 struct attribute_group *attr_group; member
Dcoresight-cti-sysfs.c1095 tc->attr_group = group; in cti_create_con_sysfs_group()
1104 struct attribute_group *attr_group = NULL; in cti_create_con_attr_set() local
1108 attr_group = cti_create_con_sysfs_group(dev, ctidev, con_idx, tc); in cti_create_con_attr_set()
1109 if (!attr_group) in cti_create_con_attr_set()
1150 attr_group->attrs = tc->con_attrs; in cti_create_con_attr_set()
/Linux-v5.10/fs/ecryptfs/
Dmain.c770 static const struct attribute_group attr_group = { variable
784 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration()
796 sysfs_remove_group(ecryptfs_kobj, &attr_group); in do_sysfs_unregistration()

12