Home
last modified time | relevance | path

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

12

/linux/drivers/regulator/
A 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/drivers/acpi/dptf/
A 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/drivers/memstick/core/
A 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()
1184 for (rc = 0; msb->attr_group.attrs[rc]; ++rc) { in mspro_block_init_disk()
1264 if (msb->attr_group.attrs) { in mspro_block_data_clear()
1266 s_attr = mspro_from_sysfs_attr(msb->attr_group in mspro_block_data_clear()
1271 kfree(msb->attr_group.attrs); in mspro_block_data_clear()
1389 for (cnt = 0; new_msb->attr_group.attrs[cnt] in mspro_block_resume()
[all …]
A Dms_block.h153 struct attribute_group attr_group; member
/linux/drivers/acpi/
A Dpower.c537 const struct attribute_group *attr_group) in acpi_power_hide_list() argument
548 attr_group->name, in acpi_power_hide_list()
551 sysfs_remove_group(&adev->dev.kobj, attr_group); in acpi_power_hide_list()
556 const struct attribute_group *attr_group) in acpi_power_expose_list() argument
564 ret = sysfs_create_group(&adev->dev.kobj, attr_group); in acpi_power_expose_list()
572 attr_group->name, in acpi_power_expose_list()
576 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_list()
584 const struct attribute_group *attr_group, in acpi_power_expose_hide() argument
588 acpi_power_expose_list(adev, resources, attr_group); in acpi_power_expose_hide()
590 acpi_power_hide_list(adev, resources, attr_group); in acpi_power_expose_hide()
/linux/drivers/mfd/
A 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/drivers/hwmon/
A 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()
A 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/arch/powerpc/platforms/pseries/
A Dpower.c54 static struct attribute_group attr_group = { variable
63 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
/linux/samples/kobject/
A Dkobject-example.c105 static struct attribute_group attr_group = { variable
129 retval = sysfs_create_group(example_kobj, &attr_group); in example_init()
/linux/drivers/scsi/
A 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/kernel/trace/
A Dpreemptirq_delay_test.c185 static struct attribute_group attr_group = { variable
204 retval = sysfs_create_group(preemptirq_delay_kobj, &attr_group); in preemptirq_delay_init()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_pmu.c391 struct attribute_group *attr_group, in amdgpu_pmu_create_event_attrs_by_type() argument
403 attr_group->attrs[i] = &pmu_attr->attr.attr; in amdgpu_pmu_create_event_attrs_by_type()
414 static void amdgpu_pmu_create_attrs(struct attribute_group *attr_group, in amdgpu_pmu_create_attrs() argument
419 amdgpu_pmu_create_event_attrs_by_type(attr_group, pmu_attr, events, 0, in amdgpu_pmu_create_attrs()
/linux/arch/powerpc/perf/
A 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/drivers/staging/greybus/
A 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()
/linux/arch/x86/events/intel/
A Duncore.c995 } *attr_group; in uncore_type_init() local
998 attr_group = kzalloc(struct_size(attr_group, attrs, i + 1), in uncore_type_init()
1000 if (!attr_group) in uncore_type_init()
1003 attr_group->group.name = "events"; in uncore_type_init()
1004 attr_group->group.attrs = attr_group->attrs; in uncore_type_init()
1007 attr_group->attrs[j] = &type->event_descs[j].attr.attr; in uncore_type_init()
1009 type->events_group = &attr_group->group; in uncore_type_init()
/linux/drivers/s390/cio/
A 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()
/linux/drivers/gpu/drm/amd/amdkfd/
A Dkfd_topology.c602 kfree(perf->attr_group); in kfd_remove_sysfs_node_entry()
603 perf->attr_group = NULL; in kfd_remove_sysfs_node_entry()
752 perf->attr_group = kzalloc(sizeof(struct kfd_perf_attr) in kfd_build_sysfs_node_entry()
755 if (!perf->attr_group) in kfd_build_sysfs_node_entry()
758 attrs = (struct attribute **)(perf->attr_group + 1); in kfd_build_sysfs_node_entry()
768 perf->attr_group->name = perf->block_name; in kfd_build_sysfs_node_entry()
769 perf->attr_group->attrs = attrs; in kfd_build_sysfs_node_entry()
770 ret = sysfs_create_group(dev->kobj_perf, perf->attr_group); in kfd_build_sysfs_node_entry()
/linux/drivers/hwtracing/intel_th/
A Dpti.c239 .attr_group = &pti_output_group,
307 .attr_group = &lpp_output_group,
A 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()
/linux/drivers/mtd/
A 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/include/linux/
A Discsi_boot_sysfs.h69 struct attribute_group *attr_group; member
/linux/fs/ecryptfs/
A Dmain.c782 static const struct attribute_group attr_group = { variable
796 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration()
808 sysfs_remove_group(ecryptfs_kobj, &attr_group); in do_sysfs_unregistration()
/linux/drivers/hwtracing/coresight/
A 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()
A Dcoresight-cti.h93 struct attribute_group *attr_group; member

Completed in 81 milliseconds

12