Lines Matching refs:bfs
181 static struct bf bfs[2]; variable
322 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
324 bfs[1].counter = BF_FREE; in rw_init()
326 return &bfs[0].buf.hdr; in rw_init()
347 bfs[current].counter = BF_FREE; /* free old one */ in readit()
350 b = &bfs[current]; /* look at new buffer */ in readit()
371 b = &bfs[nextone]; /* look at "next" buffer */ in read_ahead()
425 bfs[current].counter = ct; /* set size of data to write */ in writeit()
427 if(bfs[current].counter != BF_FREE) /* if not free */ in writeit()
429 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit()
430 *dpp = &bfs[current].buf.hdr; in writeit()
450 b = &bfs[nextone]; in write_behind()