• Home
  • Raw
  • Download

Lines Matching refs:src_nents

888 	int src_nents;  member
914 int src_nents; member
927 struct scatterlist *dst, int src_nents, in caam_unmap() argument
933 if (src_nents) in caam_unmap()
934 dma_unmap_sg(dev, src, src_nents, DMA_TO_DEVICE); in caam_unmap()
938 dma_unmap_sg(dev, src, src_nents, DMA_BIDIRECTIONAL); in caam_unmap()
953 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
964 edesc->src_nents, edesc->dst_nents, in skcipher_unmap()
1249 (int)edesc->src_nents > 1 ? 100 : req->cryptlen, req->cryptlen); in init_skcipher_job()
1253 edesc->src_nents > 1 ? 100 : req->cryptlen, 1); in init_skcipher_job()
1298 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
1308 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
1309 if (unlikely(src_nents < 0)) { in aead_edesc_alloc()
1312 return ERR_PTR(src_nents); in aead_edesc_alloc()
1325 src_nents = sg_nents_for_len(req->src, src_len); in aead_edesc_alloc()
1326 if (unlikely(src_nents < 0)) { in aead_edesc_alloc()
1329 return ERR_PTR(src_nents); in aead_edesc_alloc()
1334 mapped_src_nents = dma_map_sg(jrdev, req->src, src_nents, in aead_edesc_alloc()
1342 if (src_nents) { in aead_edesc_alloc()
1344 src_nents, DMA_TO_DEVICE); in aead_edesc_alloc()
1360 dma_unmap_sg(jrdev, req->src, src_nents, in aead_edesc_alloc()
1385 caam_unmap(jrdev, req->src, req->dst, src_nents, dst_nents, 0, in aead_edesc_alloc()
1390 edesc->src_nents = src_nents; in aead_edesc_alloc()
1602 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in skcipher_edesc_alloc() local
1609 src_nents = sg_nents_for_len(req->src, req->cryptlen); in skcipher_edesc_alloc()
1610 if (unlikely(src_nents < 0)) { in skcipher_edesc_alloc()
1613 return ERR_PTR(src_nents); in skcipher_edesc_alloc()
1626 mapped_src_nents = dma_map_sg(jrdev, req->src, src_nents, in skcipher_edesc_alloc()
1633 mapped_src_nents = dma_map_sg(jrdev, req->src, src_nents, in skcipher_edesc_alloc()
1643 dma_unmap_sg(jrdev, req->src, src_nents, DMA_TO_DEVICE); in skcipher_edesc_alloc()
1685 caam_unmap(jrdev, req->src, req->dst, src_nents, dst_nents, 0, in skcipher_edesc_alloc()
1690 edesc->src_nents = src_nents; in skcipher_edesc_alloc()
1707 caam_unmap(jrdev, req->src, req->dst, src_nents, in skcipher_edesc_alloc()
1737 caam_unmap(jrdev, req->src, req->dst, src_nents, in skcipher_edesc_alloc()