Home
last modified time | relevance | path

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

/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 u64 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/riscv/kvm/
H A Dvcpu_pmu.c169 int i, pmc_idx; in kvm_pmu_get_programmable_pmc_index() local
183 pmc_idx = i + cbase; in kvm_pmu_get_programmable_pmc_index()
184 if ((pmc_idx >= min && pmc_idx < max) && in kvm_pmu_get_programmable_pmc_index()
185 !test_bit(pmc_idx, kvpmu->pmc_in_use)) { in kvm_pmu_get_programmable_pmc_index()
186 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
/linux/drivers/platform/x86/intel/pmc/
H A Dssram_telemetry.h21 int pmc_ssram_telemetry_get_pmc_info(unsigned int pmc_idx,