Searched refs:vl (Results 1 – 9 of 9) sorted by relevance
322 static unsigned int find_supported_vector_length(unsigned int vl) in find_supported_vector_length() argument327 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()328 vl = SVE_VL_MIN; in find_supported_vector_length()333 if (vl > max_vl) in find_supported_vector_length()334 vl = max_vl; in find_supported_vector_length()337 __vq_to_bit(sve_vq_from_vl(vl))); in find_supported_vector_length()348 int vl = sve_default_vl; in sve_proc_do_default_vl() local350 .data = &vl, in sve_proc_do_default_vl()351 .maxlen = sizeof(vl), in sve_proc_do_default_vl()359 if (vl == -1) in sve_proc_do_default_vl()[all …]
230 unsigned int vl = current->thread.sve_vl; in preserve_sve_context() local234 vq = sve_vq_from_vl(vl); in preserve_sve_context()241 __put_user_error(vl, &ctx->vl, err); in preserve_sve_context()268 if (sve.vl != current->thread.sve_vl) in restore_sve_fpsimd_context()276 vq = sve_vq_from_vl(sve.vl); in restore_sve_fpsimd_context()589 int vl = sve_max_vl; in setup_sigframe_layout() local592 vl = current->thread.sve_vl; in setup_sigframe_layout()594 vq = sve_vq_from_vl(vl); in setup_sigframe_layout()
770 header->vl = target->thread.sve_vl; in sve_init_header_from_task()771 vq = sve_vq_from_vl(header->vl); in sve_init_header_from_task()811 vq = sve_vq_from_vl(header.vl); in sve_get()889 ret = sve_set_vector_length(target, header.vl, in sve_set()914 if (count && vq != sve_vq_from_vl(header.vl)) { in sve_set()
25 #define __sve_vl_valid(vl) \ argument26 ((vl) % __SVE_VQ_BYTES == 0 && \27 (vl) >= __SVE_VL_MIN && \28 (vl) <= __SVE_VL_MAX)30 #define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES) argument
136 __u16 vl; member163 #define sve_vl_valid(vl) __sve_vl_valid(vl) argument164 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) argument
104 __u16 vl; /* current vector length */ member
161 unsigned int vl; in kvm_vcpu_finalize_sve() local163 vl = vcpu->arch.sve_max_vl; in kvm_vcpu_finalize_sve()170 if (WARN_ON(!sve_vl_valid(vl) || vl > sve_max_virtualisable_vl || in kvm_vcpu_finalize_sve()171 vl > SVE_VL_ARCH_MAX)) in kvm_vcpu_finalize_sve()174 buf = kzalloc(SVE_SIG_REGS_SIZE(sve_vq_from_vl(vl)), GFP_KERNEL); in kvm_vcpu_finalize_sve()
59 static inline size_t sve_ffr_offset(int vl) in sve_ffr_offset() argument61 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset()115 unsigned long vl, unsigned long flags);
899 e706 vl VRX_VRRDU