Lines Matching refs:counter
64 int counter; /* size of data in buffer, or flag */
68 /* Values for bf.counter */
100 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
102 bfs[1].counter = BF_FREE;
119 bfs[current].counter = BF_FREE; /* free old one */
123 if (b->counter == BF_FREE) /* if it's empty */
125 /* assert(b->counter != BF_FREE);*//* check */
127 return b->counter;
147 if (b->counter != BF_FREE) /* nop if not free */
154 b->counter = read(fileno(file), dp->th_data, amt);
177 b->counter = (int)(p - dp->th_data);
190 bfs[current].counter = ct; /* set size of data to write */
192 if (bfs[current].counter != BF_FREE) /* if not free */
194 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
219 if (b->counter < -1) /* anything to flush? */
222 count = b->counter; /* remember byte count */
223 b->counter = BF_FREE; /* reset flag */