Home
last modified time | relevance | path

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

/drivers/crypto/caam/
Dcaampkc.c25 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap()
104 int src_nents, dst_nents; in rsa_edesc_alloc() local
107 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
111 if (dst_nents > 1) in rsa_edesc_alloc()
112 sec4_sg_len += dst_nents; in rsa_edesc_alloc()
128 sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
141 if (dst_nents > 1) in rsa_edesc_alloc()
142 sg_to_sec4_sg_last(req->dst, dst_nents, in rsa_edesc_alloc()
147 edesc->dst_nents = dst_nents; in rsa_edesc_alloc()
164 dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
[all …]
Dcaamalg.c1892 int dst_nents; member
1912 int dst_nents; member
1922 int dst_nents, in caam_unmap() argument
1928 dma_unmap_sg(dev, dst, dst_nents ? : 1, DMA_FROM_DEVICE); in caam_unmap()
1945 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
1957 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap()
2036 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_encrypt_done()
2076 edesc->dst_nents > 1 ? 100 : req->nbytes, 1, true); in ablkcipher_decrypt_done()
2132 if (!edesc->dst_nents) { in init_aead_job()
2272 if (!edesc->dst_nents) { in init_ablkcipher_job()
[all …]
Dcaampkc.h55 int dst_nents; member
/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()
90 if (rctx->dst_nents < 0) { in qce_ablkcipher_async_req_handle()
92 return -rctx->dst_nents; in qce_ablkcipher_async_req_handle()
95 rctx->dst_nents += 1; in qce_ablkcipher_async_req_handle()
100 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_ablkcipher_async_req_handle()
121 ret = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_async_req_handle()
135 rctx->dst_sg, rctx->dst_nents, in qce_ablkcipher_async_req_handle()
154 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/
Dtalitos.c904 int dst_nents; member
925 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local
927 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap()
930 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap()
937 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap()
938 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap()
967 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local
969 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap()
1000 edesc->dst_nents + 2]; in ipsec_esp_encrypt_done()
1001 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done()
[all …]
Dmxc-scc.c157 size_t dst_nents; member
182 ctx->dst_nents * 8); in mxc_scc_get_data()
183 len = sg_pcopy_from_buffer(ablkreq->dst, ctx->dst_nents, in mxc_scc_get_data()
227 ctx->dst_nents = nents; in mxc_scc_ablkcipher_req_init()
Dpicoxcell_crypto.c330 int src_nents, dst_nents; in spacc_aead_make_ddts() local
346 dst_nents = 0; in spacc_aead_make_ddts()
348 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts()
349 if (dst_nents < 0) { in spacc_aead_make_ddts()
351 return dst_nents; in spacc_aead_make_ddts()
368 if (dst_nents) { in spacc_aead_make_ddts()
374 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
/drivers/crypto/ccp/
Dccp-dmaengine.c321 unsigned int dst_nents, in ccp_create_desc() argument
342 if (!dst_nents || !src_nents) in ccp_create_desc()
373 dst_nents--; in ccp_create_desc()
374 if (!dst_nents) in ccp_create_desc()
475 unsigned int dst_nents, struct scatterlist *src_sg, in ccp_prep_dma_sg() argument
484 __func__, src_sg, src_nents, dst_sg, dst_nents, flags); in ccp_prep_dma_sg()
486 desc = ccp_create_desc(dma_chan, dst_sg, dst_nents, src_sg, src_nents, in ccp_prep_dma_sg()
/drivers/crypto/marvell/
Dcipher.c65 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_cleanup()
125 len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, in mv_cesa_ablkcipher_std_process()
327 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init()
389 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_ablkcipher_dma_req_init()
431 creq->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in mv_cesa_ablkcipher_req_init()
432 if (creq->dst_nents < 0) { in mv_cesa_ablkcipher_req_init()
434 return creq->dst_nents; in mv_cesa_ablkcipher_req_init()
Dcesa.h564 int dst_nents; member
/drivers/crypto/chelsio/
Dchcr_crypto.h133 unsigned int dst_nents; member
Dchcr_algo.c122 ABLK_CTX(ctx)->dst_nents, DMA_FROM_DEVICE); in chcr_handle_resp()
477 ablkctx->dst_nents = ch_nents(req->dst, &dst_bufsize); in create_cipher_wr()
484 phys_dsgl = get_space_for_phys_dsgl(ablkctx->dst_nents); in create_cipher_wr()
535 sg_param.nents = ablkctx->dst_nents; in create_cipher_wr()
/drivers/dma/
Dfsldma.c826 struct scatterlist *dst_sg, unsigned int dst_nents, in fsl_dma_prep_sg() argument
837 if (dst_nents == 0 || src_nents == 0) in fsl_dma_prep_sg()
896 if (dst_nents == 0) in fsl_dma_prep_sg()
904 dst_nents--; in fsl_dma_prep_sg()
Dxgene-dma.c896 u32 dst_nents, struct scatterlist *src_sg, in xgene_dma_prep_sg() argument
908 if (unlikely(!dst_nents || !src_nents)) in xgene_dma_prep_sg()
919 dst_nents--; in xgene_dma_prep_sg()
958 if (dst_nents == 0) in xgene_dma_prep_sg()
966 dst_nents--; in xgene_dma_prep_sg()
Dat_hdmac.c1219 struct scatterlist *dst_sg, unsigned int dst_nents, in atc_prep_dma_sg() argument
1236 if (unlikely(dst_nents == 0 || src_nents == 0)) in atc_prep_dma_sg()
1257 if (!dst_sg || !dst_nents) in atc_prep_dma_sg()
1264 dst_nents--; in atc_prep_dma_sg()
Dnbpfaxi.c985 struct scatterlist *dst_sg, unsigned int dst_nents, in nbpf_prep_memcpy_sg() argument
991 if (dst_nents != src_nents) in nbpf_prep_memcpy_sg()
Dste_dma40.c2489 struct scatterlist *dst_sg, unsigned int dst_nents, in d40_prep_memcpy_sg() argument
2493 if (dst_nents != src_nents) in d40_prep_memcpy_sg()