Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/arm64/signal/testcases/
H A 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()
H A Dtestcases.c65 = ((SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve->vl)) + 15) / 16) * 16; in validate_sve_context()
90 = ((ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(za->vl)) + 15) / 16) * 16; in validate_za_context()
H A Dssve_za_regs.c112 ZA_SIG_REGS_SIZE(sve_vq_from_vl(za->vl))) != 0) { in do_one_sme_vl()
/openbmc/linux/tools/testing/selftests/arm64/signal/
H A 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()
/openbmc/linux/tools/testing/selftests/arm64/abi/
H A 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()
/openbmc/linux/arch/arm64/kernel/
H A Dfpsimd.c427 sme_set_vq(sve_vq_from_vl(sme_vl) - 1); in task_fpsimd_load()
552 __vq_to_bit(sve_vq_from_vl(vl))); in find_supported_vector_length()
685 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread)); in fpsimd_to_sve()
712 vq = sve_vq_from_vl(vl); in sve_to_fpsimd()
750 return SVE_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sve_state_size()
842 vq = sve_vq_from_vl(thread_get_cur_vl(&task->thread)); in sve_sync_from_fpsimd_zeropad()
1047 if (sve_vq_from_vl(vl) > vq) in vec_probe_vqs()
1190 return sve_vq_from_vl(sve_get_vl()) - 1; in read_zcr_features()
1356 return sve_vq_from_vl(sme_get_vl()) - 1; in read_smcr_features()
1441 sve_vq_from_vl(task_get_sve_vl(current)) - 1; in sve_init_regs()
[all …]
H A Dsignal.c243 vq = sve_vq_from_vl(vl); in preserve_sve_context()
246 vq = sve_vq_from_vl(vl); in preserve_sve_context()
315 vq = sve_vq_from_vl(vl); in restore_sve_fpsimd_context()
415 vq = sve_vq_from_vl(vl); in preserve_za_context()
463 vq = sve_vq_from_vl(user_vl); in restore_za_context()
888 vq = sve_vq_from_vl(vl); in setup_sigframe_layout()
914 vq = sve_vq_from_vl(vl); in setup_sigframe_layout()
H A Dptrace.c765 vq = sve_vq_from_vl(header->vl); in sve_init_header_from_task()
769 header->max_size = SVE_PT_SIZE(sve_vq_from_vl(header->max_vl), in sve_init_header_from_task()
789 vq = sve_vq_from_vl(header.vl); in sve_get_common()
869 vq = sve_vq_from_vl(task_get_vl(target, type)); in sve_set_common()
924 if (count && vq != sve_vq_from_vl(header.vl)) { in sve_set_common()
1033 vq = sve_vq_from_vl(header.vl); in za_get()
1096 vq = sve_vq_from_vl(task_get_sme_vl(target)); in za_set()
1126 if (vq != sve_vq_from_vl(header.vl)) { in za_set()
H A Dentry-common.c382 sve_vq_minus_one = sve_vq_from_vl(task_get_sve_vl(current)) - 1; in fp_user_discard()
/openbmc/linux/arch/arm64/include/asm/
H A Dfpsimd.h93 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset()
111 unsigned int sme_vq = sve_vq_from_vl(thread_get_sme_vl(thread)); in thread_zt_state()
375 size = ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sme_state_size()
H A Dkvm_host.h746 #define vcpu_sve_max_vq(vcpu) sve_vq_from_vl((vcpu)->arch.sve_max_vl)
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dsve-probe-vls.c48 vq = sve_vq_from_vl(vl); in main()
H A 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()
H A Dza-ptrace.c197 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_get_data()
H A Dfp-stress.c404 vq = sve_vq_from_vl(vl); in probe_vls()
/openbmc/linux/arch/arm64/include/uapi/asm/
H A Dsigcontext.h195 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) macro
/openbmc/linux/arch/arm64/kvm/
H A Dguest.c359 if (max_vq > sve_vq_from_vl(kvm_sve_max_vl)) in set_sve_vls()
/openbmc/linux/Documentation/arch/arm64/
H A Dsve.rst156 sve_context.head.size >= SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)).
346 vq should be obtained using sve_vq_from_vl(vl).
H A Dsme.rst131 za_context.head.size >= ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(za_context.vl))