Lines Matching refs:pmc_index
485 int i, pmc_index, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_start() local
509 pmc_index = i + ctr_base; in kvm_riscv_vcpu_pmu_ctr_start()
510 if (!test_bit(pmc_index, kvpmu->pmc_in_use)) in kvm_riscv_vcpu_pmu_ctr_start()
513 clear_bit(pmc_index, kvpmu->pmc_overflown); in kvm_riscv_vcpu_pmu_ctr_start()
514 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_start()
561 int i, pmc_index, sbiret = 0; in kvm_riscv_vcpu_pmu_ctr_stop() local
580 pmc_index = i + ctr_base; in kvm_riscv_vcpu_pmu_ctr_stop()
581 if (!test_bit(pmc_index, kvpmu->pmc_in_use)) in kvm_riscv_vcpu_pmu_ctr_stop()
583 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_stop()
622 if (test_bit(pmc_index, kvpmu->pmc_overflown)) in kvm_riscv_vcpu_pmu_ctr_stop()
630 clear_bit(pmc_index, kvpmu->pmc_in_use); in kvm_riscv_vcpu_pmu_ctr_stop()
631 clear_bit(pmc_index, kvpmu->pmc_overflown); in kvm_riscv_vcpu_pmu_ctr_stop()