Lines Matching refs:obuf_len
171 i = ctx->obuf_size - (ctx->obuf_len + ctx->obuf_off); in buffer_write()
174 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl); in buffer_write()
175 ctx->obuf_len += inl; in buffer_write()
180 if (ctx->obuf_len != 0) { in buffer_write()
182 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i); in buffer_write()
186 ctx->obuf_len += i; in buffer_write()
191 ctx->obuf_len); in buffer_write()
201 ctx->obuf_len -= i; in buffer_write()
202 if (ctx->obuf_len == 0) in buffer_write()
251 ctx->obuf_len = 0; in buffer_ctrl()
262 ret = (long)ctx->obuf_len; in buffer_ctrl()
273 ret = (long)ctx->obuf_len; in buffer_ctrl()
346 ctx->obuf_len = 0; in buffer_ctrl()
361 if (ctx->obuf_len <= 0) { in buffer_ctrl()
369 if (ctx->obuf_len > 0) { in buffer_ctrl()
371 &(ctx->obuf[ctx->obuf_off]), ctx->obuf_len); in buffer_ctrl()
376 ctx->obuf_len -= r; in buffer_ctrl()
378 ctx->obuf_len = 0; in buffer_ctrl()