Lines Matching refs:bufcnt
131 size_t bufcnt; member
301 while ((rctx->bufcnt < rctx->buflen) && rctx->total) { in stm32_hash_append_sg()
303 count = min(count, rctx->buflen - rctx->bufcnt); in stm32_hash_append_sg()
314 scatterwalk_map_and_copy(rctx->buffer + rctx->bufcnt, rctx->sg, in stm32_hash_append_sg()
317 rctx->bufcnt += count; in stm32_hash_append_sg()
383 int bufcnt, err = 0, final; in stm32_hash_update_cpu() local
390 (rctx->bufcnt + rctx->total >= rctx->buflen)) { in stm32_hash_update_cpu()
392 bufcnt = rctx->bufcnt; in stm32_hash_update_cpu()
393 rctx->bufcnt = 0; in stm32_hash_update_cpu()
394 err = stm32_hash_xmit_cpu(hdev, rctx->buffer, bufcnt, 0); in stm32_hash_update_cpu()
400 bufcnt = rctx->bufcnt; in stm32_hash_update_cpu()
401 rctx->bufcnt = 0; in stm32_hash_update_cpu()
402 err = stm32_hash_xmit_cpu(hdev, rctx->buffer, bufcnt, in stm32_hash_update_cpu()
711 rctx->bufcnt = 0; in stm32_hash_init()
737 int buflen = rctx->bufcnt; in stm32_hash_final_req()
739 rctx->bufcnt = 0; in stm32_hash_final_req()
909 if ((rctx->bufcnt + rctx->total < rctx->buflen)) { in stm32_hash_update()