Lines Matching full:vector
16 #include <asm/vector.h>
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()
79 cntx->vector.vlenb = riscv_v_vsize / 32; in kvm_riscv_vcpu_alloc_vector_context()
81 vcpu->arch.host_context.vector.datap = kzalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context()
82 if (!vcpu->arch.host_context.vector.datap) in kvm_riscv_vcpu_alloc_vector_context()
90 kfree(vcpu->arch.guest_reset_context.vector.datap); in kvm_riscv_vcpu_free_vector_context()
91 kfree(vcpu->arch.host_context.vector.datap); in kvm_riscv_vcpu_free_vector_context()
108 *reg_addr = &cntx->vector.vstart; in kvm_riscv_vcpu_vreg_addr()
111 *reg_addr = &cntx->vector.vl; in kvm_riscv_vcpu_vreg_addr()
114 *reg_addr = &cntx->vector.vtype; in kvm_riscv_vcpu_vreg_addr()
117 *reg_addr = &cntx->vector.vcsr; in kvm_riscv_vcpu_vreg_addr()
120 *reg_addr = &cntx->vector.vlenb; in kvm_riscv_vcpu_vreg_addr()
129 *reg_addr = cntx->vector.datap + in kvm_riscv_vcpu_vreg_addr()
186 if (reg_val != cntx->vector.vlenb) in kvm_riscv_vcpu_set_reg_vector()