• Home
  • Raw
  • Download

Lines Matching refs:bufcnt

374 	u32			bufcnt;  member
1029 len = new_len + ctx->bufcnt; in s5p_hash_copy_sgs()
1039 if (ctx->bufcnt) in s5p_hash_copy_sgs()
1040 memcpy(buf, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sgs()
1042 scatterwalk_map_and_copy(buf + ctx->bufcnt, sg, ctx->skip, in s5p_hash_copy_sgs()
1048 ctx->bufcnt = 0; in s5p_hash_copy_sgs()
1076 if (ctx->bufcnt) in s5p_hash_copy_sg_lists()
1091 if (ctx->bufcnt) { in s5p_hash_copy_sg_lists()
1092 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sg_lists()
1188 if (ctx->bufcnt) { in s5p_hash_prepare_sgs()
1191 sg_set_buf(ctx->sgl, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_prepare_sgs()
1225 ctx->total = nbytes + ctx->bufcnt; in s5p_hash_prepare_request()
1229 if (nbytes && (!IS_ALIGNED(ctx->bufcnt, BUFLEN))) { in s5p_hash_prepare_request()
1231 int len = BUFLEN - ctx->bufcnt % BUFLEN; in s5p_hash_prepare_request()
1236 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, req->src, in s5p_hash_prepare_request()
1238 ctx->bufcnt += len; in s5p_hash_prepare_request()
1245 if (ctx->bufcnt) in s5p_hash_prepare_request()
1246 memcpy(ctx->dd->xmit_buf, ctx->buffer, ctx->bufcnt); in s5p_hash_prepare_request()
1272 if (unlikely(!ctx->bufcnt)) { in s5p_hash_prepare_request()
1285 ctx->bufcnt = hash_later; in s5p_hash_prepare_request()
1512 if (ctx->bufcnt + req->nbytes <= BUFLEN) { in s5p_hash_update()
1513 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, req->src, in s5p_hash_update()
1515 ctx->bufcnt += req->nbytes; in s5p_hash_update()
1553 if (!ctx->digcnt && ctx->bufcnt < BUFLEN) { in s5p_hash_final()
1557 ctx->bufcnt, req->result); in s5p_hash_final()
1605 ctx->bufcnt = 0; in s5p_hash_init()
1701 memcpy(out, ctx, sizeof(*ctx) + ctx->bufcnt); in s5p_hash_export()
1719 if (ctx_in->bufcnt > BUFLEN) { in s5p_hash_import()