Searched refs:pmu_ptr (Results 1 – 3 of 3) sorted by relevance
51 struct imc_pmu *pmu_ptr) in export_imc_mode_and_cmd() argument56 struct imc_mem_info *ptr = pmu_ptr->mem_info; in export_imc_mode_and_cmd()83 struct imc_pmu *pmu_ptr, in imc_get_mem_addr_nest() argument111 pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info), in imc_get_mem_addr_nest()113 if (!pmu_ptr->mem_info) in imc_get_mem_addr_nest()117 pmu_ptr->mem_info[i].id = chipid_arr[i]; in imc_get_mem_addr_nest()119 pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); in imc_get_mem_addr_nest()122 pmu_ptr->imc_counter_mmaped = true; in imc_get_mem_addr_nest()141 struct imc_pmu *pmu_ptr; in imc_pmu_create() local149 pmu_ptr = kzalloc(sizeof(*pmu_ptr), GFP_KERNEL); in imc_pmu_create()[all …]
1623 static void imc_common_mem_free(struct imc_pmu *pmu_ptr) in imc_common_mem_free() argument1625 if (pmu_ptr->attr_groups[IMC_EVENT_ATTR]) in imc_common_mem_free()1626 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]->attrs); in imc_common_mem_free()1627 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]); in imc_common_mem_free()1636 static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr) in imc_common_cpuhp_mem_free() argument1638 if (pmu_ptr->domain == IMC_DOMAIN_NEST) { in imc_common_cpuhp_mem_free()1653 if (pmu_ptr->domain == IMC_DOMAIN_CORE) { in imc_common_cpuhp_mem_free()1659 if (pmu_ptr->domain == IMC_DOMAIN_THREAD) { in imc_common_cpuhp_mem_free()1664 if (pmu_ptr->domain == IMC_DOMAIN_TRACE) { in imc_common_cpuhp_mem_free()1684 static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent, in imc_mem_init() argument[all …]
168 struct imc_pmu *pmu_ptr, int pmu_id);