Searched refs:sec4_sg_bytes (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/crypto/caam/ |
H A D | caamhash.c | 590 * @sec4_sg_bytes: length of dma mapped sec4_sg space 599 int sec4_sg_bytes; member in struct:ahash_edesc 614 if (edesc->sec4_sg_bytes) ahash_unmap() 616 edesc->sec4_sg_bytes, DMA_TO_DEVICE); ahash_unmap() 789 int src_nents, sec4_sg_bytes, sec4_sg_src_index; ahash_update_ctx() local 803 sec4_sg_bytes = (sec4_sg_src_index + src_nents) * ahash_update_ctx() 811 sec4_sg_bytes, GFP_DMA | flags); ahash_update_ctx() 820 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_update_ctx() 855 sec4_sg_bytes, ahash_update_ctx() 912 int sec4_sg_bytes, sec4_sg_src_index; ahash_final_ctx() local 919 sec4_sg_bytes = sec4_sg_src_index * sizeof(struct sec4_sg_entry); ahash_final_ctx() 923 sec4_sg_bytes, GFP_DMA | flags); ahash_final_ctx() 933 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_final_ctx() 949 sec4_sg_bytes, DMA_TO_DEVICE); ahash_final_ctx() 995 int sec4_sg_bytes, sec4_sg_src_index; ahash_finup_ctx() local 1005 sec4_sg_bytes = (sec4_sg_src_index + src_nents) * ahash_finup_ctx() 1010 sec4_sg_bytes, GFP_DMA | flags); ahash_finup_ctx() 1022 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_finup_ctx() 1039 sec4_sg_bytes, DMA_TO_DEVICE); ahash_finup_ctx() 1081 int src_nents, sec4_sg_bytes; ahash_digest() local 1092 sec4_sg_bytes = src_nents * sizeof(struct sec4_sg_entry); ahash_digest() 1095 edesc = kmalloc(sizeof(struct ahash_edesc) + sec4_sg_bytes + ahash_digest() 1103 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_digest() 1114 sec4_sg_bytes, DMA_TO_DEVICE); ahash_digest() 1176 edesc->sec4_sg_bytes = 0; ahash_final_no_ctx() 1228 int sec4_sg_bytes, src_nents; ahash_update_no_ctx() local 1242 sec4_sg_bytes = (1 + src_nents) * ahash_update_no_ctx() 1250 sec4_sg_bytes, GFP_DMA | flags); ahash_update_no_ctx() 1259 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_update_no_ctx() 1281 sec4_sg_bytes, ahash_update_no_ctx() 1343 int sec4_sg_bytes, sec4_sg_src_index, src_nents; ahash_finup_no_ctx() local 1352 sec4_sg_bytes = (sec4_sg_src_index + src_nents) * ahash_finup_no_ctx() 1357 sec4_sg_bytes, GFP_DMA | flags); ahash_finup_no_ctx() 1369 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_finup_no_ctx() 1381 sec4_sg_bytes, DMA_TO_DEVICE); ahash_finup_no_ctx() 1428 int sec4_sg_bytes, src_nents; ahash_update_first() local 1445 sec4_sg_bytes = src_nents * sizeof(struct sec4_sg_entry); ahash_update_first() 1452 sec4_sg_bytes, GFP_DMA | flags); ahash_update_first() 1461 edesc->sec4_sg_bytes = sec4_sg_bytes; ahash_update_first() 1471 sec4_sg_bytes, ahash_update_first()
|
H A D | caamalg.c | 2088 * @sec4_sg_bytes: length of dma mapped sec4_sg space 2100 int sec4_sg_bytes; member in struct:aead_edesc 2114 * @sec4_sg_bytes: length of dma mapped sec4_sg space 2124 int sec4_sg_bytes; member in struct:ablkcipher_edesc 2134 int sec4_sg_bytes) caam_unmap() 2148 if (sec4_sg_bytes) caam_unmap() 2149 dma_unmap_single(dev, sec4_sg_dma, sec4_sg_bytes, caam_unmap() 2166 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); aead_unmap() 2179 edesc->sec4_sg_dma, edesc->sec4_sg_bytes); ablkcipher_unmap() 2264 if (!err && edesc->sec4_sg_bytes) { aead_decrypt_done() 2627 int sec4_sg_index, sec4_sg_len = 0, sec4_sg_bytes; aead_edesc_alloc() local 2691 sec4_sg_bytes = sec4_sg_len * sizeof(struct sec4_sg_entry); aead_edesc_alloc() 2695 sec4_sg_bytes, GFP_DMA | flags); aead_edesc_alloc() 2708 edesc->sec4_sg_bytes = sec4_sg_bytes; aead_edesc_alloc() 2746 sec4_sg_bytes, DMA_TO_DEVICE); aead_edesc_alloc() 2855 int sec4_sg_index, sec4_sg_len = 0, sec4_sg_bytes; aead_giv_edesc_alloc() local 2931 sec4_sg_bytes = sec4_sg_len * sizeof(struct sec4_sg_entry); aead_giv_edesc_alloc() 2935 sec4_sg_bytes, GFP_DMA | flags); aead_giv_edesc_alloc() 2948 edesc->sec4_sg_bytes = sec4_sg_bytes; aead_giv_edesc_alloc() 2993 sec4_sg_bytes, DMA_TO_DEVICE); aead_giv_edesc_alloc() 3065 int src_nents, dst_nents = 0, sec4_sg_bytes; ablkcipher_edesc_alloc() local 3103 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * ablkcipher_edesc_alloc() 3108 sec4_sg_bytes, GFP_DMA | flags); ablkcipher_edesc_alloc() 3118 edesc->sec4_sg_bytes = sec4_sg_bytes; ablkcipher_edesc_alloc() 3136 sec4_sg_bytes, DMA_TO_DEVICE); ablkcipher_edesc_alloc() 3147 sec4_sg_bytes, 1); ablkcipher_edesc_alloc() 3244 int src_nents, dst_nents = 0, sec4_sg_bytes; ablkcipher_giv_edesc_alloc() local 3282 sec4_sg_bytes = ((iv_contig ? 0 : 1) + src_nents + dst_nents) * ablkcipher_giv_edesc_alloc() 3287 sec4_sg_bytes, GFP_DMA | flags); ablkcipher_giv_edesc_alloc() 3297 edesc->sec4_sg_bytes = sec4_sg_bytes; ablkcipher_giv_edesc_alloc() 3316 sec4_sg_bytes, DMA_TO_DEVICE); ablkcipher_giv_edesc_alloc() 3327 sec4_sg_bytes, 1); ablkcipher_giv_edesc_alloc() 2130 caam_unmap(struct device *dev, struct scatterlist *src, struct scatterlist *dst, int src_nents, bool src_chained, int dst_nents, bool dst_chained, dma_addr_t iv_dma, int ivsize, dma_addr_t sec4_sg_dma, int sec4_sg_bytes) caam_unmap() argument
|
Completed in 141 milliseconds