Lines Matching refs:vl
170 sve.vl = sve_vl_from_vq(SVE_VQ_MIN); in ptrace_set_get_inherit()
215 unsigned int vl, bool *supported) in ptrace_set_get_vl() argument
225 prctl_vl = prctl(type->prctl_set, vl); in ptrace_set_get_vl()
231 *supported = (prctl_vl == vl); in ptrace_set_get_vl()
236 sve.vl = vl; in ptrace_set_get_vl()
240 type->name, vl); in ptrace_set_get_vl()
250 type->name, vl); in ptrace_set_get_vl()
254 ksft_test_result(new_sve->vl = prctl_vl, "Set %s VL %u\n", in ptrace_set_get_vl()
255 type->name, vl); in ptrace_set_get_vl()
260 static void check_u32(unsigned int vl, const char *reg, in check_u32() argument
265 vl, reg, *in, *out); in check_u32()
290 sve->vl = 16; /* We don't care what the VL is */ in ptrace_sve_fpsimd()
328 unsigned int vl) in ptrace_set_sve_get_sve_data() argument
335 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_sve_data()
344 data_size, type->name, vl); in ptrace_set_sve_get_sve_data()
352 write_sve->vl = vl; in ptrace_set_sve_get_sve_data()
371 type->name, vl); in ptrace_set_sve_get_sve_data()
378 type->name, vl); in ptrace_set_sve_get_sve_data()
395 printf("# Mismatch in %u Z%d\n", vl, i); in ptrace_set_sve_get_sve_data()
404 printf("# Mismatch in %u P%d\n", vl, i); in ptrace_set_sve_get_sve_data()
409 check_u32(vl, "FPSR", write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), in ptrace_set_sve_get_sve_data()
411 check_u32(vl, "FPCR", write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), in ptrace_set_sve_get_sve_data()
415 type->name, vl); in ptrace_set_sve_get_sve_data()
426 unsigned int vl) in ptrace_set_sve_get_fpsimd_data() argument
430 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_fpsimd_data()
445 data_size, type->name, vl); in ptrace_set_sve_get_fpsimd_data()
453 write_sve->vl = vl; in ptrace_set_sve_get_fpsimd_data()
466 type->name, vl); in ptrace_set_sve_get_fpsimd_data()
473 type->name, vl); in ptrace_set_sve_get_fpsimd_data()
489 type->name, vl, i); in ptrace_set_sve_get_fpsimd_data()
494 check_u32(vl, "FPSR", write_buf + SVE_PT_SVE_FPSR_OFFSET(vq), in ptrace_set_sve_get_fpsimd_data()
496 check_u32(vl, "FPCR", write_buf + SVE_PT_SVE_FPCR_OFFSET(vq), in ptrace_set_sve_get_fpsimd_data()
500 type->name, vl); in ptrace_set_sve_get_fpsimd_data()
509 unsigned int vl) in ptrace_set_fpsimd_get_sve_data() argument
514 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_fpsimd_get_sve_data()
542 type->name, vl); in ptrace_set_fpsimd_get_sve_data()
547 if (read_sve->vl != vl) { in ptrace_set_fpsimd_get_sve_data()
549 read_sve->vl, vl); in ptrace_set_fpsimd_get_sve_data()
591 type->name, vl, i, i); in ptrace_set_fpsimd_get_sve_data()
596 check_u32(vl, "FPSR", &write_fpsimd.fpsr, in ptrace_set_fpsimd_get_sve_data()
598 check_u32(vl, "FPCR", &write_fpsimd.fpcr, in ptrace_set_fpsimd_get_sve_data()
609 type->name, vl); in ptrace_set_fpsimd_get_sve_data()
621 unsigned int vq, vl; in do_parent() local
703 vl = sve_vl_from_vq(vq); in do_parent()
708 ptrace_set_get_vl(child, &vec_types[i], vl, in do_parent()
712 vec_types[i].name, vl); in do_parent()
718 ptrace_set_sve_get_sve_data(child, &vec_types[i], vl); in do_parent()
719 ptrace_set_sve_get_fpsimd_data(child, &vec_types[i], vl); in do_parent()
720 ptrace_set_fpsimd_get_sve_data(child, &vec_types[i], vl); in do_parent()
723 vec_types[i].name, vl); in do_parent()
725 vec_types[i].name, vl); in do_parent()
727 vec_types[i].name, vl); in do_parent()