/linux-6.3-rc2/drivers/crypto/qce/ |
A D | skcipher.c | 75 int dst_nents, src_nents, ret; in qce_skcipher_async_req_handle() local 87 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in qce_skcipher_async_req_handle() 89 rctx->dst_nents = rctx->src_nents; in qce_skcipher_async_req_handle() 94 if (rctx->dst_nents < 0) { in qce_skcipher_async_req_handle() 96 return -rctx->dst_nents; in qce_skcipher_async_req_handle() 99 rctx->dst_nents += 1; in qce_skcipher_async_req_handle() 104 ret = sg_alloc_table(&rctx->dst_tbl, rctx->dst_nents, gfp); in qce_skcipher_async_req_handle() 126 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle() 127 if (!dst_nents) { in qce_skcipher_async_req_handle() 141 src_nents = dst_nents - 1; in qce_skcipher_async_req_handle() [all …]
|
A D | aead.c | 126 if (rctx->dst_nents < 0) { in qce_aead_prepare_dst_buf() 131 rctx->dst_nents += 2; in qce_aead_prepare_dst_buf() 133 rctx->dst_nents += 1; in qce_aead_prepare_dst_buf() 291 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf_assoclen() 323 rctx->src_nents = rctx->dst_nents - 1; in qce_aead_prepare_buf() 354 rctx->dst_nents = rctx->src_nents; in qce_aead_ccm_prepare_buf() 418 int dst_nents, src_nents, ret; in qce_aead_async_req_handle() local 452 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle() 453 if (!dst_nents) { in qce_aead_async_req_handle() 466 src_nents = dst_nents; in qce_aead_async_req_handle() [all …]
|
A D | cipher.h | 39 int dst_nents; member
|
A D | aead.h | 31 int dst_nents; member
|
/linux-6.3-rc2/drivers/crypto/caam/ |
A D | caamalg_qi.c | 804 int dst_nents; member 826 int dst_nents; member 881 if (dst_nents) in caam_unmap() 1005 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc() 1009 return ERR_PTR(dst_nents); in aead_edesc_alloc() 1024 if (dst_nents) { in aead_edesc_alloc() 1026 dst_nents, in aead_edesc_alloc() 1093 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1285 if (unlikely(dst_nents < 0)) { in skcipher_edesc_alloc() 1288 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() [all …]
|
A D | caamalg_qi2.h | 110 int dst_nents; member 130 int dst_nents; member
|
A D | caamalg.c | 895 int dst_nents; member 921 int dst_nents; member 934 int dst_nents, in caam_unmap() argument 941 if (dst_nents) in caam_unmap() 1331 return ERR_PTR(dst_nents); in aead_edesc_alloc() 1366 if (dst_nents) { in aead_edesc_alloc() 1368 dst_nents, in aead_edesc_alloc() 1402 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1636 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() 1710 edesc->dst_nents = dst_nents; in skcipher_edesc_alloc() [all …]
|
A D | caamalg_qi2.c | 152 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument 159 if (dst_nents) in caam_unmap() 393 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 394 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc() 398 return ERR_PTR(dst_nents); in aead_edesc_alloc() 413 if (dst_nents) { in aead_edesc_alloc() 494 dst_nents, 0, 0, DMA_NONE, 0, 0); in aead_edesc_alloc() 501 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1138 if (unlikely(dst_nents < 0)) { in skcipher_edesc_alloc() 1141 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() [all …]
|
A D | caampkc.c | 50 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap() 256 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() 294 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()
|
A D | caampkc.h | 136 int dst_nents; member
|
/linux-6.3-rc2/drivers/crypto/keembay/ |
A D | keembay-ocs-aes-core.c | 89 int dst_nents; member 422 sg_swap_blocks(req->dst, rctx->dst_nents, in kmb_ocs_sk_prepare_inplace() 428 rctx->dst_nents, DMA_BIDIRECTIONAL); in kmb_ocs_sk_prepare_inplace() 478 rctx->dst_nents, DMA_FROM_DEVICE); in kmb_ocs_sk_prepare_notinplace() 526 rctx->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in kmb_ocs_sk_run() 527 if (rctx->dst_nents < 0) in kmb_ocs_sk_run() 563 sg_swap_blocks(req->dst, rctx->dst_nents, in kmb_ocs_sk_run() 786 rctx->dst_nents = sg_nents_for_len(req->dst, dst_size); in kmb_ocs_aead_dma_prepare() 787 if (rctx->dst_nents < 0) in kmb_ocs_aead_dma_prepare() 794 rctx->dst_nents, in kmb_ocs_aead_dma_prepare() [all …]
|
/linux-6.3-rc2/drivers/crypto/marvell/cesa/ |
A D | cipher.c | 64 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_cleanup() 131 len = mv_cesa_sg_copy_from_sram(engine, req->dst, creq->dst_nents, in mv_cesa_skcipher_std_process() 332 ret = dma_map_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init() 396 dma_unmap_sg(cesa_dev->dev, req->dst, creq->dst_nents, in mv_cesa_skcipher_dma_req_init() 438 creq->dst_nents = sg_nents_for_len(req->dst, req->cryptlen); in mv_cesa_skcipher_req_init() 439 if (creq->dst_nents < 0) { in mv_cesa_skcipher_req_init() 441 return creq->dst_nents; in mv_cesa_skcipher_req_init()
|
A D | cesa.h | 574 int dst_nents; member
|
/linux-6.3-rc2/drivers/crypto/ |
A D | talitos.c | 968 unsigned int dst_nents = edesc->dst_nents ? : 1; in talitos_sg_unmap() local 970 if (is_sec1 && dst && dst_nents > 1) { in talitos_sg_unmap() 980 if (dst && (dst_nents == 1 || !is_sec1)) in talitos_sg_unmap() 1012 unsigned int dst_nents = edesc->dst_nents ? : 1; in ipsec_esp_unmap() local 1265 sg_count = edesc->dst_nents ? : 1; in ipsec_esp() 1353 dst_nents = dst ? src_nents : 0; in talitos_edesc_alloc() 1365 if (dst_nents < 0) { in talitos_edesc_alloc() 1369 dst_nents = (dst_nents == 1) ? 0 : dst_nents; in talitos_edesc_alloc() 1378 if (src_nents || dst_nents || !encrypt) { in talitos_edesc_alloc() 1406 edesc->dst_nents = dst_nents; in talitos_edesc_alloc() [all …]
|
A D | sa2ul.c | 1087 int sg_nents, src_nents, dst_nents; in sa_run() local 1198 dst_nents = src_nents; in sa_run() 1201 dst_nents = sg_nents_for_len(req->dst, req->size); in sa_run() 1204 if (dst_nents == 1 && split_size <= req->dst->length) { in sa_run() 1206 dst_nents = 1; in sa_run() 1212 mapped_sg->sgt.orig_nents = dst_nents; in sa_run() 1222 mapped_sg->sgt.orig_nents = dst_nents; in sa_run() 1232 0, 1, &split_size, &dst, &dst_nents, in sa_run() 1235 dst_nents = mapped_sg->sgt.nents; in sa_run() 1243 rxd->tx_in = dmaengine_prep_slave_sg(dma_rx, dst, dst_nents, in sa_run()
|
A D | talitos.h | 62 int dst_nents; member
|
A D | mxs-dcp.c | 303 int dst_nents = sg_nents(dst); in mxs_dcp_aes_block_crypt() local 365 sg_pcopy_from_buffer(dst, dst_nents, out_buf, in mxs_dcp_aes_block_crypt()
|
/linux-6.3-rc2/drivers/crypto/virtio/ |
A D | virtio_crypto_skcipher_algs.c | 336 int src_nents, dst_nents; in __virtio_crypto_skcipher_do_req() local 352 dst_nents = sg_nents(req->dst); in __virtio_crypto_skcipher_do_req() 355 src_nents, dst_nents); in __virtio_crypto_skcipher_do_req() 358 sg_total = src_nents + dst_nents + 3; in __virtio_crypto_skcipher_do_req()
|
/linux-6.3-rc2/drivers/crypto/aspeed/ |
A D | aspeed-hace-crypto.c | 133 dma_unmap_sg(dev, req->dst, rctx->dst_nents, DMA_FROM_DEVICE); in aspeed_sk_transfer_sg() 153 nbytes = sg_copy_from_buffer(out_sg, rctx->dst_nents, in aspeed_sk_transfer() 163 "nb_out_sg", rctx->dst_nents, in aspeed_sk_transfer() 248 rctx->dst_nents, DMA_FROM_DEVICE); in aspeed_sk_start_sg() 337 dma_unmap_sg(hace_dev->dev, req->dst, rctx->dst_nents, in aspeed_sk_start_sg() 369 rctx->dst_nents = sg_nents(req->dst); in aspeed_hace_skcipher_trigger()
|
A D | aspeed-hace.h | 253 int dst_nents; member
|
/linux-6.3-rc2/drivers/crypto/ccp/ |
A 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-6.3-rc2/drivers/crypto/bcm/ |
A D | cipher.h | 295 int dst_nents; /* Number of dst entries with data */ member
|
A D | cipher.c | 162 rctx->dst_nents, chunksize); in spu_skcipher_rx_sg_create() 349 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_skcipher_req() 434 rx_frag_num += rctx->dst_nents; in handle_skcipher_req() 1106 rctx->dst_nents, resp_len); in spu_aead_rx_sg_create() 1345 rctx->dst_nents = spu_sg_count(rctx->dst_sg, rctx->dst_skip, chunksize); in handle_aead_req() 1473 rx_frag_num += rctx->dst_nents; in handle_aead_req() 1492 rx_frag_num -= rctx->dst_nents; in handle_aead_req() 1738 rctx->dst_nents = 0; in skcipher_enqueue() 1926 rctx->dst_nents = 0; in ahash_enqueue() 2643 rctx->dst_nents = 0; in aead_enqueue()
|
/linux-6.3-rc2/drivers/crypto/chelsio/ |
A D | chcr_algo.c | 2402 static int chcr_aead_need_fallback(struct aead_request *req, int dst_nents, in chcr_aead_need_fallback() argument 2409 dst_nents > MAX_DSGL_ENT || in chcr_aead_need_fallback()
|