Lines Matching refs:cnt
602 (bp)->cnt = VSTREAM_BUF_COUNT((bp), (bp)->len); \
608 (bp)->cnt = VSTREAM_BUF_COUNT(bp, (bp)->len - (offset)); \
612 (bp)->cnt = 0; \
619 (bp)->len = (bp)->cnt = 0; \
643 stream->buffer.len = stream->buffer.cnt = 0; \
651 vstream_fflush_some((stream), (stream)->buf.len - (stream)->buf.cnt)
772 used = bp->len - bp->cnt;
853 bp->cnt += to_flush;
912 || stream->read_buf.cnt >= 0)
923 if (bp->cnt < 0)
952 && stream->write_buf.len > stream->write_buf.cnt)
1017 bp->cnt = -n;
1067 } else if (bp->cnt <= 0) {
1125 if (want > bp->cnt) {
1126 if ((used = bp->len - bp->cnt) > stream->req_bufsize)
1129 if ((shortage = (want - bp->cnt)) > 0) {
1243 offset += bp->cnt; /* subtract unread data */
1318 return (stream->offset + bp->cnt);
1427 && stream->write_buf.len > stream->write_buf.cnt)
1776 return (bp ? -bp->cnt : 0);
1790 return (bp ? bp->len - bp->cnt : 0);
1805 return (-vp->buf.cnt);
1807 return (-vp->read_buf.cnt);