Lines Matching refs:vl
106 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() argument
116 prctl_vl = prctl(PR_SME_SET_VL, vl); in ptrace_set_get_vl()
122 *supported = (prctl_vl == vl); in ptrace_set_get_vl()
127 za.vl = vl; in ptrace_set_get_vl()
130 ksft_test_result_fail("Failed to set VL %u\n", vl); in ptrace_set_get_vl()
139 ksft_test_result_fail("Failed to read VL %u\n", vl); in ptrace_set_get_vl()
143 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl()
149 static void ptrace_set_no_data(pid_t child, unsigned int vl) in ptrace_set_no_data() argument
160 write_za.vl = vl; in ptrace_set_no_data()
164 ksft_test_result_fail("Failed to set VL %u no data\n", vl); in ptrace_set_no_data()
170 ksft_test_result_fail("Failed to read VL %u no data\n", vl); in ptrace_set_no_data()
178 vl, write_za.size, read_za->size); in ptrace_set_no_data()
183 "Disabled ZA for VL %u\n", vl); in ptrace_set_no_data()
190 static void ptrace_set_get_data(pid_t child, unsigned int vl) in ptrace_set_get_data() argument
197 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_get_data()
205 data_size, vl); in ptrace_set_get_data()
213 write_za->vl = vl; in ptrace_set_get_data()
219 ksft_test_result_fail("Failed to set VL %u data\n", vl); in ptrace_set_get_data()
225 ksft_test_result_fail("Failed to read VL %u data\n", vl); in ptrace_set_get_data()
233 vl, write_za->size, read_za->size); in ptrace_set_get_data()
240 "Data match for VL %u\n", vl); in ptrace_set_get_data()
254 unsigned int vq, vl; in do_parent() local
315 vl = sve_vl_from_vq(vq); in do_parent()
318 ptrace_set_get_vl(child, vl, &vl_supported); in do_parent()
322 ptrace_set_no_data(child, vl); in do_parent()
323 ptrace_set_get_data(child, vl); in do_parent()
325 ksft_test_result_skip("Disabled ZA for VL %u\n", vl); in do_parent()
327 vl); in do_parent()