Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/crypto/caam/
Dcaamhash.c753 int src_nents, mapped_nents, sec4_sg_bytes, sec4_sg_src_index; in ahash_update_ctx() local
770 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_ctx()
772 if (!mapped_nents) { in ahash_update_ctx()
777 mapped_nents = 0; in ahash_update_ctx()
781 sec4_sg_bytes = (sec4_sg_src_index + mapped_nents) * in ahash_update_ctx()
788 edesc = ahash_edesc_alloc(ctx, sec4_sg_src_index + mapped_nents, in ahash_update_ctx()
808 if (mapped_nents) { in ahash_update_ctx()
809 sg_to_sec4_sg_last(req->src, mapped_nents, in ahash_update_ctx()
955 int src_nents, mapped_nents; in ahash_finup_ctx() local
967 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_ctx()
[all …]
/Linux-v4.19/drivers/crypto/ccree/
Dcc_buffer_mgr.c344 u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) in cc_map_sg() argument
359 *mapped_nents = 1; in cc_map_sg()
373 *mapped_nents = dma_map_sg(dev, sg, *nents, direction); in cc_map_sg()
374 if (*mapped_nents == 0) { in cc_map_sg()
383 *mapped_nents = cc_dma_map_sg(dev, sg, *nents, in cc_map_sg()
385 if (*mapped_nents != *nents) { in cc_map_sg()
386 *nents = *mapped_nents; in cc_map_sg()
488 u32 mapped_nents = 0; in cc_map_cipher_request() local
513 LLI_MAX_NUM_OF_DATA_ENTRIES, &dummy, &mapped_nents); in cc_map_cipher_request()
518 if (mapped_nents > 1) in cc_map_cipher_request()
[all …]
/Linux-v4.19/net/smc/
Dsmc_ib.c436 int mapped_nents; in smc_ib_buf_map_sg() local
438 mapped_nents = ib_dma_map_sg(smcibdev->ibdev, in smc_ib_buf_map_sg()
442 if (!mapped_nents) in smc_ib_buf_map_sg()
445 return mapped_nents; in smc_ib_buf_map_sg()