Lines Matching refs:mapped_nents
753 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()
969 if (!mapped_nents) { in ahash_finup_ctx()
974 mapped_nents = 0; in ahash_finup_ctx()
980 edesc = ahash_edesc_alloc(ctx, sec4_sg_src_index + mapped_nents, in ahash_finup_ctx()
1001 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, in ahash_finup_ctx()
1041 int src_nents, mapped_nents; in ahash_digest() local
1054 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_digest()
1056 if (!mapped_nents) { in ahash_digest()
1061 mapped_nents = 0; in ahash_digest()
1065 edesc = ahash_edesc_alloc(ctx, mapped_nents > 1 ? mapped_nents : 0, in ahash_digest()
1075 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 0, 0, in ahash_digest()
1184 int sec4_sg_bytes, src_nents, mapped_nents; in ahash_update_no_ctx() local
1201 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_no_ctx()
1203 if (!mapped_nents) { in ahash_update_no_ctx()
1208 mapped_nents = 0; in ahash_update_no_ctx()
1211 sec4_sg_bytes = (1 + mapped_nents) * in ahash_update_no_ctx()
1218 edesc = ahash_edesc_alloc(ctx, 1 + mapped_nents, in ahash_update_no_ctx()
1234 sg_to_sec4_sg_last(req->src, mapped_nents, in ahash_update_no_ctx()
1306 int sec4_sg_bytes, sec4_sg_src_index, src_nents, mapped_nents; in ahash_finup_no_ctx() local
1318 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_finup_no_ctx()
1320 if (!mapped_nents) { in ahash_finup_no_ctx()
1325 mapped_nents = 0; in ahash_finup_no_ctx()
1329 sec4_sg_bytes = (sec4_sg_src_index + mapped_nents) * in ahash_finup_no_ctx()
1333 edesc = ahash_edesc_alloc(ctx, sec4_sg_src_index + mapped_nents, in ahash_finup_no_ctx()
1350 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 1, buflen, in ahash_finup_no_ctx()
1398 int src_nents, mapped_nents; in ahash_update_first() local
1415 mapped_nents = dma_map_sg(jrdev, req->src, src_nents, in ahash_update_first()
1417 if (!mapped_nents) { in ahash_update_first()
1422 mapped_nents = 0; in ahash_update_first()
1429 edesc = ahash_edesc_alloc(ctx, mapped_nents > 1 ? in ahash_update_first()
1430 mapped_nents : 0, in ahash_update_first()
1441 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 0, 0, in ahash_update_first()