Lines Matching refs:fevent_code
205 int fevent_code; in pmu_ctr_read() local
210 fevent_code = get_event_code(pmc->event_idx); in pmu_ctr_read()
211 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_ctr_read()
345 int fevent_code; in kvm_riscv_vcpu_pmu_ctr_start() local
361 fevent_code = get_event_code(pmc->event_idx); in kvm_riscv_vcpu_pmu_ctr_start()
362 if (fevent_code >= SBI_PMU_FW_MAX) { in kvm_riscv_vcpu_pmu_ctr_start()
368 if (kvpmu->fw_event[fevent_code].started) { in kvm_riscv_vcpu_pmu_ctr_start()
373 kvpmu->fw_event[fevent_code].started = true; in kvm_riscv_vcpu_pmu_ctr_start()
374 kvpmu->fw_event[fevent_code].value = pmc->counter_val; in kvm_riscv_vcpu_pmu_ctr_start()
402 int fevent_code; in kvm_riscv_vcpu_pmu_ctr_stop() local
416 fevent_code = get_event_code(pmc->event_idx); in kvm_riscv_vcpu_pmu_ctr_stop()
417 if (fevent_code >= SBI_PMU_FW_MAX) { in kvm_riscv_vcpu_pmu_ctr_stop()
422 if (!kvpmu->fw_event[fevent_code].started) in kvm_riscv_vcpu_pmu_ctr_stop()
425 kvpmu->fw_event[fevent_code].started = false; in kvm_riscv_vcpu_pmu_ctr_stop()