/linux-6.12.1/tools/testing/selftests/arm64/signal/testcases/ |
D | za_regs.c | 78 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()
|
D | testcases.c | 42 = ((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()
|
D | ssve_za_regs.c | 112 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/ |
D | sve_helpers.c | 41 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/ |
D | syscall-abi.c | 214 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/ |
D | fpsimd.c | 378 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 …]
|
D | signal.c | 358 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()
|
D | ptrace.c | 798 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()
|
D | entry-common.c | 416 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/ |
D | fpsimd.h | 118 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()
|
D | kvm_pkvm.h | 137 SVE_SIG_REGS_SIZE(sve_vq_from_vl(kvm_host_sve_max_vl))); in pkvm_host_sve_state_size()
|
D | kvm_host.h | 929 #define vcpu_sve_max_vq(vcpu) sve_vq_from_vl((vcpu)->arch.sve_max_vl)
|
/linux-6.12.1/tools/testing/selftests/arm64/fp/ |
D | sve-probe-vls.c | 48 vq = sve_vq_from_vl(vl); in main()
|
D | sve-ptrace.c | 335 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()
|
D | za-ptrace.c | 197 unsigned int vq = sve_vq_from_vl(vl); in ptrace_set_get_data()
|
D | fp-stress.c | 417 vq = sve_vq_from_vl(vl); in probe_vls()
|
D | fp-ptrace.c | 1312 vq = sve_vq_from_vl(vl); in probe_vls()
|
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/ |
D | hyp-main.c | 36 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/ |
D | sigcontext.h | 210 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) macro
|
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/ |
D | switch.h | 341 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/ |
D | sve.rst | 151 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).
|
D | sme.rst | 131 za_context.head.size >= ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(za_context.vl))
|
/linux-6.12.1/arch/arm64/kvm/ |
D | guest.c | 359 if (max_vq > sve_vq_from_vl(kvm_sve_max_vl)) in set_sve_vls()
|