| /linux/drivers/crypto/qce/ |
| A D | skcipher.c | 75 int dst_nents, src_nents, ret; in qce_skcipher_async_req_handle() local 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 < 0) { in qce_skcipher_async_req_handle() 128 ret = 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() 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 < 0) { in qce_aead_async_req_handle() 454 ret = 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/drivers/crypto/caam/ |
| A D | caamalg_qi.c | 799 int dst_nents; member 821 int dst_nents; member 876 if (dst_nents) in caam_unmap() 1000 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc() 1004 return ERR_PTR(dst_nents); in aead_edesc_alloc() 1019 if (dst_nents) { in aead_edesc_alloc() 1021 dst_nents, in aead_edesc_alloc() 1088 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1274 if (unlikely(dst_nents < 0)) { in skcipher_edesc_alloc() 1277 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() [all …]
|
| A D | caamalg.c | 889 int dst_nents; member 915 int dst_nents; member 928 int dst_nents, in caam_unmap() argument 935 if (dst_nents) in caam_unmap() 1319 return ERR_PTR(dst_nents); in aead_edesc_alloc() 1354 if (dst_nents) { in aead_edesc_alloc() 1356 dst_nents, in aead_edesc_alloc() 1391 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1621 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() 1691 edesc->dst_nents = dst_nents; in skcipher_edesc_alloc() [all …]
|
| A D | caamalg_qi2.h | 112 int dst_nents; member 132 int dst_nents; member
|
| A D | caamalg_qi2.c | 150 int dst_nents, dma_addr_t iv_dma, int ivsize, in caam_unmap() argument 157 if (dst_nents) in caam_unmap() 391 dst_nents = sg_nents_for_len(req->dst, dst_len); in aead_edesc_alloc() 392 if (unlikely(dst_nents < 0)) { in aead_edesc_alloc() 396 return ERR_PTR(dst_nents); in aead_edesc_alloc() 411 if (dst_nents) { in aead_edesc_alloc() 492 dst_nents, 0, 0, DMA_NONE, 0, 0); in aead_edesc_alloc() 499 edesc->dst_nents = dst_nents; in aead_edesc_alloc() 1136 if (unlikely(dst_nents < 0)) { in skcipher_edesc_alloc() 1139 return ERR_PTR(dst_nents); in skcipher_edesc_alloc() [all …]
|
| A D | caampkc.c | 48 dma_unmap_sg(dev, req->dst, edesc->dst_nents, DMA_FROM_DEVICE); in rsa_io_unmap() 254 int src_nents, dst_nents; in rsa_edesc_alloc() local 284 dst_nents = sg_nents_for_len(req->dst, req->dst_len); in rsa_edesc_alloc() 292 mapped_dst_nents = dma_map_sg(dev, req->dst, dst_nents, in rsa_edesc_alloc() 333 edesc->dst_nents = dst_nents; in rsa_edesc_alloc() 361 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/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/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/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/drivers/crypto/virtio/ |
| A D | virtio_crypto_algs.c | 349 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()
|
| /linux/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/drivers/crypto/rockchip/ |
| A D | rk3288_crypto.h | 214 size_t dst_nents; member
|
| A D | rk3288_crypto_skcipher.c | 282 dev->dst_nents = sg_nents(req->dst); in rk_ablk_start() 346 if (!sg_pcopy_from_buffer(req->dst, dev->dst_nents, in rk_ablk_rx()
|
| /linux/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() 2680 rctx->dst_nents = 0; in aead_enqueue()
|
| /linux/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()
|