Home
last modified time | relevance | path

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

/optee_os/core/drivers/crypto/caam/
H A Dcaam_jr.c34 struct caam_jobctx *jobctx; /* Caller job context object */ member
184 struct caam_jobctx *jobctx = NULL; in do_jr_dequeue() local
237 jobctx = caller->jobctx; in do_jr_dequeue()
238 jobctx->status = caam_read_jobstatus(jr_out); in do_jr_dequeue()
246 caller->job_id, (vaddr_t)jobctx); in do_jr_dequeue()
249 caller->jobctx = NULL; in do_jr_dequeue()
273 if (found && jobctx->callback) { in do_jr_dequeue()
275 jobctx->callback(jobctx); in do_jr_dequeue()
291 static enum caam_status do_jr_enqueue(struct caam_jobctx *jobctx, in do_jr_enqueue() argument
338 caller->jobctx = jobctx; in do_jr_enqueue()
[all …]
H A Dcaam_rng.c75 struct caam_jobctx jobctx = { }; in do_rng_read() local
119 jobctx.desc = desc; in do_rng_read()
122 if (!caam_jr_enqueue(&jobctx, NULL)) { in do_rng_read()
127 RNG_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_rng_read()
128 ret = job_status_to_tee_result(jobctx.status); in do_rng_read()
209 struct caam_jobctx jobctx = {}; in caam_rng_instantiation() local
264 jobctx.desc = desc; in caam_rng_instantiation()
291 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_rng_instantiation()
299 RNG_TRACE("RNG Job status 0x%08" PRIx32, jobctx.status); in caam_rng_instantiation()
300 if ((JRSTA_SRC_GET(jobctx.status) != JRSTA_SRC(CCB)) || in caam_rng_instantiation()
[all …]
H A Dcaam_key.c281 struct caam_jobctx jobctx = { }; in caam_key_operation_blob() local
388 jobctx.desc = desc; in caam_key_operation_blob()
389 status = caam_jr_enqueue(&jobctx, NULL); in caam_key_operation_blob()
400 KEY_TRACE("CAAM Blob Status 0x%08" PRIx32 "", jobctx.status); in caam_key_operation_blob()
651 struct caam_jobctx jobctx = { }; in caam_key_black_encapsulation() local
711 jobctx.desc = desc; in caam_key_black_encapsulation()
712 status = caam_jr_enqueue(&jobctx, NULL); in caam_key_black_encapsulation()
715 jobctx.status); in caam_key_black_encapsulation()
/optee_os/core/drivers/crypto/caam/mp/
H A Dcaam_mp.c52 struct caam_jobctx jobctx = { }; in do_mppriv_gen() local
78 jobctx.desc = desc; in do_mppriv_gen()
79 ret = caam_jr_enqueue(&jobctx, NULL); in do_mppriv_gen()
82 MP_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_mppriv_gen()
110 struct caam_jobctx jobctx = { }; in caam_mp_export_publickey() local
158 jobctx.desc = desc; in caam_mp_export_publickey()
159 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_mp_export_publickey()
170 MP_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in caam_mp_export_publickey()
171 ret = job_status_to_tee_result(jobctx.status); in caam_mp_export_publickey()
186 struct caam_jobctx jobctx = { }; in caam_mp_sign() local
[all …]
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_math.c27 struct caam_jobctx jobctx = { }; in do_xor_mod_n() local
87 jobctx.desc = desc; in do_xor_mod_n()
88 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_xor_mod_n()
95 RSA_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_xor_mod_n()
96 ret = job_status_to_tee_result(jobctx.status); in do_xor_mod_n()
H A Dcaam_ecc.c261 struct caam_jobctx jobctx = { }; in do_gen_keypair() local
331 jobctx.desc = desc; in do_gen_keypair()
335 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_gen_keypair()
361 ECC_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_gen_keypair()
362 ret = job_status_to_tee_result(jobctx.status); in do_gen_keypair()
443 struct caam_jobctx jobctx = { }; in do_sign() local
586 jobctx.desc = desc; in do_sign()
588 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_sign()
598 ECC_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_sign()
599 ret = job_status_to_tee_result(jobctx.status); in do_sign()
[all …]
H A Dcaam_dh.c225 struct caam_jobctx jobctx = { }; in do_gen_keypair() local
338 memset(&jobctx, 0, sizeof(jobctx)); in do_gen_keypair()
339 jobctx.desc = desc; in do_gen_keypair()
340 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_gen_keypair()
375 DH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_gen_keypair()
376 ret = job_status_to_tee_result(jobctx.status); in do_gen_keypair()
401 struct caam_jobctx jobctx = { }; in do_shared_secret() local
482 jobctx.desc = desc; in do_shared_secret()
484 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_shared_secret()
492 DH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_shared_secret()
[all …]
H A Dcaam_dsa.c380 struct caam_jobctx jobctx = { }; in do_gen_keypair() local
458 jobctx.desc = desc; in do_gen_keypair()
459 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_gen_keypair()
481 DSA_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_gen_keypair()
482 ret = job_status_to_tee_result(jobctx.status); in do_gen_keypair()
507 struct caam_jobctx jobctx = { }; in do_sign() local
618 jobctx.desc = desc; in do_sign()
620 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_sign()
631 DSA_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_sign()
632 ret = job_status_to_tee_result(jobctx.status); in do_sign()
[all …]
H A Dcaam_prime_dsa.c507 struct caam_jobctx jobctx = { }; in run_prime_q() local
511 jobctx.desc = desc; in run_prime_q()
512 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_prime_q()
516 jobctx.status, retstatus); in run_prime_q()
537 struct caam_jobctx jobctx = { }; in run_prime_p() local
542 jobctx.desc = desc; in run_prime_p()
544 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_prime_p()
557 if (JRSTA_GET_HALT_USER(jobctx.status) != in run_prime_p()
559 JRSTA_GET_HALT_USER(jobctx.status) != in run_prime_p()
562 jobctx.status); in run_prime_p()
[all …]
H A Dcaam_rsa.c529 struct caam_jobctx jobctx = { }; in do_gen_keypair() local
703 jobctx.desc = desc; in do_gen_keypair()
713 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_gen_keypair()
751 RSA_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_gen_keypair()
752 ret = job_status_to_tee_result(jobctx.status); in do_gen_keypair()
1233 struct caam_jobctx jobctx = { }; in do_caam_encrypt() local
1299 jobctx.desc = desc; in do_caam_encrypt()
1300 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_caam_encrypt()
1309 RSA_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_caam_encrypt()
1310 ret = job_status_to_tee_result(jobctx.status); in do_caam_encrypt()
[all …]
H A Dcaam_prime_rsa.c733 struct caam_jobctx jobctx = { }; in run_primes() local
740 jobctx.desc = desc; in run_primes()
741 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_primes()
748 RSA_TRACE("Check Prime Q Status 0x%08" PRIx32, jobctx.status); in run_primes()
750 if (JRSTA_GET_HALT_USER(jobctx.status) == STATUS_GOOD_Q) { in run_primes()
766 RSA_TRACE("Prime Status 0x%08" PRIx32, jobctx.status); in run_primes()
/optee_os/core/drivers/crypto/caam/hash/
H A Dcaam_hash_mac.c72 struct caam_jobctx jobctx = { }; in do_reduce_key() local
99 jobctx.desc = desc; in do_reduce_key()
100 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_reduce_key()
103 HASH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_reduce_key()
132 struct caam_jobctx jobctx = { }; in do_hmac_init() local
189 jobctx.desc = desc; in do_hmac_init()
190 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_hmac_init()
198 HASH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_hmac_init()
199 ret = job_status_to_tee_result(jobctx.status); in do_hmac_init()
H A Dcaam_hash.c397 struct caam_jobctx jobctx = { }; in do_update_hash() local
454 jobctx.desc = desc; in do_update_hash()
455 retstatus = caam_jr_enqueue(&jobctx, NULL); in do_update_hash()
458 HASH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in do_update_hash()
459 return job_status_to_tee_result(jobctx.status); in do_update_hash()
577 struct caam_jobctx jobctx = { }; in caam_hash_hmac_final() local
652 jobctx.desc = desc; in caam_hash_hmac_final()
653 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_hash_hmac_final()
662 HASH_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in caam_hash_hmac_final()
663 ret = job_status_to_tee_result(jobctx.status); in caam_hash_hmac_final()
/optee_os/core/drivers/crypto/caam/blob/
H A Dcaam_blob.c25 struct caam_jobctx jobctx = { }; in caam_blob_mkvb_init() local
51 jobctx.desc = desc; in caam_blob_mkvb_init()
52 res = caam_jr_enqueue(&jobctx, NULL); in caam_blob_mkvb_init()
56 BLOB_TRACE("MKVB failed: Job status %#"PRIx32, jobctx.status); in caam_blob_mkvb_init()
H A Dcaam_dek.c38 struct caam_jobctx jobctx = { }; in caam_dek_generate() local
101 jobctx.desc = desc; in caam_dek_generate()
102 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_dek_generate()
105 BLOB_TRACE("CAAM Status 0x%08" PRIx32 "", jobctx.status); in caam_dek_generate()
/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae.c484 struct caam_jobctx jobctx = { }; in caam_ae_do_oneshot() local
548 jobctx.desc = desc; in caam_ae_do_oneshot()
549 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_ae_do_oneshot()
552 retstatus, jobctx.status); in caam_ae_do_oneshot()
574 struct caam_jobctx jobctx = { }; in caam_ae_do_init() local
625 jobctx.desc = desc; in caam_ae_do_init()
626 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_ae_do_init()
629 retstatus, jobctx.status); in caam_ae_do_init()
657 struct caam_jobctx jobctx = { }; in caam_ae_do_block() local
708 jobctx.desc = desc; in caam_ae_do_block()
[all …]
/optee_os/core/drivers/crypto/caam/include/
H A Dcaam_jr.h96 enum caam_status caam_jr_enqueue(struct caam_jobctx *jobctx, uint32_t *job_id);
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher_mac.c302 struct caam_jobctx jobctx = { }; in run_cmac_desc() local
399 jobctx.desc = desc; in run_cmac_desc()
400 retstatus = caam_jr_enqueue(&jobctx, NULL); in run_cmac_desc()
405 CIPHER_TRACE("CAAM Status 0x%08" PRIx32, jobctx.status); in run_cmac_desc()
406 ret = job_status_to_tee_result(jobctx.status); in run_cmac_desc()
H A Dcaam_cipher.c140 struct caam_jobctx jobctx = { }; in caam_cipher_block() local
201 jobctx.desc = desc; in caam_cipher_block()
202 retstatus = caam_jr_enqueue(&jobctx, NULL); in caam_cipher_block()
206 retstatus, jobctx.status); in caam_cipher_block()