Home
last modified time | relevance | path

Searched refs:sgt (Results 1 – 5 of 5) sorted by relevance

/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()
27 sizeof(*sgtbuf->sgt)); in caam_sgt_entries_cache_clean()
49 void caam_sgt_fill_table(struct caamsgtbuf *sgt) in caam_sgt_fill_table() argument
53 SGT_TRACE("Create %d SGT entries", sgt->number); in caam_sgt_fill_table()
55 for (idx = 0; idx < sgt->number - 1; idx++) { in caam_sgt_fill_table()
56 CAAM_SGT_ENTRY(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
57 sgt->buf[idx].length); in caam_sgt_fill_table()
58 sgt_entry_trace(idx, sgt); in caam_sgt_fill_table()
61 CAAM_SGT_ENTRY_FINAL(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
62 sgt->buf[idx].length); in caam_sgt_fill_table()
[all …]
H A Dutils_sgt_v1.c16 const struct caamsgtbuf *sgt __maybe_unused) in sgt_entry_trace()
18 SGT_TRACE("SGT[%d] (%p)", idx, &sgt->sgt[idx]); in sgt_entry_trace()
19 SGT_TRACE("SGT[%d]->data = %p", idx, sgt->buf[idx].data); in sgt_entry_trace()
20 SGT_TRACE("SGT[%d]->length = %zu", idx, sgt->buf[idx].length); in sgt_entry_trace()
21 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
22 SGT_TRACE("SGT[%d]->ptr_ms = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ms); in sgt_entry_trace()
23 SGT_TRACE("SGT[%d]->ptr_ls = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ls); in sgt_entry_trace()
25 sgt->sgt[idx].v1.len_f_e); in sgt_entry_trace()
26 SGT_TRACE("SGT[%d]->offset = %" PRIx32, idx, sgt->sgt[idx].v1.offset); in sgt_entry_trace()
29 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset) in sgt_entry_offset() argument
[all …]
H A Dutils_sgt_v2.c13 const struct caamsgtbuf *sgt __maybe_unused) in sgt_entry_trace()
15 SGT_TRACE("SGT[%d] (%p)", idx, &sgt->sgt[idx]); in sgt_entry_trace()
16 SGT_TRACE("SGT[%d]->data = %p", idx, sgt->buf[idx].data); in sgt_entry_trace()
17 SGT_TRACE("SGT[%d]->length = %zu", idx, sgt->buf[idx].length); in sgt_entry_trace()
18 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
19 SGT_TRACE("SGT[%d]->w1 = %" PRIx64, idx, sgt->sgt[idx].v2.w1); in sgt_entry_trace()
20 SGT_TRACE("SGT[%d]->w2 = %" PRIx64, idx, sgt->sgt[idx].v2.w2); in sgt_entry_trace()
23 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset) in sgt_entry_offset() argument
29 w2 = caam_read_val64(&sgt->v2.w2); in sgt_entry_offset()
48 caam_write_val64(&sgt->v2.w2, w2); in sgt_entry_offset()
[all …]
H A Dutils_dmaobj.c1405 obj->sgtbuf.paddr = virt_to_phys(obj->sgtbuf.sgt); in caam_dmaobj_sgtbuf_build()
/optee_os/core/drivers/crypto/caam/include/
H A Dcaam_utils_sgt.h61 union caamsgt *sgt; /* SGT Array */ member
102 void caam_sgt_set_entry(union caamsgt *sgt, vaddr_t paddr, size_t len,
105 #define CAAM_SGT_ENTRY(sgt, paddr, len) \ argument
106 caam_sgt_set_entry(sgt, paddr, len, 0, false)
107 #define CAAM_SGT_ENTRY_FINAL(sgt, paddr, len) \ argument
108 caam_sgt_set_entry(sgt, paddr, len, 0, true)
118 void caam_sgt_fill_table(struct caamsgtbuf *sgt);
129 enum caam_status caam_sgt_derive(struct caamsgtbuf *sgt,
139 void sgt_entry_trace(unsigned int idx, const struct caamsgtbuf *sgt);
147 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset);