Home
last modified time | relevance | path

Searched refs:mapped_nents (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c257 u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) in cc_map_sg()
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_DEVIC in cc_unmap_aead_request()
255 cc_map_sg(struct device *dev, struct scatterlist *sg, unsigned int nbytes, int direction, u32 *nents, u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) cc_map_sg() argument
591 int mapped_nents = 0; cc_aead_chain_assoc() local
955 u32 mapped_nents = 0; cc_map_aead_request() local
1153 u32 mapped_nents = 0; cc_map_hash_request_final() local
1237 u32 mapped_nents = 0; cc_map_hash_request_update() local
[all...]
H A Dcc_buffer_mgr.h28 unsigned int mapped_nents; member
/kernel/linux/linux-6.6/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c257 u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) in cc_map_sg()
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_DEVIC in cc_unmap_aead_request()
255 cc_map_sg(struct device *dev, struct scatterlist *sg, unsigned int nbytes, int direction, u32 *nents, u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) cc_map_sg() argument
591 int mapped_nents = 0; cc_aead_chain_assoc() local
955 u32 mapped_nents = 0; cc_map_aead_request() local
1153 u32 mapped_nents = 0; cc_map_hash_request_final() local
1237 u32 mapped_nents = 0; cc_map_hash_request_update() local
[all...]
H A Dcc_buffer_mgr.h28 unsigned int mapped_nents; member
/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamhash.c824 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
853 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx()
855 if (!mapped_nents) { in ahash_update_ctx()
860 mapped_nents = 0; in ahash_update_ctx()
864 pad_nents = pad_sg_nents(sec4_sg_src_index + mapped_nents); in ahash_update_ctx()
890 if (mapped_nents) in ahash_update_ctx()
1007 int src_nents, mapped_nents; in ahash_finup_ctx() local
1019 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx()
1021 if (!mapped_nents) { in ahash_finup_ctx()
1026 mapped_nents in ahash_finup_ctx()
1080 int src_nents, mapped_nents; ahash_digest() local
1199 int sec4_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
1317 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; ahash_finup_no_ctx() local
1397 int src_nents, mapped_nents; ahash_update_first() local
[all...]
H A Dcaamalg_qi2.c3530 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3548 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_update_ctx()
3550 if (!mapped_nents) { in ahash_update_ctx()
3555 mapped_nents = 0; in ahash_update_ctx()
3568 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3581 if (mapped_nents) { in ahash_update_ctx()
3718 int src_nents, mapped_nents; in ahash_finup_ctx() local
3731 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_finup_ctx()
3733 if (!mapped_nents) { in ahash_finup_ctx()
3738 mapped_nents in ahash_finup_ctx()
3811 int src_nents, mapped_nents; ahash_digest() local
3982 int qm_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
4100 int qm_sg_bytes, src_nents, mapped_nents; ahash_finup_no_ctx() local
4199 int src_nents, mapped_nents; ahash_update_first() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/caam/
H A Dcaamhash.c831 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
860 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx()
862 if (!mapped_nents) { in ahash_update_ctx()
867 mapped_nents = 0; in ahash_update_ctx()
871 pad_nents = pad_sg_nents(sec4_sg_src_index + mapped_nents); in ahash_update_ctx()
897 if (mapped_nents) in ahash_update_ctx()
1014 int src_nents, mapped_nents; in ahash_finup_ctx() local
1026 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx()
1028 if (!mapped_nents) { in ahash_finup_ctx()
1033 mapped_nents in ahash_finup_ctx()
1087 int src_nents, mapped_nents; ahash_digest() local
1206 int sec4_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
1324 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; ahash_finup_no_ctx() local
1404 int src_nents, mapped_nents; ahash_update_first() local
[all...]
H A Dcaamalg_qi2.c3543 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3561 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_update_ctx()
3563 if (!mapped_nents) { in ahash_update_ctx()
3568 mapped_nents = 0; in ahash_update_ctx()
3581 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3594 if (mapped_nents) { in ahash_update_ctx()
3731 int src_nents, mapped_nents; in ahash_finup_ctx() local
3744 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_finup_ctx()
3746 if (!mapped_nents) { in ahash_finup_ctx()
3751 mapped_nents in ahash_finup_ctx()
3824 int src_nents, mapped_nents; ahash_digest() local
3995 int qm_sg_bytes, src_nents, mapped_nents; ahash_update_no_ctx() local
4113 int qm_sg_bytes, src_nents, mapped_nents; ahash_finup_no_ctx() local
4212 int src_nents, mapped_nents; ahash_update_first() local
[all...]
/kernel/linux/linux-5.10/net/smc/
H A Dsmc_ib.c476 int mapped_nents; in smc_ib_buf_map_sg() local
478 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg()
482 if (!mapped_nents) in smc_ib_buf_map_sg()
485 return mapped_nents; in smc_ib_buf_map_sg()
/kernel/linux/linux-6.6/net/smc/
H A Dsmc_ib.c808 int mapped_nents; in smc_ib_buf_map_sg() local
810 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg()
814 if (!mapped_nents) in smc_ib_buf_map_sg()
817 return mapped_nents; in smc_ib_buf_map_sg()

Completed in 19 milliseconds