Lines Matching refs:bufcnt
145 u16 bufcnt;
337 while ((state->bufcnt < state->blocklen) && rctx->total) {
339 count = min_t(size_t, count, state->blocklen - state->bufcnt);
350 scatterwalk_map_and_copy(state->buffer + state->bufcnt,
353 state->bufcnt += count;
473 int bufcnt, err = 0, final;
481 (state->bufcnt + rctx->total >= state->blocklen)) {
483 bufcnt = state->bufcnt;
484 state->bufcnt = 0;
485 err = stm32_hash_xmit_cpu(hdev, state->buffer, bufcnt, 0);
493 bufcnt = state->bufcnt;
494 state->bufcnt = 0;
495 return stm32_hash_xmit_cpu(hdev, state->buffer, bufcnt, 1);
657 unsigned int i, len = 0, bufcnt = 0;
679 if (sg_is_last(sg) || (bufcnt + sg[0].length) >= rctx->total) {
680 sg->length = rctx->total - bufcnt;
709 bufcnt += sg[0].length;
854 rctx->state.bufcnt = 0;
888 int buflen = state->bufcnt;
893 state->bufcnt = 0;
1080 if ((state->bufcnt + rctx->total < state->blocklen)) {