Lines Matching refs:bfs
64 } bfs[2]; variable
89 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
91 bfs[1].counter = BF_FREE; in rw_init()
93 return (struct tftphdr *)bfs[0].buf; in rw_init()
104 bfs[current].counter = BF_FREE; /* free old one */ in readit()
107 b = &bfs[current]; /* look at new buffer */ in readit()
129 b = &bfs[nextone]; /* look at "next" buffer */ in read_ahead()
169 bfs[current].counter = ct; /* set size of data to write */ in writeit()
171 if (bfs[current].counter != BF_FREE) /* if not free */ in writeit()
173 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit()
174 *dpp = (struct tftphdr *)bfs[current].buf; in writeit()
194 b = &bfs[nextone]; in write_behind()