Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/crypto/qce/
Dskcipher.c50 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
74 int dst_nents, src_nents, ret; in qce_skcipher_async_req_handle() local
86 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle()
88 rctx->dst_nents = rctx->src_nents; in qce_skcipher_async_req_handle()
93 if (rctx->dst_nents < 0) { in qce_skcipher_async_req_handle()
95 return -rctx->dst_nents; in qce_skcipher_async_req_handle()
98 rctx->dst_nents += 1; in qce_skcipher_async_req_handle()
103 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_skcipher_async_req_handle()
125 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
126 if (dst_nents < 0) { in qce_skcipher_async_req_handle()
[all …]
Dcipher.h39 int dst_nents; member
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaamalg_qi.c799 int dst_nents; member
821 int dst_nents; member
869 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument
876 if (dst_nents) in caam_unmap()
877 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap()
895 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in aead_unmap()
907 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in skcipher_unmap()
946 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
999 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
1000 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc()
[all …]
Dcaamalg_qi2.h112 int dst_nents; member
132 int dst_nents; member
Dcaamalg.c889 int dst_nents; member
915 int dst_nents; member
928 int dst_nents, in caam_unmap() argument
935 if (dst_nents) in caam_unmap()
936 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); 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()
1038 edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); in skcipher_crypt_done()
1298 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
1315 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
[all …]
Dcaamalg_qi2.c147 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument
154 if (dst_nents) in caam_unmap()
155 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap()
359 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
388 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
389 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc()
393 return ERR_PTR(dst_nents); in aead_edesc_alloc()
408 if (dst_nents) { in aead_edesc_alloc()
409 mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, in aead_edesc_alloc()
473 caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, in aead_edesc_alloc()
[all …]
Dcaampkc.h136 int dst_nents; member
Dcaampkc.c48 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap()
255 int src_nents, dst_nents; in rsa_edesc_alloc() local
285 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
293 mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, in rsa_edesc_alloc()
334 edesc->dst_nents = dst_nents; in rsa_edesc_alloc()
362 dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dcipher.c64 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_cleanup()
124 len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, in mv_cesa_skcipher_std_process()
322 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init()
386 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init()
428 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init()
429 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init()
431 return creq->dst_nents; in mv_cesa_skcipher_req_init()
Dcesa.h570 int dst_nents; member
/kernel/linux/linux-5.10/drivers/crypto/
Dtalitos.c967 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local
969 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap()
972 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap()
979 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap()
980 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap()
1011 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local
1013 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap()
1264 sg_count = edesc->dst_nents ? : 1; in ipsec_esp()
1331 int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; in talitos_edesc_alloc() local
1352 dst_nents = dst ? src_nents : 0; in talitos_edesc_alloc()
[all …]
Dsa2ul.c1062 int sg_nents, src_nents, dst_nents; in sa_run() local
1173 dst_nents = src_nents; in sa_run()
1176 dst_nents = sg_nents_for_len(req->dst, req->size); in sa_run()
1179 if (dst_nents == 1 && split_size <= req->dst->length) { in sa_run()
1181 dst_nents = 1; in sa_run()
1187 mapped_sg->sgt.orig_nents = dst_nents; in sa_run()
1197 mapped_sg->sgt.orig_nents = dst_nents; in sa_run()
1207 0, 1, &split_size, &dst, &dst_nents, in sa_run()
1210 dst_nents = mapped_sg->sgt.nents; in sa_run()
1218 rxd->tx_in = dmaengine_prep_slave_sg(dma_rx, dst, dst_nents, in sa_run()
Dpicoxcell_crypto.c318 int src_nents, dst_nents; in spacc_aead_make_ddts() local
334 dst_nents = 0; in spacc_aead_make_ddts()
336 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts()
337 if (dst_nents < 0) { in spacc_aead_make_ddts()
339 return dst_nents; in spacc_aead_make_ddts()
356 if (dst_nents) { in spacc_aead_make_ddts()
362 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
Dtalitos.h62 int dst_nents; member
Dmxs-dcp.c302 int dst_nents = sg_nents(dst); in mxs_dcp_aes_block_crypt() local
364 sg_pcopy_from_buffer(dst, dst_nents, out_buf, in mxs_dcp_aes_block_crypt()
/kernel/linux/linux-5.10/drivers/crypto/virtio/
Dvirtio_crypto_algs.c349 int src_nents, dst_nents; in __virtio_crypto_skcipher_do_req() local
365 dst_nents = sg_nents(req->dst); in __virtio_crypto_skcipher_do_req()
368 src_nents, dst_nents); in __virtio_crypto_skcipher_do_req()
371 sg_total = src_nents + dst_nents + 3; in __virtio_crypto_skcipher_do_req()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-dmaengine.c355 unsigned int dst_nents, in ccp_create_desc() argument
376 if (!dst_nents || !src_nents) in ccp_create_desc()
407 dst_nents--; in ccp_create_desc()
408 if (!dst_nents) in ccp_create_desc()
/kernel/linux/linux-5.10/drivers/crypto/bcm/
Dcipher.h294 int dst_nents; /* Number of dst entries with data */ member
Dcipher.c161 rctx->dst_nents, chunksize); in spu_skcipher_rx_sg_create()
348 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req()
433 rx_frag_num += rctx->dst_nents; in handle_skcipher_req()
1108 rctx->dst_nents, resp_len); in spu_aead_rx_sg_create()
1347 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req()
1475 rx_frag_num += rctx->dst_nents; in handle_aead_req()
1494 rx_frag_num -= rctx->dst_nents; in handle_aead_req()
1740 rctx->dst_nents = 0; in skcipher_enqueue()
1928 rctx->dst_nents = 0; in ahash_enqueue()
2682 rctx->dst_nents = 0; in aead_enqueue()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0016_linux_drivers_crypto.patch1033 + * @dst_nents: number of segments in output scatterlist
1043 + int dst_nents;
1068 + edesc->dst_nents, edesc->iv_dma, ivsize, DMA_TO_DEVICE,
1114 + int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0;
1179 + dst_nents = sg_nents_for_len(dst, dst_len);
1180 + if (unlikely(dst_nents < 0)) {
1184 + return ERR_PTR(dst_nents);
1199 + mapped_dst_nents = dma_map_sg(qidev, dst, dst_nents,
1224 + caam_unmap(qidev, req->src, dst, src_nents, dst_nents, 0, 0,
1231 + edesc->dst_nents = dst_nents;
[all …]
/kernel/linux/linux-5.10/drivers/crypto/chelsio/
Dchcr_algo.c2408 static int chcr_aead_need_fallback(struct aead_request *req, int dst_nents, in chcr_aead_need_fallback() argument
2415 dst_nents > MAX_DSGL_ENT || in chcr_aead_need_fallback()