/linux-6.1.9/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()
|
/linux-6.1.9/drivers/acpi/dptf/ |
D | dptf_power.c | 174 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()
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ |
D | power.c | 54 static const struct attribute_group attr_group = { variable 63 return sysfs_create_group(power_kobj, &attr_group); in pm_init()
|
/linux-6.1.9/drivers/memstick/core/ |
D | mspro_block.c | 165 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 …]
|
/linux-6.1.9/drivers/mfd/ |
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-6.1.9/drivers/acpi/ |
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-6.1.9/drivers/hwmon/ |
D | iio_hwmon.c | 31 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()
|
D | coretemp.c | 83 struct attribute_group attr_group; member 404 tdata->attr_group.attrs = tdata->attrs; in create_core_attrs() 405 return sysfs_create_group(&dev->kobj, &tdata->attr_group); in create_core_attrs() 544 sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); in coretemp_remove_core()
|
/linux-6.1.9/samples/kobject/ |
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-6.1.9/kernel/trace/ |
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-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pmu.c | 410 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()
|
/linux-6.1.9/arch/powerpc/perf/ |
D | imc-pmu.c | 223 struct attribute_group *attr_group; in update_events_in_group() local 277 attr_group = kzalloc(sizeof(*attr_group), GFP_KERNEL); in update_events_in_group() 278 if (!attr_group) { in update_events_in_group() 293 kfree(attr_group); in update_events_in_group() 298 attr_group->name = "events"; in update_events_in_group() 299 attr_group->attrs = attrs; in update_events_in_group() 327 pmu->attr_groups[IMC_EVENT_ATTR] = attr_group; in update_events_in_group()
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-sim.c | 306 struct attribute_group *attr_group; in gpio_sim_setup_sysfs() local 316 attr_group = devm_kzalloc(dev, sizeof(*attr_group), GFP_KERNEL); in gpio_sim_setup_sysfs() 321 if (!attr_group || !attrs || !val_attr || !pull_attr) in gpio_sim_setup_sysfs() 324 attr_group->name = devm_kasprintf(dev, GFP_KERNEL, in gpio_sim_setup_sysfs() 326 if (!attr_group->name) in gpio_sim_setup_sysfs() 350 attr_group->attrs = attrs; in gpio_sim_setup_sysfs() 351 chip->attr_groups[i] = attr_group; in gpio_sim_setup_sysfs()
|
/linux-6.1.9/drivers/staging/greybus/ |
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-6.1.9/drivers/s390/cio/ |
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-6.1.9/arch/x86/events/intel/ |
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-6.1.9/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() 148 if (thdrv->attr_group) in intel_th_remove() 149 sysfs_remove_group(&thdev->dev.kobj, thdrv->attr_group); in intel_th_remove()
|
/linux-6.1.9/include/linux/ |
D | iscsi_boot_sysfs.h | 69 struct attribute_group *attr_group; member
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.c | 638 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()
|
/linux-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-cti.h | 93 struct attribute_group *attr_group; member
|
D | coresight-cti-sysfs.c | 1054 tc->attr_group = group; in cti_create_con_sysfs_group() 1063 struct attribute_group *attr_group = NULL; in cti_create_con_attr_set() local 1067 attr_group = cti_create_con_sysfs_group(dev, ctidev, con_idx, tc); in cti_create_con_attr_set() 1068 if (!attr_group) in cti_create_con_attr_set() 1109 attr_group->attrs = tc->con_attrs; in cti_create_con_attr_set()
|
/linux-6.1.9/fs/ecryptfs/ |
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()
|