Lines Matching refs:vl

255 	return task->thread.vl[type];  in task_get_vl()
259 unsigned long vl) in task_set_vl() argument
261 task->thread.vl[type] = vl; in task_set_vl()
271 unsigned long vl) in task_set_vl_onexec() argument
273 task->thread.vl_onexec[type] = vl; in task_set_vl_onexec()
387 unsigned int vl) in find_supported_vector_length() argument
393 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
394 vl = info->min_vl; in find_supported_vector_length()
399 if (vl > max_vl) in find_supported_vector_length()
400 vl = max_vl; in find_supported_vector_length()
403 __vq_to_bit(sve_vq_from_vl(vl))); in find_supported_vector_length()
414 int vl = get_sve_default_vl(); in sve_proc_do_default_vl() local
416 .data = &vl, in sve_proc_do_default_vl()
417 .maxlen = sizeof(vl), in sve_proc_do_default_vl()
425 if (vl == -1) in sve_proc_do_default_vl()
426 vl = info->max_vl; in sve_proc_do_default_vl()
428 if (!sve_vl_valid(vl)) in sve_proc_do_default_vl()
431 set_sve_default_vl(find_supported_vector_length(ARM64_VEC_SVE, vl)); in sve_proc_do_default_vl()
633 unsigned long vl, unsigned long flags) in sve_set_vector_length() argument
639 if (!sve_vl_valid(vl)) in sve_set_vector_length()
647 if (vl > SVE_VL_ARCH_MAX) in sve_set_vector_length()
648 vl = SVE_VL_ARCH_MAX; in sve_set_vector_length()
650 vl = find_supported_vector_length(ARM64_VEC_SVE, vl); in sve_set_vector_length()
654 task_set_sve_vl_onexec(task, vl); in sve_set_vector_length()
663 if (vl == task_get_sve_vl(task)) in sve_set_vector_length()
690 task_set_sve_vl(task, vl); in sve_set_vector_length()
723 unsigned long vl, flags; in sve_set_current_vl() local
726 vl = arg & PR_SVE_VL_LEN_MASK; in sve_set_current_vl()
727 flags = arg & ~vl; in sve_set_current_vl()
732 ret = sve_set_vector_length(current, vl, flags); in sve_set_current_vl()
751 unsigned int vq, vl; in vec_probe_vqs() local
757 vl = sve_get_vl(); in vec_probe_vqs()
758 vq = sve_vq_from_vl(vl); /* skip intervening lengths */ in vec_probe_vqs()
1093 int vl, supported_vl; in fpsimd_flush_thread_vl() local
1105 vl = task_get_vl_onexec(current, type); in fpsimd_flush_thread_vl()
1106 if (!vl) in fpsimd_flush_thread_vl()
1107 vl = get_default_vl(type); in fpsimd_flush_thread_vl()
1109 if (WARN_ON(!sve_vl_valid(vl))) in fpsimd_flush_thread_vl()
1110 vl = SVE_VL_MIN; in fpsimd_flush_thread_vl()
1112 supported_vl = find_supported_vector_length(type, vl); in fpsimd_flush_thread_vl()
1113 if (WARN_ON(supported_vl != vl)) in fpsimd_flush_thread_vl()
1114 vl = supported_vl; in fpsimd_flush_thread_vl()
1116 task_set_vl(current, type, vl); in fpsimd_flush_thread_vl()