Searched refs:mapped_nents (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/crypto/ccree/ |
H A D | cc_buffer_mgr.c | 257 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 …]
|
H A D | cc_buffer_mgr.h | 28 unsigned int mapped_nents; member
|
/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 832 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local 861 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx() 863 if (!mapped_nents) { in ahash_update_ctx() 868 mapped_nents = 0; in ahash_update_ctx() 872 pad_nents = pad_sg_nents(sec4_sg_src_index + mapped_nents); in ahash_update_ctx() 898 if (mapped_nents) in ahash_update_ctx() 1015 int src_nents, mapped_nents; in ahash_finup_ctx() local 1027 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx() 1029 if (!mapped_nents) { in ahash_finup_ctx() 1034 mapped_nents = 0; in ahash_finup_ctx() [all …]
|
H A D | caamalg_qi2.c | 3543 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 = 0; in ahash_finup_ctx() [all …]
|
/linux/net/smc/ |
H A D | smc_ib.c | 813 int mapped_nents; in smc_ib_buf_map_sg() local 815 mapped_nents = ib_dma_map_sg(lnk->smcibdev->ibdev, in smc_ib_buf_map_sg() 819 if (!mapped_nents) in smc_ib_buf_map_sg() 822 return mapped_nents; in smc_ib_buf_map_sg()
|