Searched refs:pmc_idx (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.6/drivers/platform/x86/intel/pmc/ |
D | core_ssram.c | 68 int pmc_idx) in pmc_core_ssram_get_pmc() argument 73 if (pmc_idx != PMC_IDX_SOC) { in pmc_core_ssram_get_pmc() 92 pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); in pmc_core_ssram_get_pmc() 95 if (pmc_idx != PMC_IDX_SOC) in pmc_core_ssram_get_pmc()
|
/Linux-v6.6/arch/riscv/kvm/ |
D | vcpu_pmu.c | 161 int i, pmc_idx; in kvm_pmu_get_programmable_pmc_index() local 175 pmc_idx = i + cbase; in kvm_pmu_get_programmable_pmc_index() 176 if ((pmc_idx >= min && pmc_idx < max) && in kvm_pmu_get_programmable_pmc_index() 177 !test_bit(pmc_idx, kvpmu->pmc_in_use)) { in kvm_pmu_get_programmable_pmc_index() 178 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
|
/Linux-v6.6/arch/x86/kvm/svm/ |
D | pmu.c | 28 static struct kvm_pmc *amd_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmc_idx_to_pmc() argument 32 if (pmc_idx >= num_counters) in amd_pmc_idx_to_pmc() 35 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmc_idx_to_pmc()
|
/Linux-v6.6/arch/x86/kvm/ |
D | pmu.h | 23 struct kvm_pmc *(*pmc_idx_to_pmc)(struct kvm_pmu *pmu, int pmc_idx); 271 bool is_vmware_backdoor_pmc(u32 pmc_idx);
|
D | pmu.c | 467 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument 469 switch (pmc_idx) { in is_vmware_backdoor_pmc()
|
/Linux-v6.6/arch/x86/kvm/vmx/ |
D | pmu_intel.c | 92 static struct kvm_pmc *intel_pmc_idx_to_pmc(struct kvm_pmu *pmu, int pmc_idx) in intel_pmc_idx_to_pmc() argument 94 if (pmc_idx < INTEL_PMC_IDX_FIXED) { in intel_pmc_idx_to_pmc() 95 return get_gp_pmc(pmu, MSR_P6_EVNTSEL0 + pmc_idx, in intel_pmc_idx_to_pmc() 98 u32 idx = pmc_idx - INTEL_PMC_IDX_FIXED; in intel_pmc_idx_to_pmc()
|