Home
last modified time | relevance | path

Searched refs:mapped_nents (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/drivers/crypto/ccree/
Dcc_buffer_mgr.c257 u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) in cc_map_sg() argument
262 *mapped_nents = 0; in cc_map_sg()
283 *mapped_nents = ret; in cc_map_sg()
381 u32 mapped_nents = 0; in cc_map_cipher_request() local
406 LLI_MAX_NUM_OF_DATA_ENTRIES, &dummy, &mapped_nents); in cc_map_cipher_request()
409 if (mapped_nents > 1) in cc_map_cipher_request()
424 &dummy, &mapped_nents); in cc_map_cipher_request()
427 if (mapped_nents > 1) in cc_map_cipher_request()
521 dma_unmap_sg(dev, req->src, areq_ctx->src.mapped_nents, src_direction); in cc_unmap_aead_request()
525 dma_unmap_sg(dev, req->dst, areq_ctx->dst.mapped_nents, DMA_FROM_DEVICE); in cc_unmap_aead_request()
[all …]
Dcc_buffer_mgr.h28 unsigned int mapped_nents; member
/linux-5.19.10/drivers/crypto/caam/
Dcaamhash.c827 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
856 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx()
858 if (!mapped_nents) { in ahash_update_ctx()
863 mapped_nents = 0; in ahash_update_ctx()
867 pad_nents = pad_sg_nents(sec4_sg_src_index + mapped_nents); in ahash_update_ctx()
893 if (mapped_nents) in ahash_update_ctx()
1010 int src_nents, mapped_nents; in ahash_finup_ctx() local
1022 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx()
1024 if (!mapped_nents) { in ahash_finup_ctx()
1029 mapped_nents = 0; in ahash_finup_ctx()
[all …]
Dcaamalg_qi2.c3532 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3550 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_update_ctx()
3552 if (!mapped_nents) { in ahash_update_ctx()
3557 mapped_nents = 0; in ahash_update_ctx()
3570 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3583 if (mapped_nents) { in ahash_update_ctx()
3720 int src_nents, mapped_nents; in ahash_finup_ctx() local
3733 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_finup_ctx()
3735 if (!mapped_nents) { in ahash_finup_ctx()
3740 mapped_nents = 0; in ahash_finup_ctx()
[all …]
/linux-5.19.10/net/smc/
Dsmc_ib.c777 int mapped_nents; in smc_ib_buf_map_sg() local
779 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg()
783 if (!mapped_nents) in smc_ib_buf_map_sg()
786 return mapped_nents; in smc_ib_buf_map_sg()