Lines Matching refs:bufcnt
104 size_t bufcnt;
215 if (ctx->bufcnt) {
216 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0);
217 ctx->bufcnt = 0;
258 ctx->bufcnt = sg_copy_to_buffer(hdev->req->src, sg_nents(ctx->sg),
262 ctx->bufcnt = 0;
405 ctx->bufcnt = sg_pcopy_to_buffer(ctx->sgfirst, ctx->nents,
409 while (ctx->sg && (ctx->bufcnt < 4)) {
411 if (likely(len > (4 - ctx->bufcnt)))
412 len = 4 - ctx->bufcnt;
414 ctx->buffer + ctx->bufcnt, len,
415 ctx->sent + ctx->bufcnt);
416 ctx->bufcnt += tbc;
423 ctx->sent += ctx->bufcnt;
450 ctx->bufcnt = 0;
665 ctx->bufcnt = 0;