Home
last modified time | relevance | path

Searched refs:attr_groups (Results 1 – 25 of 83) sorted by relevance

1234

/linux-6.1.9/drivers/nvdimm/
Dnd_perf.c213 nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR] = nvdimm_pmu_cpumask_group; in create_cpumask_attr_group()
268 if (nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR]) in nvdimm_pmu_free_hotplug_memory()
269 kfree(nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR]->attrs); in nvdimm_pmu_free_hotplug_memory()
270 kfree(nd_pmu->pmu.attr_groups[NVDIMM_PMU_CPUMASK_ATTR]); in nvdimm_pmu_free_hotplug_memory()
285 nd_pmu->pmu.attr_groups = kzalloc((NVDIMM_PMU_NULL_ATTR + 1) * in register_nvdimm_pmu()
287 if (!nd_pmu->pmu.attr_groups) in register_nvdimm_pmu()
297 nd_pmu->pmu.attr_groups[NVDIMM_PMU_FORMAT_ATTR] = &nvdimm_pmu_format_group; in register_nvdimm_pmu()
298 nd_pmu->pmu.attr_groups[NVDIMM_PMU_EVENT_ATTR] = &nvdimm_pmu_events_group; in register_nvdimm_pmu()
299 nd_pmu->pmu.attr_groups[NVDIMM_PMU_NULL_ATTR] = NULL; in register_nvdimm_pmu()
305 kfree(nd_pmu->pmu.attr_groups); in register_nvdimm_pmu()
[all …]
/linux-6.1.9/drivers/hwmon/
Dvexpress-hwmon.c84 const struct attribute_group **attr_groups; member
101 .attr_groups = (const struct attribute_group *[]) {
121 .attr_groups = (const struct attribute_group *[]) {
140 .attr_groups = (const struct attribute_group *[]) {
159 .attr_groups = (const struct attribute_group *[]) {
178 .attr_groups = (const struct attribute_group *[]) {
227 type->name, data, type->attr_groups); in vexpress_hwmon_probe()
Dad7418.c241 const struct attribute_group **attr_groups = NULL; in ad7418_probe() local
263 attr_groups = ad7416_groups; in ad7418_probe()
268 attr_groups = ad7417_groups; in ad7418_probe()
273 attr_groups = ad7418_groups; in ad7418_probe()
284 data, attr_groups); in ad7418_probe()
Dlm87.c170 const struct attribute_group *attr_groups[6]; member
947 data->attr_groups[group_tail++] = &lm87_group; in lm87_probe()
949 data->attr_groups[group_tail++] = &lm87_group_in6; in lm87_probe()
951 data->attr_groups[group_tail++] = &lm87_group_fan1; in lm87_probe()
954 data->attr_groups[group_tail++] = &lm87_group_in7; in lm87_probe()
956 data->attr_groups[group_tail++] = &lm87_group_fan2; in lm87_probe()
959 data->attr_groups[group_tail++] = &lm87_group_temp3; in lm87_probe()
961 data->attr_groups[group_tail++] = &lm87_group_in0_5; in lm87_probe()
965 data->attr_groups[group_tail++] = &lm87_group_vid; in lm87_probe()
969 &client->dev, client->name, client, data->attr_groups); in lm87_probe()
Dibmpowernv.c91 const struct attribute_group *attr_groups[MAX_SENSOR_TYPE + 1]; member
435 const struct attribute_group **pgroups = pdata->attr_groups; in populate_attr_groups()
555 const struct attribute_group **pgroups = pdata->attr_groups; in create_device_attrs()
687 pdata->attr_groups); in ibmpowernv_probe()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c487 const struct attribute_group *attr_groups[] = { in init_pmu_entry_by_type_and_add() local
538 pmu_entry->pmu.attr_groups = kmemdup(attr_groups, sizeof(attr_groups), in init_pmu_entry_by_type_and_add()
541 if (!pmu_entry->pmu.attr_groups) { in init_pmu_entry_by_type_and_add()
565 kfree(pmu_entry->pmu.attr_groups); in init_pmu_entry_by_type_and_add()
587 kfree(pe->pmu.attr_groups); in amdgpu_pmu_fini()
/linux-6.1.9/arch/x86/events/amd/
Dpower.c198 static const struct attribute_group *attr_groups[] = { variable
206 .attr_groups = attr_groups,
/linux-6.1.9/arch/x86/events/
Dmsr.c184 static const struct attribute_group *attr_groups[] = { variable
292 .attr_groups = attr_groups,
/linux-6.1.9/drivers/perf/hisilicon/
Dhisi_uncore_pmu.h68 const struct attribute_group **attr_groups; member
125 const struct attribute_group **attr_groups, struct module *module);
Dhisi_uncore_cpa_pmu.c291 cpa_pmu->pmu_events.attr_groups = hisi_cpa_pmu_attr_groups; in hisi_cpa_pmu_dev_probe()
331 .attr_groups = cpa_pmu->pmu_events.attr_groups, in hisi_cpa_pmu_probe()
Dhisi_uncore_ddrc_pmu.c470 ddrc_pmu->pmu_events.attr_groups = hisi_ddrc_pmu_v2_attr_groups; in hisi_ddrc_pmu_dev_probe()
475 ddrc_pmu->pmu_events.attr_groups = hisi_ddrc_pmu_v1_attr_groups; in hisi_ddrc_pmu_dev_probe()
519 hisi_pmu_init(&ddrc_pmu->pmu, name, ddrc_pmu->pmu_events.attr_groups, THIS_MODULE); in hisi_ddrc_pmu_probe()
Dhisi_uncore_pmu.c535 const struct attribute_group **attr_groups, struct module *module) in hisi_pmu_init() argument
548 pmu->attr_groups = attr_groups; in hisi_pmu_init()
Dhisi_uncore_hha_pmu.c482 hha_pmu->pmu_events.attr_groups = hisi_hha_pmu_v2_attr_groups; in hisi_hha_pmu_dev_probe()
487 hha_pmu->pmu_events.attr_groups = hisi_hha_pmu_v1_attr_groups; in hisi_hha_pmu_dev_probe()
522 hisi_pmu_init(&hha_pmu->pmu, name, hha_pmu->pmu_events.attr_groups, THIS_MODULE); in hisi_hha_pmu_probe()
/linux-6.1.9/arch/powerpc/perf/
Dimc-pmu.c327 pmu->attr_groups[IMC_EVENT_ATTR] = attr_group; in update_events_in_group()
1481 pmu->pmu.attr_groups = pmu->attr_groups; in update_pmu_ops()
1483 pmu->attr_groups[IMC_FORMAT_ATTR] = &imc_format_group; in update_pmu_ops()
1488 pmu->attr_groups[IMC_CPUMASK_ATTR] = &imc_pmu_cpumask_attr_group; in update_pmu_ops()
1492 pmu->attr_groups[IMC_CPUMASK_ATTR] = &imc_pmu_cpumask_attr_group; in update_pmu_ops()
1509 pmu->attr_groups[IMC_FORMAT_ATTR] = &trace_imc_format_group; in update_pmu_ops()
1618 if (pmu_ptr->attr_groups[IMC_EVENT_ATTR]) in imc_common_mem_free()
1619 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]->attrs); in imc_common_mem_free()
1620 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]); in imc_common_mem_free()
Dhv-gpci.c138 static const struct attribute_group *attr_groups[] = { variable
279 .attr_groups = attr_groups,
/linux-6.1.9/arch/arm/kernel/
Dperf_event_v7.c1205 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = in armv7_a8_pmu_init()
1207 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = in armv7_a8_pmu_init()
1217 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = in armv7_a9_pmu_init()
1219 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = in armv7_a9_pmu_init()
1229 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = in armv7_a5_pmu_init()
1231 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = in armv7_a5_pmu_init()
1242 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = in armv7_a15_pmu_init()
1244 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = in armv7_a15_pmu_init()
1255 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_EVENTS] = in armv7_a7_pmu_init()
1257 cpu_pmu->attr_groups[ARMPMU_ATTR_GROUP_FORMATS] = in armv7_a7_pmu_init()
[all …]
/linux-6.1.9/arch/arc/kernel/
Dperf_event.c203 const struct attribute_group *attr_groups[ARCPMU_NR_ATTR_GR + 1]; member
787 arc_pmu->attr_groups[ARCPMU_ATTR_GR_EVENTS] = &arc_pmu_events_attr_gr; in arc_pmu_device_probe()
788 arc_pmu->attr_groups[ARCPMU_ATTR_GR_FORMATS] = &arc_pmu_format_attr_gr; in arc_pmu_device_probe()
799 .attr_groups = arc_pmu->attr_groups, in arc_pmu_device_probe()
/linux-6.1.9/arch/x86/events/intel/
Duncore.h84 const struct attribute_group *attr_groups[4]; member
101 #define pmu_group attr_groups[0]
102 #define format_group attr_groups[1]
103 #define events_group attr_groups[2]
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_pmu.c1140 const struct attribute_group *attr_groups[] = { in i915_pmu_register() local
1179 pmu->base.attr_groups = kmemdup(attr_groups, sizeof(attr_groups), in i915_pmu_register()
1181 if (!pmu->base.attr_groups) in i915_pmu_register()
1207 kfree(pmu->base.attr_groups); in i915_pmu_register()
1239 kfree(pmu->base.attr_groups); in i915_pmu_unregister()
/linux-6.1.9/drivers/perf/
Dthunderx2_pmu.c108 const struct attribute_group **attr_groups; member
732 .attr_groups = tx2_pmu->attr_groups, in tx2_uncore_pmu_register()
842 tx2_pmu->attr_groups = l3c_pmu_attr_groups; in tx2_uncore_pmu_init_dev()
857 tx2_pmu->attr_groups = dmc_pmu_attr_groups; in tx2_uncore_pmu_init_dev()
871 tx2_pmu->attr_groups = ccpi2_pmu_attr_groups; in tx2_uncore_pmu_init_dev()
Dxgene_pmu.c99 const struct attribute_group **attr_groups; member
1107 .attr_groups = pmu_dev->attr_groups, in xgene_init_perf()
1145 pmu->attr_groups = l3c_pmu_v3_attr_groups; in xgene_pmu_dev_add()
1147 pmu->attr_groups = l3c_pmu_attr_groups; in xgene_pmu_dev_add()
1151 pmu->attr_groups = iob_fast_pmu_v3_attr_groups; in xgene_pmu_dev_add()
1153 pmu->attr_groups = iob_pmu_attr_groups; in xgene_pmu_dev_add()
1157 pmu->attr_groups = iob_slow_pmu_v3_attr_groups; in xgene_pmu_dev_add()
1163 pmu->attr_groups = mcb_pmu_v3_attr_groups; in xgene_pmu_dev_add()
1165 pmu->attr_groups = mcb_pmu_attr_groups; in xgene_pmu_dev_add()
1171 pmu->attr_groups = mc_pmu_v3_attr_groups; in xgene_pmu_dev_add()
[all …]
/linux-6.1.9/arch/powerpc/include/asm/
Dimc-pmu.h125 const struct attribute_group *attr_groups[4]; member
/linux-6.1.9/drivers/staging/greybus/
Dlight.c30 const struct attribute_group **attr_groups; member
296 channel->attr_groups = kcalloc(2, sizeof(*channel->attr_groups), in channel_attr_groups_set()
298 if (!channel->attr_groups) in channel_attr_groups_set()
310 channel->attr_groups[0] = channel->attr_group; in channel_attr_groups_set()
312 cdev->groups = channel->attr_groups; in channel_attr_groups_set()
1081 kfree(channel->attr_groups); in gb_lights_channel_free()
/linux-6.1.9/include/linux/
Dlibnvdimm.h77 const struct attribute_group **attr_groups; member
121 const struct attribute_group **attr_groups; member
/linux-6.1.9/arch/arm/mach-imx/
Dmmdc.c176 static const struct attribute_group *attr_groups[] = { variable
441 .attr_groups = attr_groups, in mmdc_pmu_init()

1234