Lines Matching refs:vl

119 	sve.vl = sve_vl_from_vq(SVE_VQ_MIN);  in ptrace_set_get_inherit()
159 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() argument
169 prctl_vl = prctl(PR_SVE_SET_VL, vl); in ptrace_set_get_vl()
175 *supported = (prctl_vl == vl); in ptrace_set_get_vl()
180 sve.vl = vl; in ptrace_set_get_vl()
183 ksft_test_result_fail("Failed to set VL %u\n", vl); in ptrace_set_get_vl()
192 ksft_test_result_fail("Failed to read VL %u\n", vl); in ptrace_set_get_vl()
196 ksft_test_result(new_sve->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl()
201 static void check_u32(unsigned int vl, const char *reg, in check_u32() argument
206 vl, reg, *in, *out); in check_u32()
269 static void ptrace_set_sve_get_sve_data(pid_t child, unsigned int vl) in ptrace_set_sve_get_sve_data() argument
276 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_sve_data()
285 data_size, vl); in ptrace_set_sve_get_sve_data()
293 write_sve->vl = vl; in ptrace_set_sve_get_sve_data()
311 ksft_test_result_fail("Failed to set VL %u data\n", vl); in ptrace_set_sve_get_sve_data()
317 ksft_test_result_fail("Failed to read VL %u data\n", vl); in ptrace_set_sve_get_sve_data()
333 printf("# Mismatch in %u Z%d\n", vl, i); in ptrace_set_sve_get_sve_data()
342 printf("# Mismatch in %u P%d\n", vl, i); in ptrace_set_sve_get_sve_data()
347 check_u32(vl, "FPSR", write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), in ptrace_set_sve_get_sve_data()
349 check_u32(vl, "FPCR", write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), in ptrace_set_sve_get_sve_data()
352 ksft_test_result(errors == 0, "Set and get SVE data for VL %u\n", vl); in ptrace_set_sve_get_sve_data()
361 static void ptrace_set_sve_get_fpsimd_data(pid_t child, unsigned int vl) in ptrace_set_sve_get_fpsimd_data() argument
365 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_fpsimd_data()
380 data_size, vl); in ptrace_set_sve_get_fpsimd_data()
388 write_sve->vl = vl; in ptrace_set_sve_get_fpsimd_data()
400 ksft_test_result_fail("Failed to set VL %u data\n", vl); in ptrace_set_sve_get_fpsimd_data()
407 vl); in ptrace_set_sve_get_fpsimd_data()
422 printf("# Mismatch in FPSIMD for VL %u Z%d\n", vl, i); in ptrace_set_sve_get_fpsimd_data()
427 check_u32(vl, "FPSR", write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), in ptrace_set_sve_get_fpsimd_data()
429 check_u32(vl, "FPCR", write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), in ptrace_set_sve_get_fpsimd_data()
433 vl); in ptrace_set_sve_get_fpsimd_data()
445 unsigned int vq, vl; in do_parent() local
510 vl = sve_vl_from_vq(vq); in do_parent()
513 ptrace_set_get_vl(child, vl, &vl_supported); in do_parent()
517 ptrace_set_sve_get_sve_data(child, vl); in do_parent()
518 ptrace_set_sve_get_fpsimd_data(child, vl); in do_parent()
520 ksft_test_result_skip("set SVE get SVE for VL %d\n", vl); in do_parent()
521 ksft_test_result_skip("set SVE get FPSIMD for VL %d\n", vl); in do_parent()