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.c167 int ctr_idx = -1; in kvm_pmu_get_programmable_pmc_index() local
185 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
190 return ctr_idx; in kvm_pmu_get_programmable_pmc_index()
718 int ctr_idx, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_cfg_match() local
762 ctr_idx = ctr_base + __ffs(ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
764 ctr_idx = pmu_get_pmc_index(kvpmu, eidx, ctr_base, ctr_mask); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
765 if (ctr_idx < 0) { in kvm_riscv_vcpu_pmu_ctr_cfg_match()
771 ctr_idx = array_index_nospec(ctr_idx, RISCV_KVM_MAX_COUNTERS); in kvm_riscv_vcpu_pmu_ctr_cfg_match()
772 pmc = &kvpmu->pmc[ctr_idx]; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
773 pmc->idx = ctr_idx; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
[all …]
/linux/drivers/perf/arm_cspmu/
H A Darm_cspmu.c696 static inline u32 counter_offset(u32 reg_sz, u32 ctr_idx) in counter_offset() argument
698 return (PMEVCNTR_LO + (reg_sz * ctr_idx)); in counter_offset()