Home
last modified time | relevance | path

Searched refs:cache_operation (Results 1 – 25 of 29) sorted by relevance

12

/optee_os/core/drivers/crypto/aspeed/
H A Dhace_ast2600.c103 cache_operation(TEE_CACHEFLUSH, (void *)data, len); in ast2600_hace_process()
161 cache_operation(TEE_CACHEFLUSH, hctx->digest, HASH_DGT_BUFSZ); in ast2600_hace_init()
284 cache_operation(TEE_CACHEINVALIDATE, hctx->digest, HASH_DGT_BUFSZ); in ast2600_hace_final()
319 cache_operation(TEE_CACHEINVALIDATE, src_hctx->buf, HASH_BLK_BUFSZ); in ast2600_hace_copy_state()
321 cache_operation(TEE_CACHEFLUSH, dst_hctx->buf, HASH_BLK_BUFSZ); in ast2600_hace_copy_state()
323 cache_operation(TEE_CACHEINVALIDATE, src_hctx->digest, HASH_DGT_BUFSZ); in ast2600_hace_copy_state()
325 cache_operation(TEE_CACHEFLUSH, dst_hctx->digest, HASH_DGT_BUFSZ); in ast2600_hace_copy_state()
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_dsa.c125 cache_operation(TEE_CACHECLEAN, outkey->q.data, in get_keypair_domain_params()
131 cache_operation(TEE_CACHECLEAN, outkey->g.data, in get_keypair_domain_params()
137 cache_operation(TEE_CACHECLEAN, outkey->p.data, in get_keypair_domain_params()
193 cache_operation(TEE_CACHECLEAN, outkey->g.data, outkey->g.length); in do_keypriv_conv()
194 cache_operation(TEE_CACHECLEAN, outkey->p.data, outkey->p.length); in do_keypriv_conv()
195 cache_operation(TEE_CACHECLEAN, outkey->q.data, outkey->q.length); in do_keypriv_conv()
255 cache_operation(TEE_CACHECLEAN, outkey->g.data, outkey->g.length); in do_keypub_conv()
256 cache_operation(TEE_CACHECLEAN, outkey->p.data, outkey->p.length); in do_keypub_conv()
257 cache_operation(TEE_CACHECLEAN, outkey->q.data, outkey->q.length); in do_keypub_conv()
258 cache_operation(TEE_CACHECLEAN, outkey->y.data, outkey->y.length); in do_keypub_conv()
[all …]
H A Dcaam_prime_rsa.c443 cache_operation(TEE_CACHECLEAN, (void *)sqrt_value, data->p->length); in do_desc_setup()
735 cache_operation(TEE_CACHEFLUSH, data->p->data, data->p->length); in run_primes()
738 cache_operation(TEE_CACHEFLUSH, data->q->data, data->q->length); in run_primes()
751 cache_operation(TEE_CACHEINVALIDATE, data->p->data, in run_primes()
753 cache_operation(TEE_CACHEINVALIDATE, data->q->data, in run_primes()
761 cache_operation(TEE_CACHEINVALIDATE, data->p->data, in run_primes()
800 cache_operation(TEE_CACHECLEAN, max_n.data, max_n.length); in caam_prime_rsa_gen()
855 cache_operation(TEE_CACHECLEAN, small_prime.data, data->p->length); in caam_prime_rsa_gen()
856 cache_operation(TEE_CACHECLEAN, data->e->data, data->e->length); in caam_prime_rsa_gen()
857 cache_operation(TEE_CACHECLEAN, (void *)all_descs, in caam_prime_rsa_gen()
H A Dcaam_dh.c75 cache_operation(TEE_CACHECLEAN, outkey->p.data, outkey->p.length); in do_keypair_conv_p_g()
85 cache_operation(TEE_CACHECLEAN, outkey->g.data, outkey->g.length); in do_keypair_conv_p_g()
115 cache_operation(TEE_CACHECLEAN, outkey->p.data, outkey->p.length); in do_keypriv_conv()
148 cache_operation(TEE_CACHECLEAN, outkey->y.data, outkey->y.length); in do_keypub_conv()
278 cache_operation(TEE_CACHEFLUSH, caam_dh_key.y.data, in do_gen_keypair()
289 cache_operation(TEE_CACHECLEAN, dh_r.data, dh_r.length); in do_gen_keypair()
344 cache_operation(TEE_CACHEINVALIDATE, caam_dh_key.y.data, in do_gen_keypair()
H A Dcaam_prime_dsa.c495 cache_operation(TEE_CACHECLEAN, desc, DESC_SZBYTES(PRIME_DESC_ENTRIES)); in do_desc_prime_p()
509 cache_operation(TEE_CACHEFLUSH, prime->q->data, prime->q->length); in run_prime_q()
519 cache_operation(TEE_CACHEINVALIDATE, prime->q->data, in run_prime_q()
540 cache_operation(TEE_CACHEFLUSH, prime->p->data, prime->p->length); in run_prime_p()
548 cache_operation(TEE_CACHEINVALIDATE, prime->p->data, in run_prime_p()
656 cache_operation(TEE_CACHEFLUSH, prime->g->data, prime->g->length); in do_generator()
667 cache_operation(TEE_CACHEINVALIDATE, prime->g->data, prime->g->length); in do_generator()
701 cache_operation(TEE_CACHECLEAN, mod_n.data, mod_n.length); in caam_prime_dsa_gen()
729 cache_operation(TEE_CACHEFLUSH, data->p->data, data->p->length); in caam_prime_dsa_gen()
730 cache_operation(TEE_CACHEFLUSH, seed.data, seed.length); in caam_prime_dsa_gen()
[all …]
H A Dcaam_rsa.c145 cache_operation(TEE_CACHECLEAN, outkey->e.data, outkey->e.length); in do_keypub_conv()
153 cache_operation(TEE_CACHECLEAN, outkey->n.data, outkey->n.length); in do_keypub_conv()
300 cache_operation(TEE_CACHECLEAN, outkey->n.data, outkey->n.length); in do_keypair_conv()
706 cache_operation(TEE_CACHECLEAN, genkey.e.data, genkey.e.length); in do_gen_keypair()
710 cache_operation(TEE_CACHEFLUSH, genkey.n.data, genkey.n.length); in do_gen_keypair()
711 cache_operation(TEE_CACHEFLUSH, size_d_gen_val_ptr, sizeof(uint32_t)); in do_gen_keypair()
717 cache_operation(TEE_CACHEINVALIDATE, &genkey.n, in do_gen_keypair()
720 cache_operation(TEE_CACHEINVALIDATE, size_d_gen_val_ptr, in do_gen_keypair()
1408 cache_operation(TEE_CACHEFLUSH, size_msg.data, size_msg.length); in do_caam_decrypt()
1588 cache_operation(TEE_CACHEINVALIDATE, size_msg.data, in do_caam_decrypt()
H A Dcaam_ecc.c85 cache_operation(TEE_CACHECLEAN, outkey->xy.data, outkey->xy.length); in do_keypub_conv()
333 cache_operation(TEE_CACHEFLUSH, xy.data, xy.length); in do_gen_keypair()
339 cache_operation(TEE_CACHEINVALIDATE, xy.data, xy.length); in do_gen_keypair()
747 cache_operation(TEE_CACHEFLUSH, tmp.data, tmp.length); in do_verify()
748 cache_operation(TEE_CACHEFLUSH, ecckey.xy.data, ecckey.xy.length); in do_verify()
/optee_os/core/drivers/crypto/caam/blob/
H A Dcaam_blob.c49 cache_operation(TEE_CACHEFLUSH, buf.data, buf.length); in caam_blob_mkvb_init()
58 cache_operation(TEE_CACHEINVALIDATE, buf.data, MKVB_SIZE); in caam_blob_mkvb_init()
H A Dcaam_dek.c98 cache_operation(TEE_CACHECLEAN, (void *)payload, payload_size); in caam_dek_generate()
/optee_os/core/drivers/
H A Dzynqmp_pm.c141 cache_operation(TEE_CACHECLEAN, tmpbuf, buf_sz); in efuse_op()
142 cache_operation(TEE_CACHECLEAN, efuse_op, sizeof(*efuse_op)); in efuse_op()
158 res = cache_operation(TEE_CACHEINVALIDATE, tmpbuf, buf_sz); in efuse_op()
H A Dversal_mbox.c221 cache_operation(TEE_CACHEFLUSH, cmd->ibuf[i].mem.buf, in versal_mbox_write_req()
228 cache_operation(TEE_CACHEFLUSH, ipi.req, sizeof(cmd->data)); in versal_mbox_write_req()
240 cache_operation(TEE_CACHEINVALIDATE, ipi.rsp, sizeof(rsp->data)); in versal_mbox_read_rsp()
267 cache_operation(TEE_CACHEINVALIDATE, in versal_mbox_read_rsp()
/optee_os/core/drivers/imx/dcp/
H A Ddcp.c148 cache_operation(TEE_CACHEFLUSH, &dcp_data->desc, in dcp_run()
449 cache_operation(TEE_CACHECLEAN, data->payload.data, in dcp_cipher_do_update()
451 cache_operation(TEE_CACHECLEAN, input.data, size); in dcp_cipher_do_update()
452 cache_operation(TEE_CACHEINVALIDATE, output.data, size); in dcp_cipher_do_update()
458 cache_operation(TEE_CACHEINVALIDATE, output.data, size); in dcp_cipher_do_update()
563 cache_operation(TEE_CACHECLEAN, input.data, size_todo); in dcp_sha_do_update()
627 cache_operation(TEE_CACHECLEAN, hashdata->ctx.data, in dcp_sha_do_final()
629 cache_operation(TEE_CACHEINVALIDATE, payload.data, in dcp_sha_do_final()
635 cache_operation(TEE_CACHEINVALIDATE, payload.data, in dcp_sha_do_final()
/optee_os/core/include/tee/
H A Dcache.h10 TEE_Result cache_operation(enum utee_cache_operation op, void *va, size_t len);
/optee_os/core/drivers/crypto/caam/hash/
H A Dcaam_hash.c124 cache_operation(TEE_CACHECLEAN, key->data, key->length); in do_desc_load_key()
326 cache_operation(TEE_CACHEFLUSH, ctx->ctx.data, ctx->ctx.length); in caam_hash_hmac_allocate()
432 cache_operation(TEE_CACHECLEAN, ctx->blockbuf.buf.data, in do_update_hash()
448 cache_operation(TEE_CACHEINVALIDATE, ctx->ctx.data, in do_update_hash()
620 cache_operation(TEE_CACHEINVALIDATE, ctx->ctx.data, in caam_hash_hmac_final()
641 cache_operation(TEE_CACHECLEAN, ctx->blockbuf.buf.data, in caam_hash_hmac_final()
684 cache_operation(TEE_CACHEINVALIDATE, src->ctx.data, in caam_hash_hmac_copy_state()
688 cache_operation(TEE_CACHECLEAN, dst->ctx.data, dst->ctx.length); in caam_hash_hmac_copy_state()
H A Dcaam_hash_mac.c186 cache_operation(TEE_CACHEFLUSH, hmac_ctx->key.data, in do_hmac_init()
/optee_os/core/pta/tests/
H A Dinvoke.c282 if (cache_operation(TEE_CACHEFLUSH, dst, sz) != TEE_SUCCESS) in test_inject_sdp()
287 if (cache_operation(TEE_CACHEFLUSH, dst, sz) != TEE_SUCCESS) in test_inject_sdp()
319 if (cache_operation(TEE_CACHEFLUSH, buf, sz) != TEE_SUCCESS) in test_transform_sdp()
325 if (cache_operation(TEE_CACHEFLUSH, buf, sz) != TEE_SUCCESS) in test_transform_sdp()
364 if (cache_operation(TEE_CACHEFLUSH, dst, sz) != TEE_SUCCESS) in test_dump_sdp()
369 if (cache_operation(TEE_CACHEFLUSH, dst, sz) != TEE_SUCCESS) in test_dump_sdp()
/optee_os/core/drivers/crypto/caam/
H A Dcaam_jr.c139 cache_operation(TEE_CACHEFLUSH, jr_priv->inrings, in do_jr_alloc()
141 cache_operation(TEE_CACHEFLUSH, jr_priv->outrings, in do_jr_alloc()
215 cache_operation(TEE_CACHEINVALIDATE, jr_out, in do_jr_dequeue()
362 cache_operation(TEE_CACHECLEAN, cur_inrings, in do_jr_enqueue()
373 cache_operation(TEE_CACHECLEAN, jobctx->desc, in do_jr_enqueue()
H A Dcaam_rng.c94 cache_operation(TEE_CACHEFLUSH, rng_data, len); in do_rng_read()
123 cache_operation(TEE_CACHEINVALIDATE, rng_data, len); in do_rng_read()
H A Dcaam_key.c273 cache_operation(op, key->buf.data, key->buf.length); in caam_key_cache_op()
383 cache_operation(TEE_CACHECLEAN, key_blob_modifier, in caam_key_operation_blob()
666 cache_operation(TEE_CACHEFLUSH, input_buf.data, input_buf.length); in caam_key_black_encapsulation()
/optee_os/core/arch/arm/tee/
H A Dsvc_cache.c37 return cache_operation(op, va, len); in syscall_cache_operation()
H A Dcache.c18 TEE_Result cache_operation(enum utee_cache_operation op, void *va, size_t len) in cache_operation() function
/optee_os/core/drivers/crypto/caam/utils/
H A Dutils_sgt.c25 cache_operation(TEE_CACHECLEAN, (void *)sgtbuf->sgt, in caam_sgt_entries_cache_clean()
43 cache_operation(op, (void *)insgt->buf[idx].data, in caam_sgt_cache_op()
/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae.c421 cache_operation(TEE_CACHECLEAN, caam_ctx->initial_ctx.data, in add_initial_context()
465 cache_operation(TEE_CACHECLEAN, caam_ctx->ctx.data, in store_context()
520 cache_operation(TEE_CACHECLEAN, caam_ctx->nonce.data, in caam_ae_do_oneshot()
557 cache_operation(TEE_CACHEINVALIDATE, caam_ctx->ctx.data, in caam_ae_do_oneshot()
609 cache_operation(TEE_CACHECLEAN, caam_ctx->nonce.data, in caam_ae_do_init()
634 cache_operation(TEE_CACHEINVALIDATE, caam_ctx->ctx.data, in caam_ae_do_init()
718 cache_operation(TEE_CACHEINVALIDATE, caam_ctx->ctx.data, in caam_ae_do_block()
/optee_os/core/drivers/crypto/ele/
H A Dmemutils.c15 cache_operation(op, ele_buf->data, ele_buf->size); in imx_ele_buf_cache_op()
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher.c195 cache_operation(TEE_CACHEINVALIDATE, ctx->ctx.data, in caam_cipher_block()
367 cache_operation(TEE_CACHEINVALIDATE, src->ctx.data, in caam_cipher_copy_state()
495 cache_operation(TEE_CACHEFLUSH, cipherdata->tweak.data, in caam_cipher_initialize()

12