Lines Matching refs:dst_nents
801 int dst_nents; member
823 int dst_nents; member
871 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument
878 if (dst_nents) in caam_unmap()
879 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap()
897 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in aead_unmap()
909 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in skcipher_unmap()
948 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
1001 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
1002 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc()
1006 return ERR_PTR(dst_nents); in aead_edesc_alloc()
1021 if (dst_nents) { in aead_edesc_alloc()
1023 dst_nents, in aead_edesc_alloc()
1067 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, in aead_edesc_alloc()
1083 dst_nents, 0, 0, DMA_NONE, 0, 0); in aead_edesc_alloc()
1090 edesc->dst_nents = dst_nents; in aead_edesc_alloc()
1101 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, in aead_edesc_alloc()
1123 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, in aead_edesc_alloc()
1229 edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); in skcipher_done()
1254 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in skcipher_edesc_alloc() local
1275 dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in skcipher_edesc_alloc()
1276 if (unlikely(dst_nents < 0)) { in skcipher_edesc_alloc()
1279 return ERR_PTR(dst_nents); in skcipher_edesc_alloc()
1289 mapped_dst_nents = dma_map_sg(qidev, req->dst, dst_nents, in skcipher_edesc_alloc()
1326 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, in skcipher_edesc_alloc()
1335 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, in skcipher_edesc_alloc()
1348 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, in skcipher_edesc_alloc()
1355 edesc->dst_nents = dst_nents; in skcipher_edesc_alloc()
1375 caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, in skcipher_edesc_alloc()