Lines Matching refs:numsec
1079 off_t start, numsec; in g_union_setmap() local
1087 numsec = bp->bio_length / sc->sc_sectorsize; in g_union_setmap()
1088 KASSERT(start + numsec <= sc->sc_map_size, in g_union_setmap()
1089 ("g_union_setmap: block %jd is out of range", start + numsec)); in g_union_setmap()
1090 for ( ; numsec > 0; numsec--, start++) { in g_union_setmap()
1113 off_t start, numsec, leafresid, bitloc; in g_union_getmap() local
1123 numsec = bp->bio_length / sc->sc_sectorsize; in g_union_getmap()
1125 numsec, start); in g_union_getmap()
1126 KASSERT(start + numsec <= sc->sc_map_size, in g_union_getmap()
1127 ("g_union_getmap: block %jd is out of range", start + numsec)); in g_union_getmap()
1131 while (numsec > 0) { in g_union_getmap()
1144 numsec -= leafresid; in g_union_getmap()
1163 numsec -= BITS_PER_ENTRY; in g_union_getmap()
1174 numsec--; in g_union_getmap()
1182 if (numsec < 0) { in g_union_getmap()
1183 start += numsec; in g_union_getmap()
1184 numsec = 0; in g_union_getmap()
1186 *len2read = bp->bio_length - (numsec * sc->sc_sectorsize); in g_union_getmap()