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