Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/crypto/caam/
Dcaampkc.c263 int mapped_src_nents, mapped_dst_nents; in rsa_edesc_alloc() local
294 mapped_src_nents = dma_map_sg(dev, req_ctx->fixup_src, src_nents, in rsa_edesc_alloc()
296 if (unlikely(!mapped_src_nents)) { in rsa_edesc_alloc()
307 if (!diff_size && mapped_src_nents == 1) in rsa_edesc_alloc()
310 sec4_sg_len = mapped_src_nents + !!diff_size; in rsa_edesc_alloc()
347 edesc->mapped_src_nents = mapped_src_nents; in rsa_edesc_alloc()
428 if (edesc->mapped_src_nents > 1) { in set_rsa_pub_pdb()
431 sec4_sg_index += edesc->mapped_src_nents; in set_rsa_pub_pdb()
473 if (edesc->mapped_src_nents > 1) { in set_rsa_priv_f1_pdb()
476 sec4_sg_index += edesc->mapped_src_nents; in set_rsa_priv_f1_pdb()
[all …]
Dcaamalg.c900 int mapped_src_nents; member
926 int mapped_src_nents; member
1092 src_dma = edesc->mapped_src_nents ? sg_dma_address(req->src) : in init_aead_job()
1097 sec4_sg_index += edesc->mapped_src_nents; in init_aead_job()
1278 if (ivsize || edesc->mapped_src_nents > 1) { in init_skcipher_job()
1280 sec4_sg_index = edesc->mapped_src_nents + !!ivsize; in init_skcipher_job()
1315 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
1351 mapped_src_nents = dma_map_sg(jrdev, req->src, src_nents, in aead_edesc_alloc()
1353 if (unlikely(!mapped_src_nents)) { in aead_edesc_alloc()
1360 mapped_src_nents = dma_map_sg(jrdev, req->src, in aead_edesc_alloc()
[all …]
Dcaamalg_qi.c951 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
985 mapped_src_nents = dma_map_sg(qidev, req->src, src_nents, in aead_edesc_alloc()
987 if (unlikely(!mapped_src_nents)) { in aead_edesc_alloc()
1013 mapped_src_nents = dma_map_sg(qidev, req->src, in aead_edesc_alloc()
1015 if (unlikely(!mapped_src_nents)) { in aead_edesc_alloc()
1021 mapped_src_nents = 0; in aead_edesc_alloc()
1055 qm_sg_ents = 1 + !!ivsize + mapped_src_nents; in aead_edesc_alloc()
1058 else if ((req->src == req->dst) && (mapped_src_nents > 1)) in aead_edesc_alloc()
1060 1 + !!ivsize + pad_sg_nents(mapped_src_nents)); in aead_edesc_alloc()
1117 qm_sg_index += mapped_src_nents; in aead_edesc_alloc()
[all …]
Dcaampkc.h134 int mapped_src_nents; member
Dcaamalg_qi2.c364 int src_nents, mapped_src_nents, dst_nents = 0, mapped_dst_nents = 0; in aead_edesc_alloc() local
402 mapped_src_nents = dma_map_sg(dev, req->src, src_nents, in aead_edesc_alloc()
404 if (unlikely(!mapped_src_nents)) { in aead_edesc_alloc()
410 mapped_src_nents = 0; in aead_edesc_alloc()
438 mapped_src_nents = dma_map_sg(dev, req->src, src_nents, in aead_edesc_alloc()
440 if (unlikely(!mapped_src_nents)) { in aead_edesc_alloc()
462 qm_sg_nents = 1 + !!ivsize + mapped_src_nents; in aead_edesc_alloc()
465 else if ((req->src == req->dst) && (mapped_src_nents > 1)) in aead_edesc_alloc()
468 pad_sg_nents(mapped_src_nents)); in aead_edesc_alloc()
530 qm_sg_index += mapped_src_nents; in aead_edesc_alloc()
[all …]