Lines Matching refs:buflen

118 	int buflen;  member
132 int buflen; member
169 int buflen = state->buflen; in buf_map_to_sec4_sg() local
171 if (!buflen) in buf_map_to_sec4_sg()
174 state->buf_dma = dma_map_single(jrdev, state->buf, buflen, in buf_map_to_sec4_sg()
182 dma_to_sec4_sg_one(sec4_sg, state->buf_dma, buflen, 0); in buf_map_to_sec4_sg()
565 dma_unmap_single(dev, state->buf_dma, state->buflen, in ahash_unmap()
661 state->buflen = state->next_buflen; in ahash_done_switch()
665 state->buflen, 1); in ahash_done_switch()
827 int *buflen = &state->buflen; in ahash_update_ctx() local
830 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
871 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
929 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_ctx()
931 *buflen = *next_buflen; in ahash_update_ctx()
935 *buflen, 1); in ahash_update_ctx()
951 int buflen = state->buflen; in ahash_final_ctx() local
958 sec4_sg_bytes = pad_sg_nents(1 + (buflen ? 1 : 0)) * in ahash_final_ctx()
980 sg_to_sec4_set_last(edesc->sec4_sg + (buflen ? 1 : 0)); in ahash_final_ctx()
990 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1012 int buflen = state->buflen; in ahash_finup_ctx() local
1037 sec4_sg_src_index = 1 + (buflen ? 1 : 0); in ahash_finup_ctx()
1061 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1154 int buflen = state->buflen; in ahash_final_no_ctx() local
1168 if (buflen) { in ahash_final_no_ctx()
1169 state->buf_dma = dma_map_single(jrdev, buf, buflen, in ahash_final_no_ctx()
1176 append_seq_in_ptr(desc, state->buf_dma, buflen, 0); in ahash_final_no_ctx()
1203 int *buflen = &state->buflen; in ahash_update_no_ctx() local
1206 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_no_ctx()
1300 scatterwalk_map_and_copy(buf + *buflen, req->src, 0, in ahash_update_no_ctx()
1302 *buflen = *next_buflen; in ahash_update_no_ctx()
1306 *buflen, 1); in ahash_update_no_ctx()
1323 int buflen = state->buflen; in ahash_finup_no_ctx() local
1368 ret = ahash_edesc_add_src(ctx, edesc, req, mapped_nents, 1, buflen, in ahash_finup_no_ctx()
1400 int *buflen = &state->buflen; in ahash_update_first() local
1485 *buflen = *next_buflen; in ahash_update_first()
1489 *buflen, 1); in ahash_update_first()
1515 state->buflen = 0; in ahash_init()
1547 int len = state->buflen; in ahash_export()
1551 export->buflen = len; in ahash_export()
1565 memcpy(state->buf, export->buf, export->buflen); in ahash_import()
1567 state->buflen = export->buflen; in ahash_import()