/linux/drivers/regulator/ |
A 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()
|
/linux/drivers/acpi/dptf/ |
A D | dptf_power.c | 173 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 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() 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 D | ms_block.h | 153 struct attribute_group attr_group; member
|
/linux/drivers/acpi/ |
A D | power.c | 537 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 D | gateworks-gsc.c | 153 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 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()
|
A 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()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | power.c | 54 static struct attribute_group attr_group = { variable 63 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
|
/linux/samples/kobject/ |
A D | kobject-example.c | 105 static struct attribute_group attr_group = { variable 129 retval = sysfs_create_group(example_kobj, &attr_group); in example_init()
|
/linux/drivers/scsi/ |
A 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()
|
/linux/kernel/trace/ |
A D | preemptirq_delay_test.c | 185 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 D | amdgpu_pmu.c | 391 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 D | imc-pmu.c | 221 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 D | light.c | 29 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 D | uncore.c | 995 } *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 D | cmf.c | 113 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 D | kfd_topology.c | 602 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 D | pti.c | 239 .attr_group = &pti_output_group, 307 .attr_group = &lpp_output_group,
|
A 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() 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 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()
|
/linux/include/linux/ |
A D | iscsi_boot_sysfs.h | 69 struct attribute_group *attr_group; member
|
/linux/fs/ecryptfs/ |
A D | main.c | 782 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 D | coresight-cti-sysfs.c | 1095 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 D | coresight-cti.h | 93 struct attribute_group *attr_group; member
|