Searched refs:OFF2BNO (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/geom/cache/ |
H A D | g_cache.c | 108 #define OFF2BNO(off, sc) ((off) >> (sc)->sc_bshift) macro 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() 204 } else if (OFF2BNO(off + len, sc) > dp->d_bno) { 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() 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() 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() [all …]
|