dst_nents 161 drivers/crypto/bcm/cipher.c rctx->dst_nents, chunksize); dst_nents 353 drivers/crypto/bcm/cipher.c rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); dst_nents 465 drivers/crypto/bcm/cipher.c rx_frag_num += rctx->dst_nents; dst_nents 1143 drivers/crypto/bcm/cipher.c rctx->dst_nents, resp_len); dst_nents 1382 drivers/crypto/bcm/cipher.c rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); dst_nents 1510 drivers/crypto/bcm/cipher.c rx_frag_num += rctx->dst_nents; dst_nents 1529 drivers/crypto/bcm/cipher.c rx_frag_num -= rctx->dst_nents; dst_nents 1775 drivers/crypto/bcm/cipher.c rctx->dst_nents = 0; dst_nents 1989 drivers/crypto/bcm/cipher.c rctx->dst_nents = 0; dst_nents 2743 drivers/crypto/bcm/cipher.c rctx->dst_nents = 0; dst_nents 292 drivers/crypto/bcm/cipher.h int dst_nents; /* Number of dst entries with data */ dst_nents 886 drivers/crypto/caam/caamalg.c int dst_nents; dst_nents 910 drivers/crypto/caam/caamalg.c int dst_nents; dst_nents 922 drivers/crypto/caam/caamalg.c int dst_nents, dst_nents 929 drivers/crypto/caam/caamalg.c if (dst_nents) dst_nents 930 drivers/crypto/caam/caamalg.c dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); dst_nents 947 drivers/crypto/caam/caamalg.c edesc->src_nents, edesc->dst_nents, 0, 0, dst_nents 958 drivers/crypto/caam/caamalg.c edesc->src_nents, edesc->dst_nents, dst_nents 1038 drivers/crypto/caam/caamalg.c edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); dst_nents 1078 drivers/crypto/caam/caamalg.c edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); dst_nents 1330 drivers/crypto/caam/caamalg.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 1347 drivers/crypto/caam/caamalg.c dst_nents = sg_nents_for_len(req->dst, dst_len); dst_nents 1348 drivers/crypto/caam/caamalg.c if (unlikely(dst_nents < 0)) { dst_nents 1351 drivers/crypto/caam/caamalg.c return ERR_PTR(dst_nents); dst_nents 1386 drivers/crypto/caam/caamalg.c if (dst_nents) { dst_nents 1388 drivers/crypto/caam/caamalg.c dst_nents, dst_nents 1417 drivers/crypto/caam/caamalg.c caam_unmap(jrdev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1423 drivers/crypto/caam/caamalg.c edesc->dst_nents = dst_nents; dst_nents 1687 drivers/crypto/caam/caamalg.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 1702 drivers/crypto/caam/caamalg.c dst_nents = sg_nents_for_len(req->dst, req->cryptlen); dst_nents 1703 drivers/crypto/caam/caamalg.c if (unlikely(dst_nents < 0)) { dst_nents 1706 drivers/crypto/caam/caamalg.c return ERR_PTR(dst_nents); dst_nents 1724 drivers/crypto/caam/caamalg.c mapped_dst_nents = dma_map_sg(jrdev, req->dst, dst_nents, dst_nents 1770 drivers/crypto/caam/caamalg.c caam_unmap(jrdev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1776 drivers/crypto/caam/caamalg.c edesc->dst_nents = dst_nents; dst_nents 1792 drivers/crypto/caam/caamalg.c dst_nents, 0, 0, 0, 0); dst_nents 1822 drivers/crypto/caam/caamalg.c dst_nents, iv_dma, ivsize, 0, 0); dst_nents 801 drivers/crypto/caam/caamalg_qi.c int dst_nents; dst_nents 823 drivers/crypto/caam/caamalg_qi.c int dst_nents; dst_nents 871 drivers/crypto/caam/caamalg_qi.c int dst_nents, dma_addr_t iv_dma, int ivsize, dst_nents 878 drivers/crypto/caam/caamalg_qi.c if (dst_nents) dst_nents 879 drivers/crypto/caam/caamalg_qi.c dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); dst_nents 897 drivers/crypto/caam/caamalg_qi.c caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, dst_nents 909 drivers/crypto/caam/caamalg_qi.c caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, dst_nents 948 drivers/crypto/caam/caamalg_qi.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 1001 drivers/crypto/caam/caamalg_qi.c dst_nents = sg_nents_for_len(req->dst, dst_len); dst_nents 1002 drivers/crypto/caam/caamalg_qi.c if (unlikely(dst_nents < 0)) { dst_nents 1006 drivers/crypto/caam/caamalg_qi.c return ERR_PTR(dst_nents); dst_nents 1021 drivers/crypto/caam/caamalg_qi.c if (dst_nents) { dst_nents 1023 drivers/crypto/caam/caamalg_qi.c dst_nents, dst_nents 1067 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1083 drivers/crypto/caam/caamalg_qi.c dst_nents, 0, 0, DMA_NONE, 0, 0); dst_nents 1090 drivers/crypto/caam/caamalg_qi.c edesc->dst_nents = dst_nents; dst_nents 1101 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, dst_nents 1123 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, dst_nents 1229 drivers/crypto/caam/caamalg_qi.c edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); dst_nents 1254 drivers/crypto/caam/caamalg_qi.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 1275 drivers/crypto/caam/caamalg_qi.c dst_nents = sg_nents_for_len(req->dst, req->cryptlen); dst_nents 1276 drivers/crypto/caam/caamalg_qi.c if (unlikely(dst_nents < 0)) { dst_nents 1279 drivers/crypto/caam/caamalg_qi.c return ERR_PTR(dst_nents); dst_nents 1289 drivers/crypto/caam/caamalg_qi.c mapped_dst_nents = dma_map_sg(qidev, req->dst, dst_nents, dst_nents 1326 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1335 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1348 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1355 drivers/crypto/caam/caamalg_qi.c edesc->dst_nents = dst_nents; dst_nents 1375 drivers/crypto/caam/caamalg_qi.c caam_unmap(qidev, req->src, req->dst, src_nents, dst_nents, dst_nents 143 drivers/crypto/caam/caamalg_qi2.c int dst_nents, dma_addr_t iv_dma, int ivsize, dst_nents 150 drivers/crypto/caam/caamalg_qi2.c if (dst_nents) dst_nents 151 drivers/crypto/caam/caamalg_qi2.c dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); dst_nents 360 drivers/crypto/caam/caamalg_qi2.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 389 drivers/crypto/caam/caamalg_qi2.c dst_nents = sg_nents_for_len(req->dst, dst_len); dst_nents 390 drivers/crypto/caam/caamalg_qi2.c if (unlikely(dst_nents < 0)) { dst_nents 394 drivers/crypto/caam/caamalg_qi2.c return ERR_PTR(dst_nents); dst_nents 409 drivers/crypto/caam/caamalg_qi2.c if (dst_nents) { dst_nents 410 drivers/crypto/caam/caamalg_qi2.c mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, dst_nents 474 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 490 drivers/crypto/caam/caamalg_qi2.c dst_nents, 0, 0, DMA_NONE, 0, 0); dst_nents 497 drivers/crypto/caam/caamalg_qi2.c edesc->dst_nents = dst_nents; dst_nents 513 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, dst_nents 535 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, dst_nents 1126 drivers/crypto/caam/caamalg_qi2.c int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; dst_nents 1142 drivers/crypto/caam/caamalg_qi2.c dst_nents = sg_nents_for_len(req->dst, req->cryptlen); dst_nents 1143 drivers/crypto/caam/caamalg_qi2.c if (unlikely(dst_nents < 0)) { dst_nents 1146 drivers/crypto/caam/caamalg_qi2.c return ERR_PTR(dst_nents); dst_nents 1156 drivers/crypto/caam/caamalg_qi2.c mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, dst_nents 1193 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1202 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1215 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, dst_nents 1222 drivers/crypto/caam/caamalg_qi2.c edesc->dst_nents = dst_nents; dst_nents 1239 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, dst_nents 1271 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, dst_nents 1283 drivers/crypto/caam/caamalg_qi2.c caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, dst_nents 1417 drivers/crypto/caam/caamalg_qi2.c edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); dst_nents 1455 drivers/crypto/caam/caamalg_qi2.c edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); dst_nents 111 drivers/crypto/caam/caamalg_qi2.h int dst_nents; dst_nents 131 drivers/crypto/caam/caamalg_qi2.h int dst_nents; dst_nents 48 drivers/crypto/caam/caampkc.c dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); dst_nents 257 drivers/crypto/caam/caampkc.c int src_nents, dst_nents; dst_nents 286 drivers/crypto/caam/caampkc.c dst_nents = sg_nents_for_len(req->dst, req->dst_len); dst_nents 293 drivers/crypto/caam/caampkc.c if (dst_nents > 1) dst_nents 294 drivers/crypto/caam/caampkc.c sec4_sg_len += pad_sg_nents(dst_nents); dst_nents 312 drivers/crypto/caam/caampkc.c sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); dst_nents 327 drivers/crypto/caam/caampkc.c if (dst_nents > 1) dst_nents 333 drivers/crypto/caam/caampkc.c edesc->dst_nents = dst_nents; dst_nents 354 drivers/crypto/caam/caampkc.c dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); dst_nents 394 drivers/crypto/caam/caampkc.c if (edesc->dst_nents > 1) { dst_nents 441 drivers/crypto/caam/caampkc.c if (edesc->dst_nents > 1) { dst_nents 506 drivers/crypto/caam/caampkc.c if (edesc->dst_nents > 1) { dst_nents 595 drivers/crypto/caam/caampkc.c if (edesc->dst_nents > 1) { dst_nents 125 drivers/crypto/caam/caampkc.h int dst_nents; dst_nents 355 drivers/crypto/ccp/ccp-dmaengine.c unsigned int dst_nents, dst_nents 376 drivers/crypto/ccp/ccp-dmaengine.c if (!dst_nents || !src_nents) dst_nents 407 drivers/crypto/ccp/ccp-dmaengine.c dst_nents--; dst_nents 408 drivers/crypto/ccp/ccp-dmaengine.c if (!dst_nents) dst_nents 2292 drivers/crypto/chelsio/chcr_algo.c static int chcr_aead_need_fallback(struct aead_request *req, int dst_nents, dst_nents 2299 drivers/crypto/chelsio/chcr_algo.c dst_nents > MAX_DSGL_ENT || dst_nents 565 drivers/crypto/marvell/cesa.h int dst_nents; dst_nents 62 drivers/crypto/marvell/cipher.c dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, dst_nents 122 drivers/crypto/marvell/cipher.c len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, dst_nents 322 drivers/crypto/marvell/cipher.c ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, dst_nents 384 drivers/crypto/marvell/cipher.c dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, dst_nents 426 drivers/crypto/marvell/cipher.c creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); dst_nents 427 drivers/crypto/marvell/cipher.c if (creq->dst_nents < 0) { dst_nents 429 drivers/crypto/marvell/cipher.c return creq->dst_nents; dst_nents 317 drivers/crypto/picoxcell_crypto.c int src_nents, dst_nents; dst_nents 333 drivers/crypto/picoxcell_crypto.c dst_nents = 0; dst_nents 335 drivers/crypto/picoxcell_crypto.c dst_nents = sg_nents_for_len(areq->dst, total); dst_nents 336 drivers/crypto/picoxcell_crypto.c if (dst_nents < 0) { dst_nents 338 drivers/crypto/picoxcell_crypto.c return dst_nents; dst_nents 355 drivers/crypto/picoxcell_crypto.c if (dst_nents) { dst_nents 361 drivers/crypto/picoxcell_crypto.c dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, dst_nents 40 drivers/crypto/qce/ablkcipher.c dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); dst_nents 75 drivers/crypto/qce/ablkcipher.c rctx->dst_nents = sg_nents_for_len(req->dst, req->nbytes); dst_nents 77 drivers/crypto/qce/ablkcipher.c rctx->dst_nents = rctx->src_nents; dst_nents 82 drivers/crypto/qce/ablkcipher.c if (rctx->dst_nents < 0) { dst_nents 84 drivers/crypto/qce/ablkcipher.c return -rctx->dst_nents; dst_nents 87 drivers/crypto/qce/ablkcipher.c rctx->dst_nents += 1; dst_nents 92 drivers/crypto/qce/ablkcipher.c ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); dst_nents 113 drivers/crypto/qce/ablkcipher.c ret = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); dst_nents 127 drivers/crypto/qce/ablkcipher.c rctx->dst_sg, rctx->dst_nents, dst_nents 146 drivers/crypto/qce/ablkcipher.c dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); dst_nents 39 drivers/crypto/qce/cipher.h int dst_nents; dst_nents 211 drivers/crypto/rockchip/rk3288_crypto.h size_t dst_nents; dst_nents 283 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c dev->dst_nents = sg_nents(req->dst); dst_nents 347 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c if (!sg_pcopy_from_buffer(req->dst, dev->dst_nents, dst_nents 972 drivers/crypto/talitos.c unsigned int dst_nents = edesc->dst_nents ? : 1; dst_nents 974 drivers/crypto/talitos.c if (is_sec1 && dst && dst_nents > 1) { dst_nents 977 drivers/crypto/talitos.c sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, dst_nents 984 drivers/crypto/talitos.c if (dst && (dst_nents == 1 || !is_sec1)) dst_nents 985 drivers/crypto/talitos.c dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); dst_nents 1016 drivers/crypto/talitos.c unsigned int dst_nents = edesc->dst_nents ? : 1; dst_nents 1018 drivers/crypto/talitos.c sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, dst_nents 1267 drivers/crypto/talitos.c sg_count = edesc->dst_nents ? : 1; dst_nents 1334 drivers/crypto/talitos.c int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; dst_nents 1355 drivers/crypto/talitos.c dst_nents = dst ? src_nents : 0; dst_nents 1366 drivers/crypto/talitos.c dst_nents = sg_nents_for_len(dst, dst_len); dst_nents 1367 drivers/crypto/talitos.c if (dst_nents < 0) { dst_nents 1371 drivers/crypto/talitos.c dst_nents = (dst_nents == 1) ? 0 : dst_nents; dst_nents 1380 drivers/crypto/talitos.c if (src_nents || dst_nents || !encrypt) { dst_nents 1383 drivers/crypto/talitos.c (dst_nents ? dst_len : 0) + authsize; dst_nents 1385 drivers/crypto/talitos.c dma_len = (src_nents + dst_nents + 2) * dst_nents 1408 drivers/crypto/talitos.c edesc->dst_nents = dst_nents; dst_nents 1467 drivers/crypto/talitos.c ((!edesc->src_nents && !edesc->dst_nents) || dst_nents 1613 drivers/crypto/talitos.c sg_count = edesc->dst_nents ? : 1; dst_nents 62 drivers/crypto/talitos.h int dst_nents; dst_nents 352 drivers/crypto/virtio/virtio_crypto_algs.c int src_nents, dst_nents; dst_nents 368 drivers/crypto/virtio/virtio_crypto_algs.c dst_nents = sg_nents(req->dst); dst_nents 371 drivers/crypto/virtio/virtio_crypto_algs.c src_nents, dst_nents); dst_nents 374 drivers/crypto/virtio/virtio_crypto_algs.c sg_total = src_nents + dst_nents + 3;