Lines Matching refs:counter
57 /* values for bf.counter */
65 int counter; /* size of data in buffer, or flag */
96 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
98 bfs[1].counter = BF_FREE;
113 bfs[current].counter = BF_FREE; /* free old one */
117 if (b->counter == BF_FREE) /* if it's empty */
119 /* assert(b->counter != BF_FREE); */ /* check */
122 return (b->counter);
139 if (b->counter != BF_FREE) /* nop if not free */
146 b->counter = read(fileno(file), dp->th_data, segment_size);
170 b->counter = (int)(p - dp->th_data);
181 bfs[current].counter = ct; /* set size of data to write */
183 if (bfs[current].counter != BF_FREE) /* if not free */
186 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
210 if (b->counter < -1) /* anything to flush? */
213 count = b->counter; /* remember byte count */
214 b->counter = BF_FREE; /* reset flag */