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 …]
1616 static void imc_common_mem_free(struct imc_pmu *pmu_ptr) in imc_common_mem_free() argument1618 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()1629 static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr) in imc_common_cpuhp_mem_free() argument1631 if (pmu_ptr->domain == IMC_DOMAIN_NEST) { in imc_common_cpuhp_mem_free()1646 if (pmu_ptr->domain == IMC_DOMAIN_CORE) { in imc_common_cpuhp_mem_free()1652 if (pmu_ptr->domain == IMC_DOMAIN_THREAD) { in imc_common_cpuhp_mem_free()1657 if (pmu_ptr->domain == IMC_DOMAIN_TRACE) { in imc_common_cpuhp_mem_free()1677 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);