Home
last modified time | relevance | path

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

/drivers/crypto/caam/
Dcaamhash.c796 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
826 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx()
828 if (!mapped_nents) { in ahash_update_ctx()
833 mapped_nents = 0; in ahash_update_ctx()
837 pad_nents = pad_sg_nents(sec4_sg_src_index + mapped_nents); in ahash_update_ctx()
863 if (mapped_nents) in ahash_update_ctx()
997 int src_nents, mapped_nents; in ahash_finup_ctx() local
1009 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx()
1011 if (!mapped_nents) { in ahash_finup_ctx()
1016 mapped_nents = 0; in ahash_finup_ctx()
[all …]
Dcaamalg_qi2.c3472 int src_nents, mapped_nents, qm_sg_bytes, qm_sg_src_index; in ahash_update_ctx() local
3491 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_update_ctx()
3493 if (!mapped_nents) { in ahash_update_ctx()
3498 mapped_nents = 0; in ahash_update_ctx()
3511 qm_sg_bytes = pad_sg_nents(qm_sg_src_index + mapped_nents) * in ahash_update_ctx()
3524 if (mapped_nents) { in ahash_update_ctx()
3668 int src_nents, mapped_nents; in ahash_finup_ctx() local
3681 mapped_nents = dma_map_sg(ctx->dev, req->src, src_nents, in ahash_finup_ctx()
3683 if (!mapped_nents) { in ahash_finup_ctx()
3688 mapped_nents = 0; in ahash_finup_ctx()
[all …]
/drivers/crypto/ccree/
Dcc_buffer_mgr.c291 u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) in cc_map_sg() argument
304 *mapped_nents = 1; in cc_map_sg()
316 *mapped_nents = dma_map_sg(dev, sg, *nents, direction); in cc_map_sg()
317 if (*mapped_nents == 0) { in cc_map_sg()
419 u32 mapped_nents = 0; in cc_map_cipher_request() local
444 LLI_MAX_NUM_OF_DATA_ENTRIES, &dummy, &mapped_nents); in cc_map_cipher_request()
447 if (mapped_nents > 1) in cc_map_cipher_request()
462 &dummy, &mapped_nents); in cc_map_cipher_request()
465 if (mapped_nents > 1) in cc_map_cipher_request()
641 int mapped_nents = 0; in cc_aead_chain_assoc() local
[all …]