pmu_ptr 163 arch/powerpc/include/asm/imc-pmu.h struct imc_pmu *pmu_ptr, int pmu_id); pmu_ptr 1467 arch/powerpc/perf/imc-pmu.c static void imc_common_mem_free(struct imc_pmu *pmu_ptr) pmu_ptr 1469 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->attr_groups[IMC_EVENT_ATTR]) pmu_ptr 1470 arch/powerpc/perf/imc-pmu.c kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]->attrs); pmu_ptr 1471 arch/powerpc/perf/imc-pmu.c kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]); pmu_ptr 1480 arch/powerpc/perf/imc-pmu.c static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr) pmu_ptr 1482 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_NEST) { pmu_ptr 1497 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_CORE) { pmu_ptr 1503 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_THREAD) { pmu_ptr 1508 arch/powerpc/perf/imc-pmu.c if (pmu_ptr->domain == IMC_DOMAIN_TRACE) { pmu_ptr 1528 arch/powerpc/perf/imc-pmu.c static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent, pmu_ptr 1537 arch/powerpc/perf/imc-pmu.c switch (pmu_ptr->domain) { pmu_ptr 1540 arch/powerpc/perf/imc-pmu.c pmu_ptr->pmu.name = kasprintf(GFP_KERNEL, "%s%s_imc", "nest_", s); pmu_ptr 1541 arch/powerpc/perf/imc-pmu.c if (!pmu_ptr->pmu.name) pmu_ptr 1552 arch/powerpc/perf/imc-pmu.c per_nest_pmu_arr[pmu_index] = pmu_ptr; pmu_ptr 1556 arch/powerpc/perf/imc-pmu.c pmu_ptr->pmu.name = kasprintf(GFP_KERNEL, "%s%s", s, "_imc"); pmu_ptr 1557 arch/powerpc/perf/imc-pmu.c if (!pmu_ptr->pmu.name) pmu_ptr 1561 arch/powerpc/perf/imc-pmu.c pmu_ptr->mem_info = kcalloc(nr_cores, sizeof(struct imc_mem_info), pmu_ptr 1564 arch/powerpc/perf/imc-pmu.c if (!pmu_ptr->mem_info) pmu_ptr 1571 arch/powerpc/perf/imc-pmu.c kfree(pmu_ptr->mem_info); pmu_ptr 1575 arch/powerpc/perf/imc-pmu.c core_imc_pmu = pmu_ptr; pmu_ptr 1579 arch/powerpc/perf/imc-pmu.c pmu_ptr->pmu.name = kasprintf(GFP_KERNEL, "%s%s", s, "_imc"); pmu_ptr 1580 arch/powerpc/perf/imc-pmu.c if (!pmu_ptr->pmu.name) pmu_ptr 1583 arch/powerpc/perf/imc-pmu.c thread_imc_mem_size = pmu_ptr->counter_mem_size; pmu_ptr 1585 arch/powerpc/perf/imc-pmu.c res = thread_imc_mem_alloc(cpu, pmu_ptr->counter_mem_size); pmu_ptr 1592 arch/powerpc/perf/imc-pmu.c thread_imc_pmu = pmu_ptr; pmu_ptr 1596 arch/powerpc/perf/imc-pmu.c pmu_ptr->pmu.name = kasprintf(GFP_KERNEL, "%s%s", s, "_imc"); pmu_ptr 1597 arch/powerpc/perf/imc-pmu.c if (!pmu_ptr->pmu.name) pmu_ptr 1606 arch/powerpc/perf/imc-pmu.c trace_imc_mem_size = pmu_ptr->counter_mem_size; pmu_ptr 1634 arch/powerpc/perf/imc-pmu.c int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_idx) pmu_ptr 1638 arch/powerpc/perf/imc-pmu.c ret = imc_mem_init(pmu_ptr, parent, pmu_idx); pmu_ptr 1642 arch/powerpc/perf/imc-pmu.c switch (pmu_ptr->domain) { pmu_ptr 1700 arch/powerpc/perf/imc-pmu.c ret = update_events_in_group(parent, pmu_ptr); pmu_ptr 1704 arch/powerpc/perf/imc-pmu.c ret = update_pmu_ops(pmu_ptr); pmu_ptr 1708 arch/powerpc/perf/imc-pmu.c ret = perf_pmu_register(&pmu_ptr->pmu, pmu_ptr->pmu.name, -1); pmu_ptr 1713 arch/powerpc/perf/imc-pmu.c pmu_ptr->pmu.name); pmu_ptr 1718 arch/powerpc/perf/imc-pmu.c imc_common_cpuhp_mem_free(pmu_ptr); pmu_ptr 1720 arch/powerpc/perf/imc-pmu.c imc_common_mem_free(pmu_ptr); pmu_ptr 53 arch/powerpc/platforms/powernv/opal-imc.c struct imc_pmu *pmu_ptr) pmu_ptr 58 arch/powerpc/platforms/powernv/opal-imc.c struct imc_mem_info *ptr = pmu_ptr->mem_info; pmu_ptr 94 arch/powerpc/platforms/powernv/opal-imc.c struct imc_pmu *pmu_ptr, pmu_ptr 122 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info), pmu_ptr 124 arch/powerpc/platforms/powernv/opal-imc.c if (!pmu_ptr->mem_info) pmu_ptr 128 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->mem_info[i].id = chipid_arr[i]; pmu_ptr 130 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); pmu_ptr 133 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->imc_counter_mmaped = true; pmu_ptr 152 arch/powerpc/platforms/powernv/opal-imc.c struct imc_pmu *pmu_ptr; pmu_ptr 160 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr = kzalloc(sizeof(*pmu_ptr), GFP_KERNEL); pmu_ptr 161 arch/powerpc/platforms/powernv/opal-imc.c if (!pmu_ptr) pmu_ptr 165 arch/powerpc/platforms/powernv/opal-imc.c pmu_ptr->domain = domain; pmu_ptr 167 arch/powerpc/platforms/powernv/opal-imc.c ret = of_property_read_u32(parent, "size", &pmu_ptr->counter_mem_size); pmu_ptr 172 arch/powerpc/platforms/powernv/opal-imc.c if (imc_get_mem_addr_nest(parent, pmu_ptr, offset)) pmu_ptr 177 arch/powerpc/platforms/powernv/opal-imc.c ret = init_imc_pmu(parent, pmu_ptr, pmu_index); pmu_ptr 179 arch/powerpc/platforms/powernv/opal-imc.c pr_err("IMC PMU %s Register failed\n", pmu_ptr->pmu.name); pmu_ptr 180 arch/powerpc/platforms/powernv/opal-imc.c kfree(pmu_ptr->pmu.name); pmu_ptr 181 arch/powerpc/platforms/powernv/opal-imc.c if (pmu_ptr->domain == IMC_DOMAIN_NEST) pmu_ptr 182 arch/powerpc/platforms/powernv/opal-imc.c kfree(pmu_ptr->mem_info); pmu_ptr 183 arch/powerpc/platforms/powernv/opal-imc.c kfree(pmu_ptr); pmu_ptr 187 arch/powerpc/platforms/powernv/opal-imc.c return pmu_ptr; pmu_ptr 190 arch/powerpc/platforms/powernv/opal-imc.c kfree(pmu_ptr);