Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/qce/
Dablkcipher.c40 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_ablkcipher_done()
75 rctx->dst_nents = sg_nents_for_len(req->dst, req->nbytes); in qce_ablkcipher_async_req_handle()
77 rctx->dst_nents = rctx->src_nents; in qce_ablkcipher_async_req_handle()
82 if (rctx->dst_nents < 0) { in qce_ablkcipher_async_req_handle()
84 return -rctx->dst_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.h39 int dst_nents; member
/Linux-v5.4/drivers/crypto/caam/
Dcaamalg_qi.c801 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()
[all …]
Dcaamalg_qi2.h111 int dst_nents; member
131 int dst_nents; member
Dcaampkc.c48 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap()
257 int src_nents, dst_nents; in rsa_edesc_alloc() local
286 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc()
293 if (dst_nents > 1) in rsa_edesc_alloc()
294 sec4_sg_len += pad_sg_nents(dst_nents); in rsa_edesc_alloc()
312 sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
327 if (dst_nents > 1) in rsa_edesc_alloc()
333 edesc->dst_nents = dst_nents; in rsa_edesc_alloc()
354 dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc()
394 if (edesc->dst_nents > 1) { in set_rsa_pub_pdb()
[all …]
Dcaamalg.c886 int dst_nents; member
910 int dst_nents; member
922 int dst_nents, in caam_unmap() argument
929 if (dst_nents) in caam_unmap()
930 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap()
947 edesc->src_nents, edesc->dst_nents, 0, 0, in aead_unmap()
958 edesc->src_nents, edesc->dst_nents, in skcipher_unmap()
1038 edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); in skcipher_encrypt_done()
1078 edesc->dst_nents > 1 ? 100 : req->cryptlen, 1); in skcipher_decrypt_done()
1330 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
[all …]
Dcaampkc.h125 int dst_nents; member
Dcaamalg_qi2.c143 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument
150 if (dst_nents) in caam_unmap()
151 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap()
360 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
389 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc()
390 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc()
394 return ERR_PTR(dst_nents); in aead_edesc_alloc()
409 if (dst_nents) { in aead_edesc_alloc()
410 mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, in aead_edesc_alloc()
474 caam_unmap(dev, req->src, req->dst, src_nents, dst_nents, 0, in aead_edesc_alloc()
[all …]
/Linux-v5.4/drivers/crypto/marvell/
Dcipher.c62 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_cleanup()
122 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()
384 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init()
426 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init()
427 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init()
429 return creq->dst_nents; in mv_cesa_skcipher_req_init()
Dcesa.h565 int dst_nents; member
/Linux-v5.4/drivers/crypto/virtio/
Dvirtio_crypto_algs.c354 int src_nents, dst_nents; in __virtio_crypto_ablkcipher_do_req() local
365 dst_nents = sg_nents(req->dst); in __virtio_crypto_ablkcipher_do_req()
368 src_nents, dst_nents); in __virtio_crypto_ablkcipher_do_req()
371 sg_total = src_nents + dst_nents + 3; in __virtio_crypto_ablkcipher_do_req()
449 for (i = 0; i < dst_nents; i++) in __virtio_crypto_ablkcipher_do_req()
/Linux-v5.4/drivers/crypto/
Dtalitos.c972 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local
974 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap()
977 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap()
984 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap()
985 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap()
1016 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local
1018 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap()
1267 sg_count = edesc->dst_nents ? : 1; in ipsec_esp()
1334 int src_nents, dst_nents, alloc_len, dma_len, src_len, dst_len; in talitos_edesc_alloc() local
1355 dst_nents = dst ? src_nents : 0; in talitos_edesc_alloc()
[all …]
Dpicoxcell_crypto.c317 int src_nents, dst_nents; in spacc_aead_make_ddts() local
333 dst_nents = 0; in spacc_aead_make_ddts()
335 dst_nents = sg_nents_for_len(areq->dst, total); in spacc_aead_make_ddts()
336 if (dst_nents < 0) { in spacc_aead_make_ddts()
338 return dst_nents; in spacc_aead_make_ddts()
355 if (dst_nents) { in spacc_aead_make_ddts()
361 dst_ents = dma_map_sg(engine->dev, areq->dst, dst_nents, in spacc_aead_make_ddts()
Dtalitos.h62 int dst_nents; member
/Linux-v5.4/drivers/crypto/ccp/
Dccp-dmaengine.c354 unsigned int dst_nents, in ccp_create_desc() argument
375 if (!dst_nents || !src_nents) in ccp_create_desc()
406 dst_nents--; in ccp_create_desc()
407 if (!dst_nents) in ccp_create_desc()
/Linux-v5.4/drivers/crypto/rockchip/
Drk3288_crypto.h211 size_t dst_nents; member
Drk3288_crypto_ablkcipher.c283 dev->dst_nents = sg_nents(req->dst); in rk_ablk_start()
347 if (!sg_pcopy_from_buffer(req->dst, dev->dst_nents, in rk_ablk_rx()
/Linux-v5.4/drivers/crypto/bcm/
Dcipher.h292 int dst_nents; /* Number of dst entries with data */ member
Dcipher.c161 rctx->dst_nents, chunksize); in spu_ablkcipher_rx_sg_create()
353 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_ablkcipher_req()
465 rx_frag_num += rctx->dst_nents; in handle_ablkcipher_req()
1143 rctx->dst_nents, resp_len); in spu_aead_rx_sg_create()
1382 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req()
1510 rx_frag_num += rctx->dst_nents; in handle_aead_req()
1529 rx_frag_num -= rctx->dst_nents; in handle_aead_req()
1775 rctx->dst_nents = 0; in ablkcipher_enqueue()
1989 rctx->dst_nents = 0; in ahash_enqueue()
2743 rctx->dst_nents = 0; in aead_enqueue()
/Linux-v5.4/drivers/crypto/chelsio/
Dchcr_algo.c2292 static int chcr_aead_need_fallback(struct aead_request *req, int dst_nents, in chcr_aead_need_fallback() argument
2299 dst_nents > MAX_DSGL_ENT || in chcr_aead_need_fallback()