Home
last modified time | relevance | path

Searched refs:pmc_idx (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/platform/x86/intel/pmc/
H A Dcore.c315 int pmc_idx, u8 pf_reg, const struct pmc_bit_map **pf_map) in pmc_core_display_map() argument
318 pmc_idx, ip, pf_map[idx][index].name, in pmc_core_display_map()
325 unsigned int pmc_idx; in pmc_core_ppfear_show() local
327 for (pmc_idx = 0; pmc_idx < ARRAY_SIZE(pmcdev->pmcs); ++pmc_idx) { in pmc_core_ppfear_show()
328 struct pmc *pmc = pmcdev->pmcs[pmc_idx]; in pmc_core_ppfear_show()
346 pmc_core_display_map(s, index, idx, ip, pmc_idx, in pmc_core_ppfear_show()
475 unsigned int pmc_idx; in pmc_core_send_ltr_ignore() local
483 for (pmc_idx = 0; pmc_idx < ARRAY_SIZE(pmcdev->pmcs) && ltr_index >= 0; pmc_idx++) { in pmc_core_send_ltr_ignore()
484 pmc = pmcdev->pmcs[pmc_idx]; in pmc_core_send_ltr_ignore()
501 if (pmc_idx >= ARRAY_SIZE(pmcdev->pmcs) || ltr_index < 0) in pmc_core_send_ltr_ignore()
[all …]
H A Dssram_telemetry.c72 pmc_ssram_telemetry_get_pmc(struct pci_dev *pcidev, unsigned int pmc_idx, u32 offset) in pmc_ssram_telemetry_get_pmc() argument
84 if (pmc_idx != PMC_IDX_MAIN) { in pmc_ssram_telemetry_get_pmc()
105 pmc_ssram_telems[pmc_idx].devid = devid; in pmc_ssram_telemetry_get_pmc()
106 pmc_ssram_telems[pmc_idx].base_addr = pwrm_base; in pmc_ssram_telemetry_get_pmc()
123 int pmc_ssram_telemetry_get_pmc_info(unsigned int pmc_idx, in pmc_ssram_telemetry_get_pmc_info() argument
140 if (pmc_idx >= MAX_NUM_PMC) in pmc_ssram_telemetry_get_pmc_info()
143 if (!pmc_ssram_telems || !pmc_ssram_telems[pmc_idx].devid) in pmc_ssram_telemetry_get_pmc_info()
146 pmc_ssram_telemetry->devid = pmc_ssram_telems[pmc_idx].devid; in pmc_ssram_telemetry_get_pmc_info()
147 pmc_ssram_telemetry->base_addr = pmc_ssram_telems[pmc_idx].base_addr; in pmc_ssram_telemetry_get_pmc_info()
H A Dssram_telemetry.h21 int pmc_ssram_telemetry_get_pmc_info(unsigned int pmc_idx,
/linux/tools/testing/selftests/kvm/arm64/
H A Dvpmu_counter_access.c208 static void test_bitmap_pmu_regs(int pmc_idx, bool set_op) in test_bitmap_pmu_regs() argument
210 uint64_t pmcr_n, test_bit = BIT(pmc_idx); in test_bitmap_pmu_regs()
220 set_expected = (pmc_idx < pmcr_n) ? true : false; in test_bitmap_pmu_regs()
233 static void test_access_pmc_regs(struct pmc_accessor *acc, int pmc_idx) in test_access_pmc_regs() argument
245 test_bitmap_pmu_regs(pmc_idx, false); in test_access_pmc_regs()
247 test_bitmap_pmu_regs(pmc_idx, true); in test_access_pmc_regs()
249 test_bitmap_pmu_regs(pmc_idx, false); in test_access_pmc_regs()
264 acc->write_typer(pmc_idx, write_data); in test_access_pmc_regs()
265 read_data = acc->read_typer(pmc_idx); in test_access_pmc_regs()
268 pmc_idx, PMC_ACC_TO_IDX(acc), read_data, write_data); in test_access_pmc_regs()
[all …]
/linux/arch/x86/kvm/svm/
H A Dpmu.c28 static struct kvm_pmc *amd_pmu_get_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmu_get_pmc() argument
32 if (pmc_idx >= num_counters) in amd_pmu_get_pmc()
35 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmu_get_pmc()
/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c168 int i, pmc_idx; in kvm_pmu_get_programmable_pmc_index() local
182 pmc_idx = i + cbase; in kvm_pmu_get_programmable_pmc_index()
183 if ((pmc_idx >= min && pmc_idx < max) && in kvm_pmu_get_programmable_pmc_index()
184 !test_bit(pmc_idx, kvpmu->pmc_in_use)) { in kvm_pmu_get_programmable_pmc_index()
185 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
/linux/arch/x86/kvm/
H A Dpmu.h264 bool is_vmware_backdoor_pmc(u32 pmc_idx);
H A Dpmu.c690 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument
692 switch (pmc_idx) { in is_vmware_backdoor_pmc()