Home
last modified time | relevance | path

Searched refs:retstatus (Results 1 – 21 of 21) sorted by relevance

/optee_os/core/drivers/crypto/caam/
A Dcaam_ctrl.c34 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
43 retstatus = caam_jr_init(&jrcfg); in crypto_driver_init()
44 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
51 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
58 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
65 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
72 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
79 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
86 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
93 if (retstatus != CAAM_NO_ERROR) { in crypto_driver_init()
[all …]
A Dcaam_jr.c142 retstatus = CAAM_NO_ERROR; in do_jr_alloc()
149 return retstatus; in do_jr_alloc()
376 retstatus = CAAM_NO_ERROR; in do_jr_enqueue()
381 return retstatus; in do_jr_enqueue()
484 return retstatus; in caam_jr_enqueue()
506 retstatus = CAAM_TIMEOUT; in caam_jr_enqueue()
531 return retstatus; in caam_jr_enqueue()
548 retstatus = in caam_jr_init()
597 return retstatus; in caam_jr_init()
614 return retstatus; in caam_jr_halt()
[all …]
A Dcaam_rng.c350 return retstatus; in caam_rng_init_data()
438 if (retstatus != CAAM_NOT_INIT) in caam_rng_instantiation()
476 retstatus = CAAM_OUT_MEMORY; in caam_rng_instantiation()
489 retstatus = CAAM_NO_ERROR; in caam_rng_instantiation()
497 inc_delay, retstatus); in caam_rng_instantiation()
499 retstatus = CAAM_FAILURE; in caam_rng_instantiation()
519 retstatus = CAAM_FAILURE; in caam_rng_instantiation()
521 retstatus = CAAM_NO_ERROR; in caam_rng_instantiation()
533 return retstatus; in caam_rng_instantiation()
541 retstatus = do_allocate(); in caam_rng_init()
[all …]
/optee_os/core/drivers/crypto/caam/acipher/
A Dcaam_dh.c70 if (retstatus != CAAM_NO_ERROR) in do_keypair_conv_p_g()
71 return retstatus; in do_keypair_conv_p_g()
78 if (retstatus != CAAM_NO_ERROR) in do_keypair_conv_p_g()
79 return retstatus; in do_keypair_conv_p_g()
110 if (retstatus != CAAM_NO_ERROR) in do_keypriv_conv()
111 return retstatus; in do_keypriv_conv()
118 if (retstatus != CAAM_NO_ERROR) in do_keypriv_conv()
119 return retstatus; in do_keypriv_conv()
145 return retstatus; in do_keypub_conv()
490 retstatus = CAAM_NO_ERROR; in caam_dh_init()
[all …]
A Dcaam_dsa.c82 if (retstatus != CAAM_NO_ERROR) in get_keypair_domain_params()
86 if (retstatus != CAAM_NO_ERROR) in get_keypair_domain_params()
163 return retstatus; in do_keypriv_conv()
172 return retstatus; in do_keypriv_conv()
181 return retstatus; in do_keypriv_conv()
190 return retstatus; in do_keypriv_conv()
225 return retstatus; in do_keypub_conv()
234 return retstatus; in do_keypub_conv()
243 return retstatus; in do_keypub_conv()
252 return retstatus; in do_keypub_conv()
[all …]
A Dcaam_ecc.c71 if (retstatus != CAAM_NO_ERROR) in do_keypub_conv()
72 return retstatus; in do_keypub_conv()
105 if (retstatus != CAAM_NO_ERROR) in do_keypair_conv()
106 return retstatus; in do_keypair_conv()
260 if (retstatus != CAAM_NO_ERROR) { in do_gen_keypair()
287 if (retstatus == CAAM_NO_ERROR) { in do_gen_keypair()
357 if (retstatus != CAAM_NO_ERROR) { in do_sign()
430 if (retstatus == CAAM_NO_ERROR) { in do_sign()
491 if (retstatus != CAAM_NO_ERROR) { in do_verify()
710 retstatus = CAAM_NO_ERROR; in caam_ecc_init()
[all …]
A Dcaam_rsa.c138 if (retstatus != CAAM_NO_ERROR) in do_keypub_conv()
146 if (retstatus != CAAM_NO_ERROR) in do_keypub_conv()
204 retstatus = in do_keypair_conv_f3()
206 if (retstatus != CAAM_NO_ERROR) in do_keypair_conv_f3()
300 return retstatus; in do_keypair_conv_f2()
323 return retstatus; in do_keypair_conv()
331 return retstatus; in do_keypair_conv()
343 return retstatus; in do_keypair_conv()
955 enum caam_status retstatus; in do_oaep_encoding() local
1344 retstatus = in do_caam_decrypt()
[all …]
A Dcaam_prime_dsa.c516 jobctx.status, retstatus); in run_prime_q()
517 retstatus = CAAM_FAILURE; in run_prime_q()
524 return retstatus; in run_prime_q()
553 return retstatus; in run_prime_p()
663 jobctx.status, retstatus); in do_generator()
697 if (retstatus != CAAM_NO_ERROR) in caam_prime_dsa_gen()
704 if (retstatus != CAAM_NO_ERROR) in caam_prime_dsa_gen()
705 return retstatus; in caam_prime_dsa_gen()
709 return retstatus; in caam_prime_dsa_gen()
713 retstatus = CAAM_OUT_MEMORY; in caam_prime_dsa_gen()
[all …]
A Dcaam_math.c28 enum caam_status retstatus = CAAM_FAILURE; in do_xor_mod_n() local
90 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_xor_mod_n()
92 if (retstatus == CAAM_NO_ERROR) { in do_xor_mod_n()
95 ret = caam_status_to_tee_result(retstatus); in do_xor_mod_n()
119 enum caam_status retstatus = CAAM_FAILURE; in caam_math_init() local
124 retstatus = CAAM_NO_ERROR; in caam_math_init()
126 return retstatus; in caam_math_init()
A Dcaam_prime_rsa.c728 enum caam_status retstatus = CAAM_FAILURE; in run_primes() local
737 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_primes()
754 retstatus = CAAM_NO_ERROR; in run_primes()
761 } else if (retstatus != CAAM_NO_ERROR) { in run_primes()
765 return retstatus; in run_primes()
770 enum caam_status retstatus = CAAM_FAILURE; in caam_prime_rsa_gen() local
790 if (retstatus != CAAM_NO_ERROR) in caam_prime_rsa_gen()
802 retstatus = CAAM_OUT_MEMORY; in caam_prime_rsa_gen()
810 retstatus = CAAM_FAILURE; in caam_prime_rsa_gen()
855 retstatus = run_primes(all_descs, data); in caam_prime_rsa_gen()
[all …]
/optee_os/core/drivers/crypto/caam/cipher/
A Dcaam_cipher.c231 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_block()
233 retstatus, jobctx.status); in caam_cipher_block()
234 retstatus = CAAM_FAILURE; in caam_cipher_block()
237 return retstatus; in caam_cipher_block()
441 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_initialize()
450 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_initialize()
461 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_initialize()
470 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_initialize()
512 retstatus); in caam_cipher_initialize()
898 retstatus = CAAM_NO_ERROR; in caam_cipher_init()
[all …]
A Dcaam_cipher_xts.c50 enum caam_status retstatus = CAAM_FAILURE; in do_tweak_block() local
63 if (retstatus != CAAM_NO_ERROR) in do_tweak_block()
64 return caam_status_to_tee_result(retstatus); in do_tweak_block()
80 enum caam_status retstatus = CAAM_FAILURE; in caam_cipher_update_xts() local
124 retstatus = caam_cipher_block(ctx, false, NEED_KEY2, true, &tweak, in caam_cipher_update_xts()
126 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_update_xts()
128 ret = caam_status_to_tee_result(retstatus); in caam_cipher_update_xts()
193 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_update_xts()
194 ret = caam_status_to_tee_result(retstatus); in caam_cipher_update_xts()
244 if (retstatus != CAAM_NO_ERROR) { in caam_cipher_update_xts()
[all …]
A Dcaam_cipher_mac.c144 enum caam_status retstatus = CAAM_FAILURE; in do_update_mac() local
238 if (retstatus != CAAM_NO_ERROR) { in do_update_mac()
239 ret = caam_status_to_tee_result(retstatus); in do_update_mac()
261 if (retstatus == CAAM_NO_ERROR) in do_update_mac()
264 ret = caam_status_to_tee_result(retstatus); in do_update_mac()
279 ret = caam_status_to_tee_result(retstatus); in do_update_mac()
301 enum caam_status retstatus = CAAM_FAILURE; in run_cmac_desc() local
341 if (retstatus != CAAM_NO_ERROR) in run_cmac_desc()
400 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_cmac_desc()
402 if (retstatus == CAAM_NO_ERROR) { in run_cmac_desc()
[all …]
/optee_os/core/drivers/crypto/caam/hash/
A Dcaam_hash_mac.c70 enum caam_status retstatus = CAAM_FAILURE; in do_reduce_key() local
81 retstatus = CAAM_OUT_MEMORY; in do_reduce_key()
100 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_reduce_key()
102 if (retstatus != CAAM_NO_ERROR) { in do_reduce_key()
104 retstatus = CAAM_FAILURE; in do_reduce_key()
111 return retstatus; in do_reduce_key()
127 enum caam_status retstatus = CAAM_FAILURE; in do_hmac_init() local
161 retstatus = do_reduce_key(&reduce_key, alg, inkey, len); in do_hmac_init()
162 if (retstatus != CAAM_NO_ERROR) in do_hmac_init()
189 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_hmac_init()
[all …]
A Dcaam_hash.c395 enum caam_status retstatus = CAAM_FAILURE; in do_update_hash() local
455 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_update_hash()
457 if (retstatus != CAAM_NO_ERROR) { in do_update_hash()
471 enum caam_status retstatus = CAAM_FAILURE; in caam_hash_hmac_update() local
559 ret = caam_status_to_tee_result(retstatus); in caam_hash_hmac_update()
575 enum caam_status retstatus = CAAM_FAILURE; in caam_hash_hmac_final() local
653 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_hash_hmac_final()
655 if (retstatus == CAAM_NO_ERROR) { in caam_hash_hmac_final()
708 enum caam_status retstatus = CAAM_FAILURE; in caam_hash_init() local
715 retstatus = CAAM_NO_ERROR; in caam_hash_init()
[all …]
/optee_os/core/drivers/crypto/caam/hal/common/
A Dhal_cfg.c19 enum caam_status retstatus = CAAM_FAILURE; in caam_hal_cfg_get_conf() local
67 retstatus = CAAM_NO_ERROR; in caam_hal_cfg_get_conf()
70 HAL_TRACE("HAL CFG Get CAAM config ret (0x%x)\n", retstatus); in caam_hal_cfg_get_conf()
71 return retstatus; in caam_hal_cfg_get_conf()
/optee_os/core/drivers/crypto/caam/hal/imx_6_7/
A Dhal_jr.c26 enum caam_status retstatus = CAAM_FAILURE; in caam_hal_jr_setowner() local
71 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
81 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
84 return retstatus; in caam_hal_jr_setowner()
/optee_os/core/drivers/crypto/caam/hal/imx_8m/
A Dhal_jr.c26 enum caam_status retstatus = CAAM_FAILURE; in caam_hal_jr_setowner() local
67 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
77 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
80 return retstatus; in caam_hal_jr_setowner()
/optee_os/core/drivers/crypto/caam/hal/imx_8ulp/
A Dhal_jr.c27 enum caam_status retstatus = CAAM_FAILURE; in caam_hal_jr_setowner() local
68 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
78 retstatus = CAAM_NO_ERROR; in caam_hal_jr_setowner()
81 return retstatus; in caam_hal_jr_setowner()
/optee_os/core/drivers/crypto/caam/utils/
A Dutils_dmaobj.c115 enum caam_status retstatus = CAAM_FAILURE; in try_allocate_dmabuf() local
129 retstatus); in try_allocate_dmabuf()
131 if (retstatus == CAAM_NO_ERROR) { in try_allocate_dmabuf()
775 enum caam_status retstatus = CAAM_FAILURE; in caam_dmaobj_output_sgtbuf() local
796 min_length, retstatus); in caam_dmaobj_output_sgtbuf()
797 if (retstatus != CAAM_NO_ERROR) in caam_dmaobj_output_sgtbuf()
1068 enum caam_status retstatus = CAAM_FAILURE; in caam_dmaobj_derive_sgtbuf() local
1346 obj->sgtbuf.number, retstatus); in caam_dmaobj_sgtbuf_build()
1347 if (retstatus != CAAM_NO_ERROR) { in caam_dmaobj_sgtbuf_build()
1377 if (retstatus != CAAM_NO_ERROR) { in caam_dmaobj_sgtbuf_build()
[all …]
A Dutils_sgt.c60 enum caam_status retstatus = CAAM_FAILURE; in caam_sgt_derive() local
89 retstatus = caam_sgtbuf_alloc(sgt); in caam_sgt_derive()
91 retstatus); in caam_sgt_derive()
92 if (retstatus != CAAM_NO_ERROR) in caam_sgt_derive()
93 return retstatus; in caam_sgt_derive()

Completed in 30 milliseconds