Lines Matching refs:mapped_nents

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()
1040 edesc = ahash_edesc_alloc(req, sec4_sg_src_index + mapped_nents, in ahash_finup_ctx()
1060 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, in ahash_finup_ctx()
1088 int src_nents, mapped_nents; in ahash_digest() local
1101 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_digest()
1103 if (!mapped_nents) { in ahash_digest()
1108 mapped_nents = 0; in ahash_digest()
1112 edesc = ahash_edesc_alloc(req, mapped_nents > 1 ? mapped_nents : 0, in ahash_digest()
1121 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 0, 0, in ahash_digest()
1207 int sec4_sg_bytes, src_nents, mapped_nents; in ahash_update_no_ctx() local
1237 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_no_ctx()
1239 if (!mapped_nents) { in ahash_update_no_ctx()
1244 mapped_nents = 0; in ahash_update_no_ctx()
1247 pad_nents = pad_sg_nents(1 + mapped_nents); in ahash_update_no_ctx()
1325 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; in ahash_finup_no_ctx() local
1337 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_no_ctx()
1339 if (!mapped_nents) { in ahash_finup_no_ctx()
1344 mapped_nents = 0; in ahash_finup_no_ctx()
1348 sec4_sg_bytes = (sec4_sg_src_index + mapped_nents) * in ahash_finup_no_ctx()
1352 edesc = ahash_edesc_alloc(req, sec4_sg_src_index + mapped_nents, in ahash_finup_no_ctx()
1368 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 1, buflen, in ahash_finup_no_ctx()
1405 int src_nents, mapped_nents; in ahash_update_first() local
1432 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_first()
1434 if (!mapped_nents) { in ahash_update_first()
1439 mapped_nents = 0; in ahash_update_first()
1446 edesc = ahash_edesc_alloc(req, mapped_nents > 1 ? in ahash_update_first()
1447 mapped_nents : 0, in ahash_update_first()
1457 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 0, 0, in ahash_update_first()