Searched refs:sgtbuf (Results 1 – 11 of 11) sorted by relevance
| /optee_os/core/drivers/crypto/caam/ |
| H A D | caam_desc.c | 120 if (data->sgtbuf.sgt_type) in caam_desc_add_dmaobj() 126 op_length = FIFO_LOAD_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 132 op_length = STORE_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 136 op_length = FIFO_STORE_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 142 op_length = KEY_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 147 op_length = SEQ_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 155 if (op_length == data->sgtbuf.length) in caam_desc_add_dmaobj() 161 caam_desc_add_ptr(desc, data->sgtbuf.paddr); in caam_desc_add_dmaobj() 163 if (op_length != data->sgtbuf.length) in caam_desc_add_dmaobj() 164 caam_desc_add_word(desc, data->sgtbuf.length); in caam_desc_add_dmaobj()
|
| /optee_os/core/drivers/crypto/caam/utils/ |
| H A D | utils_dmaobj.c | 193 obj->sgtbuf.length += dma->length; in add_sgtdata_entry() 311 if (!obj->sgtbuf.length) in dmaobj_cache_operation() 314 if (obj->sgtbuf.sgt_type) in dmaobj_cache_operation() 315 caam_sgt_cache_op(op, &obj->sgtbuf, obj->sgtbuf.length); in dmaobj_cache_operation() 316 else if (!obj->sgtbuf.buf->nocache) in dmaobj_cache_operation() 317 cache_operation(op, obj->sgtbuf.buf->data, obj->sgtbuf.length); in dmaobj_cache_operation() 600 struct caambuf *sgtbuf = &obj->sgtbuf.buf[index]; in entry_sgtbuf_dmabuf() local 606 sgtbuf->data = dmabuf->buf.data + dmabuf->buf.length; in entry_sgtbuf_dmabuf() 607 sgtbuf->length = MIN(dmabuf->remind, entry->origbuf.length - off); in entry_sgtbuf_dmabuf() 608 sgtbuf->paddr = dmabuf->buf.paddr + dmabuf->buf.length; in entry_sgtbuf_dmabuf() [all …]
|
| H A D | utils_sgt.c | 23 static void caam_sgt_entries_cache_clean(const struct caamsgtbuf *sgtbuf) in caam_sgt_entries_cache_clean() argument 25 cache_operation(TEE_CACHECLEAN, (void *)sgtbuf->sgt, in caam_sgt_entries_cache_clean() 26 ROUNDUP(sgtbuf->number, CFG_CAAM_SGT_ALIGN) * in caam_sgt_entries_cache_clean() 27 sizeof(*sgtbuf->sgt)); in caam_sgt_entries_cache_clean()
|
| /optee_os/core/drivers/crypto/caam/mp/ |
| H A D | caam_mp.c | 134 if (reskey.sgtbuf.sgt_type) in caam_mp_export_publickey() 147 caam_desc_add_ptr(desc, reskey.sgtbuf.paddr); in caam_mp_export_publickey() 148 caam_desc_add_word(desc, reskey.sgtbuf.length); in caam_mp_export_publickey() 249 if (sign_c.sgtbuf.sgt_type) in caam_mp_sign() 258 if (sign_d.sgtbuf.sgt_type) in caam_mp_sign() 265 if (msg_input.sgtbuf.sgt_type) in caam_mp_sign() 278 caam_desc_add_ptr(desc, msg_input.sgtbuf.paddr); in caam_mp_sign() 280 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in caam_mp_sign() 281 caam_desc_add_ptr(desc, sign_d.sgtbuf.paddr); in caam_mp_sign() 282 caam_desc_add_word(desc, msg_input.sgtbuf.length); in caam_mp_sign()
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_ecc.c | 498 if (msg.sgtbuf.sgt_type) in do_sign() 518 if (sign_c.sgtbuf.sgt_type) in do_sign() 527 if (sign_d.sgtbuf.sgt_type) in do_sign() 540 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign() 542 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign() 544 caam_desc_add_ptr(desc, sign_d.sgtbuf.paddr); in do_sign() 679 if (msg.sgtbuf.sgt_type) in do_verify() 694 if (sign_c.sgtbuf.sgt_type) in do_verify() 703 if (sign_d.sgtbuf.sgt_type) in do_verify() 723 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify() [all …]
|
| H A D | caam_dsa.c | 538 if (msg.sgtbuf.sgt_type) in do_sign() 560 if (sign_c.sgtbuf.sgt_type) in do_sign() 569 if (sign_d.sgtbuf.sgt_type) in do_sign() 590 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign() 592 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign() 594 caam_desc_add_ptr(desc, sign_d.sgtbuf.paddr); in do_sign() 691 if (msg.sgtbuf.sgt_type) in do_verify() 706 if (sign_c.sgtbuf.sgt_type) in do_verify() 715 if (sign_d.sgtbuf.sgt_type) in do_verify() 743 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify() [all …]
|
| H A D | caam_rsa.c | 1266 if (cipher.sgtbuf.sgt_type) in do_caam_encrypt() 1277 if (msg.sgtbuf.sgt_type) in do_caam_encrypt() 1287 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_encrypt() 1288 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_encrypt() 1397 if (msg.sgtbuf.sgt_type) in do_caam_decrypt() 1415 if (cipher.sgtbuf.sgt_type) in do_caam_decrypt() 1481 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_decrypt() 1482 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_decrypt() 1493 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_decrypt() 1494 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_decrypt() [all …]
|
| H A D | caam_dh.c | 425 if (secret.sgtbuf.sgt_type) in do_shared_secret() 461 caam_desc_add_ptr(desc, secret.sgtbuf.paddr); in do_shared_secret()
|
| /optee_os/core/drivers/crypto/caam/include/ |
| H A D | caam_utils_dmaobj.h | 23 struct caamsgtbuf sgtbuf; member
|
| /optee_os/core/drivers/crypto/caam/hash/ |
| H A D | caam_hash.c | 539 src.sgtbuf.length = size_done; in caam_hash_hmac_update()
|
| /optee_os/core/drivers/crypto/caam/cipher/ |
| H A D | caam_cipher_mac.c | 513 src.sgtbuf.length = size_done; in do_update_cmac()
|