Searched refs:pmc_idx (Results 1 – 4 of 4) sorted by relevance
26 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument30 if (pmc_idx >= num_counters) in amd_pmc_idx_to_pmc()33 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
30 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx);203 bool is_vmware_backdoor_pmc(u32 pmc_idx);
370 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument372 switch (pmc_idx) { in is_vmware_backdoor_pmc()
59 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() argument61 if (pmc_idx < INTEL_PMC_IDX_FIXED) { in intel_pmc_idx_to_pmc()62 return get_gp_pmc(pmu, MSR_P6_EVNTSEL0 + pmc_idx, in intel_pmc_idx_to_pmc()65 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()