Home
last modified time | relevance | path

Searched refs:ctr_idx (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/arch/riscv/kvm/
Dvcpu_pmu.c160 int ctr_idx = -1; in kvm_pmu_get_programmable_pmc_index() local
178 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
183 return ctr_idx; in kvm_pmu_get_programmable_pmc_index()
461 int ctr_idx, ret, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_cfg_match() local
503 ctr_idx = ctr_base + __ffs(ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
505 ctr_idx = pmu_get_pmc_index(kvpmu, eidx, ctr_base, ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
506 if (ctr_idx < 0) { in kvm_riscv_vcpu_pmu_ctr_cfg_match()
512 pmc = &kvpmu->pmc[ctr_idx]; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
513 pmc->idx = ctr_idx; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
524 set_bit(ctr_idx, kvpmu->pmc_in_use); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
[all …]
/Linux-v6.6/drivers/perf/arm_cspmu/
Darm_cspmu.c686 static inline u32 counter_offset(u32 reg_sz, u32 ctr_idx) in counter_offset() argument
688 return (PMEVCNTR_LO + (reg_sz * ctr_idx)); in counter_offset()