Lines Matching refs:bfs
188 static struct bf bfs[2]; variable
318 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
320 bfs[1].counter = BF_FREE; in rw_init()
322 return &bfs[0].buf.hdr; in rw_init()
343 bfs[current].counter = BF_FREE; /* free old one */ in readit()
346 b = &bfs[current]; /* look at new buffer */ in readit()
367 b = &bfs[nextone]; /* look at "next" buffer */ in read_ahead()
421 bfs[current].counter = ct; /* set size of data to write */ in writeit()
423 if(bfs[current].counter != BF_FREE) /* if not free */ in writeit()
425 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit()
426 *dpp = &bfs[current].buf.hdr; in writeit()
446 b = &bfs[nextone]; in write_behind()