Home
last modified time | relevance | path

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

/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c161 int ctr_idx = -1; in kvm_pmu_get_programmable_pmc_index() local
179 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
184 return ctr_idx; in kvm_pmu_get_programmable_pmc_index()
658 int ctr_idx, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_cfg_match() local
701 ctr_idx = ctr_base + __ffs(ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
703 ctr_idx = pmu_get_pmc_index(kvpmu, eidx, ctr_base, ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
704 if (ctr_idx < 0) { in kvm_riscv_vcpu_pmu_ctr_cfg_match()
710 pmc = &kvpmu->pmc[ctr_idx]; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
711 pmc->idx = ctr_idx; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
724 set_bit(ctr_idx, kvpmu->pmc_in_use); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
[all …]
/linux/drivers/perf/arm_cspmu/
H A Darm_cspmu.c705 static inline u32 counter_offset(u32 reg_sz, u32 ctr_idx) in counter_offset() argument
707 return (PMEVCNTR_LO + (reg_sz * ctr_idx)); in counter_offset()