Home
last modified time | relevance | path

Searched refs:sve_vq_from_vl (Results 1 – 23 of 23) sorted by relevance

/linux-6.12.1/tools/testing/selftests/arm64/signal/testcases/
Dza_regs.c78 if (head->size != ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))) { in do_one_sme_vl()
80 head->size, ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))); in do_one_sme_vl()
89 ZA_SIG_REGS_SIZE(sve_vq_from_vl(za->vl))) != 0) { in do_one_sme_vl()
Dtestcases.c42 = ((SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve->vl)) + 15) / 16) * 16; in validate_sve_context()
67 = ((ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(za->vl)) + 15) / 16) * 16; in validate_za_context()
Dssve_za_regs.c112 ZA_SIG_REGS_SIZE(sve_vq_from_vl(za->vl))) != 0) { in do_one_sme_vl()
/linux-6.12.1/tools/testing/selftests/arm64/signal/
Dsve_helpers.c41 if (vq < sve_vq_from_vl(vl)) in sve_fill_vls()
45 vq = sve_vq_from_vl(vl); in sve_fill_vls()
/linux-6.12.1/tools/testing/selftests/arm64/abi/
Dsyscall-abi.c214 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_p()
261 size_t reg_size = sve_vq_from_vl(sve_vl) * 2; /* 1 bit per VL byte */ in check_ffr()
491 if (vq != sve_vq_from_vl(vl)) in sve_count_vls()
492 vq = sve_vq_from_vl(vl); in sve_count_vls()
518 if (sve_vq_from_vl(vl) > vq) in sme_count_vls()
521 if (vq != sve_vq_from_vl(vl)) in sme_count_vls()
522 vq = sve_vq_from_vl(vl); in sme_count_vls()
/linux-6.12.1/arch/arm64/kernel/
Dfpsimd.c378 sve_set_vq(sve_vq_from_vl(task_get_sve_vl(current)) - 1); in task_fpsimd_load()
404 sme_set_vq(sve_vq_from_vl(sme_vl) - 1); in task_fpsimd_load()
532 __vq_to_bit(sve_vq_from_vl(vl))); in find_supported_vector_length()
663 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread)); in fpsimd_to_sve()
690 vq = sve_vq_from_vl(vl); in sve_to_fpsimd()
734 return SVE_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sve_state_size()
826 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread)); in sve_sync_from_fpsimd_zeropad()
1029 if (sve_vq_from_vl(vl) > vq) in vec_probe_vqs()
1032 vq = sve_vq_from_vl(vl); /* skip intervening lengths */ in vec_probe_vqs()
1135 SVE_SIG_REGS_SIZE(sve_vq_from_vl(max_vl)), SVE_VQ_BYTES); in sve_efi_setup()
[all …]
Dsignal.c358 vq = sve_vq_from_vl(vl); in preserve_sve_context()
361 vq = sve_vq_from_vl(vl); in preserve_sve_context()
430 vq = sve_vq_from_vl(vl); in restore_sve_fpsimd_context()
530 vq = sve_vq_from_vl(vl); in preserve_za_context()
578 vq = sve_vq_from_vl(user_vl); in restore_za_context()
1037 vq = sve_vq_from_vl(vl); in setup_sigframe_layout()
1063 vq = sve_vq_from_vl(vl); in setup_sigframe_layout()
Dptrace.c798 vq = sve_vq_from_vl(header->vl); in sve_init_header_from_task()
802 header->max_size = SVE_PT_SIZE(sve_vq_from_vl(header->max_vl), in sve_init_header_from_task()
822 vq = sve_vq_from_vl(header.vl); in sve_get_common()
902 vq = sve_vq_from_vl(task_get_vl(target, type)); in sve_set_common()
957 if (count && vq != sve_vq_from_vl(header.vl)) { in sve_set_common()
1066 vq = sve_vq_from_vl(header.vl); in za_get()
1129 vq = sve_vq_from_vl(task_get_sme_vl(target)); in za_set()
1159 if (vq != sve_vq_from_vl(header.vl)) { in za_set()
Dentry-common.c416 sve_vq_minus_one = sve_vq_from_vl(task_get_sve_vl(current)) - 1; in fp_user_discard()
/linux-6.12.1/arch/arm64/include/asm/
Dfpsimd.h118 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset()
136 unsigned int sme_vq = sve_vq_from_vl(thread_get_sme_vl(thread)); in thread_zt_state()
399 size = ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sme_state_size()
Dkvm_pkvm.h137 SVE_SIG_REGS_SIZE(sve_vq_from_vl(kvm_host_sve_max_vl))); in pkvm_host_sve_state_size()
Dkvm_host.h929 #define vcpu_sve_max_vq(vcpu) sve_vq_from_vl((vcpu)->arch.sve_max_vl)
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dsve-probe-vls.c48 vq = sve_vq_from_vl(vl); in main()
Dsve-ptrace.c335 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_sve_data()
430 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_sve_get_fpsimd_data()
514 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_fpsimd_get_sve_data()
Dza-ptrace.c197 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_get_data()
Dfp-stress.c417 vq = sve_vq_from_vl(vl); in probe_vls()
Dfp-ptrace.c1312 vq = sve_vq_from_vl(vl); in probe_vls()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dhyp-main.c36 write_sysreg_s(sve_vq_from_vl(kvm_host_sve_max_vl) - 1, SYS_ZCR_EL2); in __hyp_sve_save_guest()
52 write_sysreg_s(sve_vq_from_vl(kvm_host_sve_max_vl) - 1, SYS_ZCR_EL2); in __hyp_sve_restore_host()
492 sve_cond_update_zcr_vq(sve_vq_from_vl(kvm_host_sve_max_vl) - 1, in handle_trap()
/linux-6.12.1/arch/arm64/include/uapi/asm/
Dsigcontext.h210 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) macro
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h341 write_sysreg_s(sve_vq_from_vl(kvm_host_sve_max_vl) - 1, SYS_ZCR_EL2); in __hyp_sve_save_host()
/linux-6.12.1/Documentation/arch/arm64/
Dsve.rst151 sve_context.head.size >= SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)).
341 vq should be obtained using sve_vq_from_vl(vl).
Dsme.rst131 za_context.head.size >= ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(za_context.vl))
/linux-6.12.1/arch/arm64/kvm/
Dguest.c359 if (max_vq > sve_vq_from_vl(kvm_sve_max_vl)) in set_sve_vls()