Lines Matching full:cp
20 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_pmu_handler() local
22 unsigned long funcid = cp->a6; in kvm_sbi_ext_pmu_handler()
35 ret = kvm_riscv_vcpu_pmu_ctr_info(vcpu, cp->a0, retdata); in kvm_sbi_ext_pmu_handler()
39 temp = ((uint64_t)cp->a5 << 32) | cp->a4; in kvm_sbi_ext_pmu_handler()
41 temp = cp->a4; in kvm_sbi_ext_pmu_handler()
49 ret = kvm_riscv_vcpu_pmu_ctr_cfg_match(vcpu, cp->a0, cp->a1, in kvm_sbi_ext_pmu_handler()
50 cp->a2, cp->a3, temp, retdata); in kvm_sbi_ext_pmu_handler()
54 temp = ((uint64_t)cp->a4 << 32) | cp->a3; in kvm_sbi_ext_pmu_handler()
56 temp = cp->a3; in kvm_sbi_ext_pmu_handler()
58 ret = kvm_riscv_vcpu_pmu_ctr_start(vcpu, cp->a0, cp->a1, cp->a2, in kvm_sbi_ext_pmu_handler()
62 ret = kvm_riscv_vcpu_pmu_ctr_stop(vcpu, cp->a0, cp->a1, cp->a2, retdata); in kvm_sbi_ext_pmu_handler()
65 ret = kvm_riscv_vcpu_pmu_fw_ctr_read(vcpu, cp->a0, retdata); in kvm_sbi_ext_pmu_handler()
69 ret = kvm_riscv_vcpu_pmu_fw_ctr_read_hi(vcpu, cp->a0, retdata); in kvm_sbi_ext_pmu_handler()
74 ret = kvm_riscv_vcpu_pmu_snapshot_set_shmem(vcpu, cp->a0, cp->a1, cp->a2, retdata); in kvm_sbi_ext_pmu_handler()