Lines Matching refs:bio_length
181 KASSERT(OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc) >= in g_cache_deliver()
186 len = MIN(bp->bio_offset + bp->bio_length, off1 + sc->sc_bsize) - off; in g_cache_deliver()
195 KASSERT(bp->bio_completed <= bp->bio_length, ("extra data")); in g_cache_deliver()
196 if (bp->bio_completed == bp->bio_length) { in g_cache_deliver()
309 cbp->bio_length = sc->sc_bsize; in g_cache_read()
322 lim = OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc); in g_cache_invalidate()
356 sc->sc_readbytes += bp->bio_length; in g_cache_start()
359 if (bp->bio_offset + bp->bio_length > sc->sc_tail) in g_cache_start()
362 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) { in g_cache_start()
364 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start()
368 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start()
371 OFF2BNO(bp->bio_offset + bp->bio_length - 1, sc)) { in g_cache_start()
379 sc->sc_cachereadbytes += bp->bio_length; in g_cache_start()
385 sc->sc_cachereadbytes -= bp->bio_length; in g_cache_start()
391 sc->sc_wrotebytes += bp->bio_length; in g_cache_start()