Searched refs:ctr_idx (Results 1 – 2 of 2) sorted by relevance
161 int ctr_idx = -1; in kvm_pmu_get_programmable_pmc_index() local179 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() local701 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 …]
705 static inline u32 counter_offset(u32 reg_sz, u32 ctr_idx) in counter_offset() argument707 return (PMEVCNTR_LO + (reg_sz * ctr_idx)); in counter_offset()