Lines Matching refs:vector
27 WARN_ON(!cntx->vector.datap); in kvm_riscv_vcpu_vector_reset()
28 memset(cntx->vector.datap, 0, riscv_v_vsize); in kvm_riscv_vcpu_vector_reset()
76 cntx->vector.datap = kmalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context()
77 if (!cntx->vector.datap) in kvm_riscv_vcpu_alloc_vector_context()
80 vcpu->arch.host_context.vector.datap = kzalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context()
81 if (!vcpu->arch.host_context.vector.datap) in kvm_riscv_vcpu_alloc_vector_context()
89 kfree(vcpu->arch.guest_reset_context.vector.datap); in kvm_riscv_vcpu_free_vector_context()
90 kfree(vcpu->arch.host_context.vector.datap); in kvm_riscv_vcpu_free_vector_context()
107 *reg_addr = &cntx->vector.vstart; in kvm_riscv_vcpu_vreg_addr()
110 *reg_addr = &cntx->vector.vl; in kvm_riscv_vcpu_vreg_addr()
113 *reg_addr = &cntx->vector.vtype; in kvm_riscv_vcpu_vreg_addr()
116 *reg_addr = &cntx->vector.vcsr; in kvm_riscv_vcpu_vreg_addr()
125 *reg_addr = cntx->vector.datap + in kvm_riscv_vcpu_vreg_addr()