Lines Matching refs:counter
132 * bf.counter values in range [-1 .. SEGSIZE] represents size of data in the
137 int counter; /* size of data in buffer, or flag */
442 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */
444 bfs[1].counter = BF_FREE;
467 bfs[current].counter = BF_FREE; /* free old one */
471 if (b->counter == BF_FREE) /* if it's empty */
475 return b->counter;
492 if (b->counter != BF_FREE) /* nop if not free */
500 b->counter = read(fileno(file), dp->th_data, SEGSIZE); */
507 b->counter = (int)copy_n;
536 b->counter = (int)(p - dp->th_data);
545 bfs[current].counter = ct; /* set size of data to write */
547 if (bfs[current].counter != BF_FREE) /* if not free */
549 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */
571 if (b->counter < -1) /* anything to flush? */
584 count = b->counter; /* remember byte count */
585 b->counter = BF_FREE; /* reset flag */