Home
last modified time | relevance | path

Searched refs:sec4_sg_bytes (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamhash.c528 * @sec4_sg_bytes: length of dma mapped sec4_sg space
536 int sec4_sg_bytes; member
551 if (edesc->sec4_sg_bytes) in ahash_unmap()
553 edesc->sec4_sg_bytes, DMA_TO_DEVICE); in ahash_unmap()
741 edesc->sec4_sg_bytes = sgsize; in ahash_edesc_add_src()
824 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
865 sec4_sg_bytes = pad_nents * sizeof(struct sec4_sg_entry); in ahash_update_ctx()
879 edesc->sec4_sg_bytes = sec4_sg_bytes; in ahash_update_ctx()
901 sec4_sg_bytes, in ahash_update_ctx()
945 int sec4_sg_bytes; ahash_final_ctx() local
1199 int sec4_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
1317 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; ahash_finup_no_ctx() local
[all...]
H A Dcaampkc.c51 if (edesc->sec4_sg_bytes) in rsa_io_unmap()
52 dma_unmap_single(dev, edesc->sec4_sg_dma, edesc->sec4_sg_bytes, in rsa_io_unmap()
254 int sec4_sg_index, sec4_sg_len = 0, sec4_sg_bytes; in rsa_edesc_alloc() local
311 sec4_sg_bytes = sec4_sg_len * sizeof(struct sec4_sg_entry); in rsa_edesc_alloc()
314 edesc = kzalloc(sizeof(*edesc) + desclen + sec4_sg_bytes, in rsa_edesc_alloc()
338 if (!sec4_sg_bytes) in rsa_edesc_alloc()
345 sec4_sg_bytes, DMA_TO_DEVICE); in rsa_edesc_alloc()
351 edesc->sec4_sg_bytes = sec4_sg_bytes; in rsa_edesc_alloc()
355 edesc->sec4_sg_bytes, in rsa_edesc_alloc()
[all...]
H A Dcaamalg.c882 * @sec4_sg_bytes: length of dma mapped sec4_sg space
893 int sec4_sg_bytes; member
907 * @sec4_sg_bytes: length of dma mapped sec4_sg space
920 int sec4_sg_bytes; member
931 int sec4_sg_bytes) in caam_unmap()
944 if (sec4_sg_bytes) in caam_unmap()
945 dma_unmap_single(dev, sec4_sg_dma, sec4_sg_bytes, in caam_unmap()
955 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in aead_unmap()
967 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in skcipher_unmap()
1029 memcpy(req->iv, (u8 *)edesc->sec4_sg + edesc->sec4_sg_bytes, in skcipher_crypt_done()
927 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, int dst_nents, dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma, int sec4_sg_bytes) caam_unmap() argument
1302 int sec4_sg_index, sec4_sg_len, sec4_sg_bytes; aead_edesc_alloc() local
1608 int dst_sg_idx, sec4_sg_ents, sec4_sg_bytes; skcipher_edesc_alloc() local
[all...]
H A Dcaampkc.h127 * @sec4_sg_bytes : length of h/w link table
139 int sec4_sg_bytes; member
/kernel/linux/linux-6.6/drivers/crypto/caam/
H A Dcaamhash.c537 * @sec4_sg_bytes: length of dma mapped sec4_sg space
545 int sec4_sg_bytes; member
560 if (edesc->sec4_sg_bytes) in ahash_unmap()
562 edesc->sec4_sg_bytes, DMA_TO_DEVICE); in ahash_unmap()
745 edesc->sec4_sg_bytes = sgsize; in ahash_edesc_add_src()
831 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
872 sec4_sg_bytes = pad_nents * sizeof(struct sec4_sg_entry); in ahash_update_ctx()
886 edesc->sec4_sg_bytes = sec4_sg_bytes; in ahash_update_ctx()
908 sec4_sg_bytes, in ahash_update_ctx()
952 int sec4_sg_bytes; ahash_final_ctx() local
1206 int sec4_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
1324 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; ahash_finup_no_ctx() local
[all...]
H A Dcaampkc.c57 if (edesc->sec4_sg_bytes) in rsa_io_unmap()
58 dma_unmap_single(dev, edesc->sec4_sg_dma, edesc->sec4_sg_bytes, in rsa_io_unmap()
261 int sec4_sg_index, sec4_sg_len = 0, sec4_sg_bytes; in rsa_edesc_alloc() local
318 sec4_sg_bytes = sec4_sg_len * sizeof(struct sec4_sg_entry); in rsa_edesc_alloc()
321 edesc = kzalloc(sizeof(*edesc) + desclen + sec4_sg_bytes, flags); in rsa_edesc_alloc()
344 if (!sec4_sg_bytes) in rsa_edesc_alloc()
351 sec4_sg_bytes, DMA_TO_DEVICE); in rsa_edesc_alloc()
357 edesc->sec4_sg_bytes = sec4_sg_bytes; in rsa_edesc_alloc()
361 edesc->sec4_sg_bytes, in rsa_edesc_alloc()
[all...]
H A Dcaamalg.c891 * @sec4_sg_bytes: length of dma mapped sec4_sg space
902 int sec4_sg_bytes; member
916 * @sec4_sg_bytes: length of dma mapped sec4_sg space
929 int sec4_sg_bytes; member
940 int sec4_sg_bytes) in caam_unmap()
953 if (sec4_sg_bytes) in caam_unmap()
954 dma_unmap_single(dev, sec4_sg_dma, sec4_sg_bytes, in caam_unmap()
964 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in aead_unmap()
976 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); in skcipher_unmap()
1014 return PTR_ALIGN((u8 *)edesc->sec4_sg + edesc->sec4_sg_bytes, in skcipher_edesc_iv()
936 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, int dst_nents, dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma, int sec4_sg_bytes) caam_unmap() argument
1318 int sec4_sg_index, sec4_sg_len, sec4_sg_bytes; aead_edesc_alloc() local
1626 int dst_sg_idx, sec4_sg_ents, sec4_sg_bytes; skcipher_edesc_alloc() local
[all...]
H A Dcaampkc.h124 * @sec4_sg_bytes : length of h/w link table
136 int sec4_sg_bytes; member

Completed in 12 milliseconds