/Linux-v4.19/drivers/crypto/qce/ |
D | ablkcipher.c | 48 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()
|
D | cipher.h | 47 int dst_nents; member
|
/Linux-v4.19/drivers/crypto/caam/ |
D | caamalg_qi.c | 733 int dst_nents; member 755 int dst_nents; member 805 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument 812 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap() 832 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in aead_unmap() 845 caam_unmap(dev, req->src, req->dst, edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap() 896 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local 947 dst_nents = sg_nents_for_len(req->dst, req->assoclen + in aead_edesc_alloc() 951 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc() 956 return ERR_PTR(dst_nents); in aead_edesc_alloc() [all …]
|
D | caamalg.c | 760 int dst_nents; member 781 int dst_nents; member 792 int dst_nents, in caam_unmap() argument 800 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in caam_unmap() 817 edesc->src_nents, edesc->dst_nents, 0, 0, DMA_NONE, in aead_unmap() 829 edesc->src_nents, edesc->dst_nents, in ablkcipher_unmap() 908 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_encrypt_done() 959 edesc->dst_nents > 1 ? 100 : req->nbytes, 1); in ablkcipher_decrypt_done() 1006 if (edesc->dst_nents == 1) { in init_aead_job() 1140 if (edesc->dst_nents == 1) { in init_ablkcipher_job() [all …]
|
D | caampkc.c | 29 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap() 225 int src_nents, dst_nents; in rsa_edesc_alloc() local 236 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc() 240 if (dst_nents > 1) in rsa_edesc_alloc() 241 sec4_sg_len += dst_nents; in rsa_edesc_alloc() 257 sgc = dma_map_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc() 270 if (dst_nents > 1) in rsa_edesc_alloc() 271 sg_to_sec4_sg_last(req->dst, dst_nents, in rsa_edesc_alloc() 276 edesc->dst_nents = dst_nents; in rsa_edesc_alloc() 293 dma_unmap_sg(dev, req->dst, dst_nents, DMA_FROM_DEVICE); in rsa_edesc_alloc() [all …]
|
D | caampkc.h | 118 int dst_nents; member
|
/Linux-v4.19/drivers/crypto/ |
D | talitos.c | 934 int dst_nents; member 955 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local 957 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap() 960 sg_pcopy_from_buffer(dst, dst_nents, edesc->buf + offset, len, in talitos_sg_unmap() 967 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap() 968 dma_unmap_sg(dev, dst, dst_nents, DMA_FROM_DEVICE); in talitos_sg_unmap() 997 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local 999 sg_pcopy_to_buffer(areq->dst, dst_nents, ctx->iv, ivsize, in ipsec_esp_unmap() 1031 edesc->dst_nents + 2]; in ipsec_esp_encrypt_done() 1032 sg = sg_last(areq->dst, edesc->dst_nents); in ipsec_esp_encrypt_done() [all …]
|
D | mxc-scc.c | 157 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()
|
D | picoxcell_crypto.c | 330 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()
|
/Linux-v4.19/drivers/crypto/marvell/ |
D | cipher.c | 65 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_cleanup() 125 len = sg_pcopy_from_buffer(req->dst, creq->dst_nents, in mv_cesa_skcipher_std_process() 336 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init() 399 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init() 441 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init() 442 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init() 444 return creq->dst_nents; in mv_cesa_skcipher_req_init()
|
D | cesa.h | 565 int dst_nents; member
|
/Linux-v4.19/drivers/crypto/virtio/ |
D | virtio_crypto_algs.c | 368 int src_nents, dst_nents; in __virtio_crypto_ablkcipher_do_req() local 379 dst_nents = sg_nents(req->dst); in __virtio_crypto_ablkcipher_do_req() 382 src_nents, dst_nents); in __virtio_crypto_ablkcipher_do_req() 385 sg_total = src_nents + dst_nents + 3; in __virtio_crypto_ablkcipher_do_req() 463 for (i = 0; i < dst_nents; i++) in __virtio_crypto_ablkcipher_do_req()
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-dmaengine.c | 352 unsigned int dst_nents, in ccp_create_desc() argument 373 if (!dst_nents || !src_nents) in ccp_create_desc() 404 dst_nents--; in ccp_create_desc() 405 if (!dst_nents) in ccp_create_desc()
|
/Linux-v4.19/drivers/crypto/chelsio/ |
D | chcr_crypto.h | 190 short int dst_nents; member
|
D | chcr_algo.c | 2227 static int chcr_aead_need_fallback(struct aead_request *req, int dst_nents, in chcr_aead_need_fallback() argument 2234 dst_nents > MAX_DSGL_ENT || in chcr_aead_need_fallback()
|
/Linux-v4.19/drivers/crypto/bcm/ |
D | cipher.h | 305 int dst_nents; /* Number of dst entries with data */ member
|
D | cipher.c | 172 rctx->dst_nents, chunksize); in spu_ablkcipher_rx_sg_create() 364 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_ablkcipher_req() 476 rx_frag_num += rctx->dst_nents; in handle_ablkcipher_req() 1154 rctx->dst_nents, resp_len); in spu_aead_rx_sg_create() 1393 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req() 1521 rx_frag_num += rctx->dst_nents; in handle_aead_req() 1540 rx_frag_num -= rctx->dst_nents; in handle_aead_req() 1790 rctx->dst_nents = 0; in ablkcipher_enqueue() 2024 rctx->dst_nents = 0; in ahash_enqueue() 2766 rctx->dst_nents = 0; in aead_enqueue()
|