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