Searched refs:vlenb (Results 1 – 7 of 7) sorted by relevance
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_vector.c | 26 cntx->vector.vlenb = riscv_v_vsize / 32; in kvm_riscv_vcpu_vector_reset() 102 size_t vlenb = riscv_v_vsize / 32; in kvm_riscv_vcpu_vreg_addr() local 120 case KVM_REG_RISCV_VECTOR_CSR_REG(vlenb): in kvm_riscv_vcpu_vreg_addr() 121 *reg_addr = &cntx->vector.vlenb; in kvm_riscv_vcpu_vreg_addr() 128 if (reg_size != vlenb) in kvm_riscv_vcpu_vreg_addr() 131 (reg_num - KVM_REG_RISCV_VECTOR_REG(0)) * vlenb; in kvm_riscv_vcpu_vreg_addr() 181 if (reg_num == KVM_REG_RISCV_VECTOR_CSR_REG(vlenb)) { in kvm_riscv_vcpu_set_reg_vector() 189 if (reg_val != cntx->vector.vlenb) in kvm_riscv_vcpu_set_reg_vector()
|
| H A D | vcpu_onereg.c | 1150 size = __builtin_ctzl(cntx->vector.vlenb); in copy_vector_reg_indices()
|
| /linux/tools/testing/selftests/riscv/vector/ |
| H A D | vstate_ptrace.c | 75 ksft_print_msg("vlenb %ld\n", v_regset_hdr->vlenb); in do_parent() 76 data = realloc(data, size + v_regset_hdr->vlenb * 32); in do_parent() 80 v31 = (void *)(data + size + v_regset_hdr->vlenb * 31); in do_parent() 81 size += v_regset_hdr->vlenb * 32; in do_parent()
|
| /linux/arch/riscv/kernel/ |
| H A D | cpufeature.c | 985 u32 vlenb = 0; in has_thead_homogeneous_vlenb() local 1000 if (of_property_read_u32(cpu_node, "thead,vlenb", &vlenb)) { in has_thead_homogeneous_vlenb() 1008 if (prev_vlenb && vlenb != prev_vlenb) { in has_thead_homogeneous_vlenb() 1013 prev_vlenb = vlenb; in has_thead_homogeneous_vlenb() 1017 thead_vlenb_of = vlenb; in has_thead_homogeneous_vlenb()
|
| /linux/arch/riscv/include/asm/ |
| H A D | vector.h | 157 dest->vlenb = riscv_v_vsize / 32; in __vstate_csr_save() 163 dest->vlenb = csr_read(CSR_VLENB); in __vstate_csr_save()
|
| /linux/arch/riscv/boot/dts/thead/ |
| H A D | th1520.dtsi | 31 thead,vlenb = <16>; 58 thead,vlenb = <16>; 85 thead,vlenb = <16>; 112 thead,vlenb = <16>;
|
| /linux/tools/testing/selftests/kvm/riscv/ |
| H A D | get-reg-list.c | 171 /* Enable V extension so that we can get the vlenb register */ in override_vector_reg_size() 178 TEST_FAIL("Can't compute vector register size from zero vlenb\n"); in override_vector_reg_size() 495 case KVM_REG_RISCV_VECTOR_CSR_REG(vlenb): in vector_id_to_str() 496 return "KVM_REG_RISCV_VECTOR_CSR_REG(vlenb)"; in vector_id_to_str() 1021 KVM_REG_RISCV | KVM_REG_SIZE_ULONG | KVM_REG_RISCV_VECTOR | KVM_REG_RISCV_VECTOR_CSR_REG(vlenb),
|