Home
last modified time | relevance | path

Searched refs:dst_nents (Results 1 – 13 of 13) sorted by relevance

/drivers/crypto/qce/
Dablkcipher.c48 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_done()
83 rctx->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in qce_ablkcipher_async_req_handle()
85 rctx->dst_nents = rctx->src_nents; in qce_ablkcipher_async_req_handle()
87 rctx->dst_nents += 1; in qce_ablkcipher_async_req_handle()
92 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_ablkcipher_async_req_handle()
113 ret = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_async_req_handle()
127 rctx->dst_sg, rctx->dst_nents, in qce_ablkcipher_async_req_handle()
146 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_async_req_handle()
Dcipher.h47 int dst_nents; member
/drivers/crypto/caam/
Dcaamalg.c1867 int dst_nents; member
1887 int dst_nents; member
1897 int dst_nents, in caam_unmap() argument
1903 dma_unmap_sg(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE); in caam_unmap()
1920 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
1932 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap()
2011 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_encrypt_done()
2043 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_decrypt_done()
2091 if (!edesc->dst_nents) { in init_aead_job()
2229 if (!edesc->dst_nents) { in init_ablkcipher_job()
[all …]
/drivers/crypto/
Dtalitos.c892 int dst_nents; member
910 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local
916 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap()
959 edesc->dst_nents + 2]; in ipsec_esp_encrypt_done()
960 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done()
987 sg = sg_last(req->dst, edesc->dst_nents ? : 1); in ipsec_esp_decrypt_swauth_done()
992 edesc->dst_nents + 2]; in ipsec_esp_decrypt_swauth_done()
1170 sg_count = dma_map_sg(dev, areq->dst, edesc->dst_nents ? : 1, in ipsec_esp()
1196 (edesc->src_nents + edesc->dst_nents + in ipsec_esp()
1236 int src_nents, dst_nents, alloc_len, dma_len; in talitos_edesc_alloc() local
[all …]
Dpicoxcell_crypto.c331 unsigned int src_nents, dst_nents; in spacc_aead_make_ddts() local
343 dst_nents = 0; in spacc_aead_make_ddts()
345 dst_nents = sg_count(areq->dst, total); in spacc_aead_make_ddts()
361 if (dst_nents) { in spacc_aead_make_ddts()
367 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
Dmxs-dcp.c300 int dst_nents = sg_nents(dst); in mxs_dcp_aes_block_crypt() local
362 sg_pcopy_from_buffer(dst, dst_nents, out_buf, in mxs_dcp_aes_block_crypt()
/drivers/crypto/marvell/
Dcipher.c65 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_cleanup()
120 len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, in mv_cesa_ablkcipher_std_process()
314 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init()
368 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init()
404 creq->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in mv_cesa_ablkcipher_req_init()
Dcesa.h567 int dst_nents; member
/drivers/dma/
Dfsldma.c829 struct scatterlist *dst_sg, unsigned int dst_nents, in fsl_dma_prep_sg() argument
840 if (dst_nents == 0 || src_nents == 0) in fsl_dma_prep_sg()
899 if (dst_nents == 0) in fsl_dma_prep_sg()
907 dst_nents--; in fsl_dma_prep_sg()
Dxgene-dma.c898 u32 dst_nents, struct scatterlist *src_sg, in xgene_dma_prep_sg() argument
910 if (unlikely(!dst_nents || !src_nents)) in xgene_dma_prep_sg()
921 dst_nents--; in xgene_dma_prep_sg()
960 if (dst_nents == 0) in xgene_dma_prep_sg()
968 dst_nents--; in xgene_dma_prep_sg()
Dat_hdmac.c1226 struct scatterlist *dst_sg, unsigned int dst_nents, in atc_prep_dma_sg() argument
1243 if (unlikely(dst_nents == 0 || src_nents == 0)) in atc_prep_dma_sg()
1264 if (!dst_sg || !dst_nents) in atc_prep_dma_sg()
1271 dst_nents--; in atc_prep_dma_sg()
Dnbpfaxi.c984 struct scatterlist *dst_sg, unsigned int dst_nents, in nbpf_prep_memcpy_sg() argument
990 if (dst_nents != src_nents) in nbpf_prep_memcpy_sg()
Dste_dma40.c2523 struct scatterlist *dst_sg, unsigned int dst_nents, in d40_prep_memcpy_sg() argument
2527 if (dst_nents != src_nents) in d40_prep_memcpy_sg()