Lines Matching refs:bio_offset
179 KASSERT(OFF2BNO(bp->bio_offset, sc) <= dp->d_bno, ("wrong entry"));
180 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >=
184 off = MAX(bp->bio_offset, off1);
185 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off;
191 bp->bio_data + (off - bp->bio_offset), len);
267 OFF2BNO(bp->bio_offset + bp->bio_completed, sc));
295 dp->d_bno = OFF2BNO(bp->bio_offset + bp->bio_completed, sc);
306 cbp->bio_offset = BNO2OFF(dp->d_bno, sc);
320 bno = OFF2BNO(bp->bio_offset, sc);
321 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc);
358 if (bp->bio_offset + bp->bio_length > sc->sc_tail)
360 if (OFF2BNO(bp->bio_offset, sc) ==
361 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) {
369 } else if (OFF2BNO(bp->bio_offset, sc) + 1 ==
370 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) {
372 dp = g_cache_lookup(sc, OFF2BNO(bp->bio_offset, sc));