Home
last modified time | relevance | path

Searched refs:vfp_state (Results 1 – 16 of 16) sorted by relevance

/optee_os/core/arch/arm/crypto/
H A Dsm4_armv8a_neon.c15 uint32_t vfp_state = 0; in crypto_accel_sm4_setkey_enc() local
19 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_setkey_enc()
21 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_setkey_enc()
26 uint32_t vfp_state = 0; in crypto_accel_sm4_setkey_dec() local
30 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_setkey_dec()
32 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_setkey_dec()
38 uint32_t vfp_state = 0; in crypto_accel_sm4_ecb_enc() local
42 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_ecb_enc()
44 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_ecb_enc()
50 uint32_t vfp_state = 0; in crypto_accel_sm4_cbc_enc() local
[all …]
H A Dsm4_armv8a_ce.c15 uint32_t vfp_state = 0; in crypto_accel_sm4_setkey_enc() local
19 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_setkey_enc()
21 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_setkey_enc()
26 uint32_t vfp_state = 0; in crypto_accel_sm4_setkey_dec() local
30 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_setkey_dec()
32 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_setkey_dec()
38 uint32_t vfp_state = 0; in crypto_accel_sm4_ecb_enc() local
42 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm4_ecb_enc()
44 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm4_ecb_enc()
50 uint32_t vfp_state = 0; in crypto_accel_sm4_cbc_enc() local
[all …]
H A Daes_armv8a_ce.c126 uint32_t vfp_state = 0; in crypto_accel_aes_expand_keys() local
145 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_aes_expand_keys()
151 thread_kernel_disable_vfp(vfp_state); in crypto_accel_aes_expand_keys()
160 uint32_t vfp_state = 0; in crypto_accel_aes_ecb_enc() local
164 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_aes_ecb_enc()
166 thread_kernel_disable_vfp(vfp_state); in crypto_accel_aes_ecb_enc()
173 uint32_t vfp_state = 0; in crypto_accel_aes_ecb_dec() local
177 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_aes_ecb_dec()
179 thread_kernel_disable_vfp(vfp_state); in crypto_accel_aes_ecb_dec()
186 uint32_t vfp_state = 0; in crypto_accel_aes_cbc_enc() local
[all …]
H A Dsha1_armv8a_ce.c16 uint32_t vfp_state = 0; in crypto_accel_sha1_compress() local
18 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sha1_compress()
20 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sha1_compress()
H A Dsm3_armv8a_ce.c16 uint32_t vfp_state = 0; in crypto_accel_sm3_compress() local
18 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sm3_compress()
20 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sm3_compress()
H A Dsha256_armv8a_ce.c16 uint32_t vfp_state = 0; in crypto_accel_sha256_compress() local
18 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sha256_compress()
20 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sha256_compress()
H A Dsha512_armv8a_ce.c16 uint32_t vfp_state = 0; in crypto_accel_sha512_compress() local
18 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sha512_compress()
20 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sha512_compress()
H A Dsha3_armv8a_ce.c17 uint32_t vfp_state = 0; in crypto_accel_sha3_compress() local
20 vfp_state = thread_kernel_enable_vfp(); in crypto_accel_sha3_compress()
22 thread_kernel_disable_vfp(vfp_state); in crypto_accel_sha3_compress()
H A Daes-gcm-ce.c83 uint32_t vfp_state; in internal_aes_gcm_ghash_update() local
88 vfp_state = thread_kernel_enable_vfp(); in internal_aes_gcm_ghash_update()
92 thread_kernel_disable_vfp(vfp_state); in internal_aes_gcm_ghash_update()
179 uint32_t vfp_state = 0; in internal_aes_gcm_update_payload_blocks() local
183 vfp_state = thread_kernel_enable_vfp(); in internal_aes_gcm_update_payload_blocks()
203 thread_kernel_disable_vfp(vfp_state); in internal_aes_gcm_update_payload_blocks()
217 uint32_t vfp_state = 0; in internal_aes_gcm_update_payload_blocks() local
221 vfp_state = thread_kernel_enable_vfp(); in internal_aes_gcm_update_payload_blocks()
228 thread_kernel_disable_vfp(vfp_state); in internal_aes_gcm_update_payload_blocks()
/optee_os/core/arch/arm/include/kernel/
H A Dvfp.h26 struct vfp_state { struct
48 struct vfp_state { argument
84 void vfp_lazy_save_state_init(struct vfp_state *state);
95 void vfp_lazy_save_state_final(struct vfp_state *state, bool force_save);
104 void vfp_lazy_restore_state(struct vfp_state *state, bool full_state);
H A Dthread_private_arch.h84 struct vfp_state ns;
85 struct vfp_state sec;
H A Dthread_arch.h94 struct vfp_state vfp;
/optee_os/core/arch/arm/kernel/
H A Dvfp.c27 void vfp_lazy_save_state_init(struct vfp_state *state) in vfp_lazy_save_state_init()
35 void vfp_lazy_save_state_final(struct vfp_state *state, bool force_save) in vfp_lazy_save_state_final()
48 void vfp_lazy_restore_state(struct vfp_state *state, bool full_state) in vfp_lazy_restore_state()
91 void vfp_lazy_save_state_init(struct vfp_state *state) in vfp_lazy_save_state_init()
97 void vfp_lazy_save_state_final(struct vfp_state *state, bool force_save) in vfp_lazy_save_state_final()
110 void vfp_lazy_restore_state(struct vfp_state *state, bool full_state) in vfp_lazy_restore_state()
H A Dthread.c127 thr->vfp_state.ns_saved = false; in thread_lazy_save_ns_vfp()
128 vfp_lazy_save_state_init(&thr->vfp_state.ns); in thread_lazy_save_ns_vfp()
136 struct thread_user_vfp_state *tuv = thr->vfp_state.uvfp; in thread_lazy_restore_ns_vfp()
138 assert(!thr->vfp_state.sec_lazy_saved && !thr->vfp_state.sec_saved); in thread_lazy_restore_ns_vfp()
145 vfp_lazy_restore_state(&thr->vfp_state.ns, thr->vfp_state.ns_saved); in thread_lazy_restore_ns_vfp()
146 thr->vfp_state.ns_saved = false; in thread_lazy_restore_ns_vfp()
783 struct thread_user_vfp_state *tuv = thr->vfp_state.uvfp; in thread_kernel_enable_vfp()
787 if (!thr->vfp_state.ns_saved) { in thread_kernel_enable_vfp()
788 vfp_lazy_save_state_final(&thr->vfp_state.ns, in thread_kernel_enable_vfp()
790 thr->vfp_state.ns_saved = true; in thread_kernel_enable_vfp()
[all …]
/optee_os/core/include/kernel/
H A Dthread_private.h49 struct thread_vfp_state vfp_state; member
/optee_os/core/pta/tests/
H A Dmisc.c828 uint32_t vfp_state = UINT32_C(0); in self_test_asan() local
843 vfp_state = thread_kernel_enable_vfp(); in self_test_asan()
860 thread_kernel_disable_vfp(vfp_state); in self_test_asan()