Lines Matching refs:bufcnt
103 size_t bufcnt;
214 if (ctx->bufcnt) {
215 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0);
216 ctx->bufcnt = 0;
257 ctx->bufcnt = sg_copy_to_buffer(hdev->req->src, sg_nents(ctx->sg),
261 ctx->bufcnt = 0;
404 ctx->bufcnt = sg_pcopy_to_buffer(ctx->sgfirst, ctx->nents,
408 while (ctx->sg && (ctx->bufcnt < 4)) {
410 if (likely(len > (4 - ctx->bufcnt)))
411 len = 4 - ctx->bufcnt;
413 ctx->buffer + ctx->bufcnt, len,
414 ctx->sent + ctx->bufcnt);
415 ctx->bufcnt += tbc;
422 ctx->sent += ctx->bufcnt;
449 ctx->bufcnt = 0;
664 ctx->bufcnt = 0;