Lines Matching refs:vl
335 static void start_sve(struct child_data *child, int vl, int cpu) in start_sve() argument
339 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); in start_sve()
341 ksft_exit_fail_msg("Failed to set SVE VL %d\n", vl); in start_sve()
343 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu); in start_sve()
352 static void start_ssve(struct child_data *child, int vl, int cpu) in start_ssve() argument
356 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu); in start_ssve()
360 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); in start_ssve()
369 static void start_za(struct child_data *child, int vl, int cpu) in start_za() argument
373 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); in start_za()
377 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cpu); in start_za()
402 int vl; in probe_vls() local
407 vl = prctl(set_vl, vq * 16); in probe_vls()
408 if (vl == -1) in probe_vls()
412 vl &= PR_SVE_VL_LEN_MASK; in probe_vls()
414 if (*vl_count && (vl == vls[*vl_count - 1])) in probe_vls()
417 vq = sve_vq_from_vl(vl); in probe_vls()
419 vls[*vl_count] = vl; in probe_vls()