Searched refs:sgtbuf (Results 1 – 9 of 9) sorted by relevance
/optee_os-3.20.0/core/drivers/crypto/caam/ |
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() 146 op_length = SEQ_LENGTH(data->sgtbuf.length); in caam_desc_add_dmaobj() 154 if (op_length == data->sgtbuf.length) in caam_desc_add_dmaobj() 160 caam_desc_add_ptr(desc, data->sgtbuf.paddr); in caam_desc_add_dmaobj() 162 if (op_length != data->sgtbuf.length) in caam_desc_add_dmaobj() 163 caam_desc_add_word(desc, data->sgtbuf.length); in caam_desc_add_dmaobj()
|
/optee_os-3.20.0/core/drivers/crypto/caam/utils/ |
A D | utils_dmaobj.c | 315 caam_sgt_cache_op(op, &obj->sgtbuf, obj->sgtbuf.length); 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 614 memcpy(sgtbuf->data, &entry->origbuf.data[off], sgtbuf->length); in entry_sgtbuf_dmabuf() 638 struct caambuf *sgtbuf = &obj->sgtbuf.buf[index]; in entry_sgtbuf() local 641 memcpy(sgtbuf, &entry->origbuf, sizeof(*sgtbuf)); in entry_sgtbuf() 642 sgtbuf->data += off; in entry_sgtbuf() 646 DMAOBJ_TRACE("DMA buffer %p - %zu", sgtbuf->data, sgtbuf->length); in entry_sgtbuf() 1092 retstatus = caam_sgt_derive(&obj->sgtbuf, &from->sgtbuf, offset, in caam_dmaobj_derive_sgtbuf() 1401 obj->sgtbuf.paddr = virt_to_phys(obj->sgtbuf.sgt); in caam_dmaobj_sgtbuf_build() [all …]
|
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-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | caam_ecc.c | 371 if (msg.sgtbuf.sgt_type) in do_sign() 393 if (sign_c.sgtbuf.sgt_type) in do_sign() 402 if (sign_d.sgtbuf.sgt_type) in do_sign() 415 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign() 417 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign() 419 caam_desc_add_ptr(desc, sign_d.sgtbuf.paddr); in do_sign() 505 if (msg.sgtbuf.sgt_type) in do_verify() 520 if (sign_c.sgtbuf.sgt_type) in do_verify() 529 if (sign_d.sgtbuf.sgt_type) in do_verify() 549 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify() [all …]
|
A D | caam_dsa.c | 522 if (msg.sgtbuf.sgt_type) in do_sign() 544 if (sign_c.sgtbuf.sgt_type) in do_sign() 553 if (sign_d.sgtbuf.sgt_type) in do_sign() 574 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_sign() 576 caam_desc_add_ptr(desc, sign_c.sgtbuf.paddr); in do_sign() 578 caam_desc_add_ptr(desc, sign_d.sgtbuf.paddr); in do_sign() 662 if (msg.sgtbuf.sgt_type) in do_verify() 677 if (sign_c.sgtbuf.sgt_type) in do_verify() 686 if (sign_d.sgtbuf.sgt_type) in do_verify() 714 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_verify() [all …]
|
A D | caam_rsa.c | 1199 if (cipher.sgtbuf.sgt_type) in do_caam_encrypt() 1210 if (msg.sgtbuf.sgt_type) in do_caam_encrypt() 1220 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_encrypt() 1221 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_encrypt() 1299 if (msg.sgtbuf.sgt_type) in do_caam_decrypt() 1317 if (cipher.sgtbuf.sgt_type) in do_caam_decrypt() 1369 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_decrypt() 1370 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_decrypt() 1381 caam_desc_add_ptr(desc, cipher.sgtbuf.paddr); in do_caam_decrypt() 1382 caam_desc_add_ptr(desc, msg.sgtbuf.paddr); in do_caam_decrypt() [all …]
|
A D | caam_dh.c | 409 if (secret.sgtbuf.sgt_type) in do_shared_secret() 445 caam_desc_add_ptr(desc, secret.sgtbuf.paddr); in do_shared_secret()
|
/optee_os-3.20.0/core/drivers/crypto/caam/include/ |
A D | caam_utils_dmaobj.h | 23 struct caamsgtbuf sgtbuf; member
|
/optee_os-3.20.0/core/drivers/crypto/caam/hash/ |
A D | caam_hash.c | 539 src.sgtbuf.length = size_done; in caam_hash_hmac_update()
|
Completed in 14 milliseconds