/Linux-v5.4/drivers/crypto/qce/ |
D | ablkcipher.c | 40 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()
|
D | cipher.h | 39 int dst_nents; member
|
/Linux-v5.4/drivers/crypto/caam/ |
D | caamalg_qi.c | 801 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 …]
|
D | caamalg_qi2.h | 111 int dst_nents; member 131 int dst_nents; member
|
D | caampkc.c | 48 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 …]
|
D | caamalg.c | 886 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 …]
|
D | caampkc.h | 125 int dst_nents; member
|
D | caamalg_qi2.c | 143 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/ |
D | cipher.c | 62 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()
|
D | cesa.h | 565 int dst_nents; member
|
/Linux-v5.4/drivers/crypto/virtio/ |
D | virtio_crypto_algs.c | 354 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/ |
D | talitos.c | 972 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 …]
|
D | picoxcell_crypto.c | 317 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()
|
D | talitos.h | 62 int dst_nents; member
|
/Linux-v5.4/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 354 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/ |
D | rk3288_crypto.h | 211 size_t dst_nents; member
|
D | rk3288_crypto_ablkcipher.c | 283 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/ |
D | cipher.h | 292 int dst_nents; /* Number of dst entries with data */ member
|
D | cipher.c | 161 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/ |
D | chcr_algo.c | 2292 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()
|