Lines Matching refs:buflen
113 int buflen; member
127 int buflen; member
164 int buflen = state->buflen; in buf_map_to_sec4_sg() local
166 if (!buflen) in buf_map_to_sec4_sg()
169 state->buf_dma = dma_map_single(jrdev, state->buf, buflen, in buf_map_to_sec4_sg()
177 dma_to_sec4_sg_one(sec4_sg, state->buf_dma, buflen, 0); in buf_map_to_sec4_sg()
556 dma_unmap_single(dev, state->buf_dma, state->buflen, in ahash_unmap()
652 state->buflen = state->next_buflen; in ahash_done_switch()
656 state->buflen, 1); in ahash_done_switch()
822 int *buflen = &state->buflen; in ahash_update_ctx() local
825 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
866 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
924 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_ctx()
926 *buflen = *next_buflen; in ahash_update_ctx()
930 *buflen, 1); in ahash_update_ctx()
946 int buflen = state->buflen; in ahash_final_ctx() local
953 sec4_sg_bytes = pad_sg_nents(1 + (buflen ? 1 : 0)) * in ahash_final_ctx()
975 sg_to_sec4_set_last(edesc->sec4_sg + (buflen ? 1 : 0)); in ahash_final_ctx()
985 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1007 int buflen = state->buflen; in ahash_finup_ctx() local
1032 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_finup_ctx()
1056 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1149 int buflen = state->buflen; in ahash_final_no_ctx() local
1163 if (buflen) { in ahash_final_no_ctx()
1164 state->buf_dma = dma_map_single(jrdev, buf, buflen, in ahash_final_no_ctx()
1171 append_seq_in_ptr(desc, state->buf_dma, buflen, 0); in ahash_final_no_ctx()
1198 int *buflen = &state->buflen; in ahash_update_no_ctx() local
1201 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx()
1295 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_no_ctx()
1297 *buflen = *next_buflen; in ahash_update_no_ctx()
1301 *buflen, 1); in ahash_update_no_ctx()
1318 int buflen = state->buflen; in ahash_finup_no_ctx() local
1363 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 1, buflen, in ahash_finup_no_ctx()
1395 int *buflen = &state->buflen; in ahash_update_first() local
1480 *buflen = *next_buflen; in ahash_update_first()
1484 *buflen, 1); in ahash_update_first()
1510 state->buflen = 0; in ahash_init()
1542 int len = state->buflen; in ahash_export()
1546 export->buflen = len; in ahash_export()
1560 memcpy(state->buf, export->buf, export->buflen); in ahash_import()
1562 state->buflen = export->buflen; in ahash_import()