Lines Matching refs:fw_event
223 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_fw_ctr_read_hi()
247 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_ctr_read()
349 fevent = &kvpmu->fw_event[fid]; in kvm_riscv_vcpu_pmu_incr_fw()
530 if (kvpmu->fw_event[fevent_code].started) { in kvm_riscv_vcpu_pmu_ctr_start()
535 kvpmu->fw_event[fevent_code].started = true; in kvm_riscv_vcpu_pmu_ctr_start()
536 kvpmu->fw_event[fevent_code].value = pmc->counter_val; in kvm_riscv_vcpu_pmu_ctr_start()
591 if (!kvpmu->fw_event[fevent_code].started) in kvm_riscv_vcpu_pmu_ctr_stop()
594 kvpmu->fw_event[fevent_code].started = false; in kvm_riscv_vcpu_pmu_ctr_stop()
613 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in kvm_riscv_vcpu_pmu_ctr_stop()
715 kvpmu->fw_event[event_code].started = true; in kvm_riscv_vcpu_pmu_ctr_cfg_match()
780 memset(&kvpmu->fw_event, 0, SBI_PMU_FW_MAX * sizeof(struct kvm_fw_event)); in kvm_riscv_vcpu_pmu_init()
842 memset(&kvpmu->fw_event, 0, SBI_PMU_FW_MAX * sizeof(struct kvm_fw_event)); in kvm_riscv_vcpu_pmu_deinit()