Lines Matching refs:bio_offset
182 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry"));
183 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >=
187 off = MAX(bp->bio_offset, off1);
188 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off;
194 bp->bio_data + (off - bp->bio_offset), len);
270 OFF2BNO(bp->bio_offset + bp->bio_completed, sc));
298 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc);
309 cbp->bio_offset = BNO2OFF(dp->d_bno, sc);
323 bno = OFF2BNO(bp->bio_offset, sc);
324 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc);
361 if (bp->bio_offset + bp->bio_length > sc->sc_tail)
363 if (OFF2BNO(bp->bio_offset, sc) ==
364 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) {
372 } else if (OFF2BNO(bp->bio_offset, sc) + 1 ==
373 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) {
375 dp = g_cache_lookup(sc, OFF2BNO(bp->bio_offset, sc));