Lines Matching defs:lastpg
2031 int firstpg, lastpg;
2035 lastpg = (on+n-1)/PAGE_SIZE;
2036 pagemask = ((1 << (lastpg+1)) - 1) & ~((1 << firstpg) - 1);
2051 if (NBPGDIRTY(bp,firstpg) || NBPGDIRTY(bp,lastpg)) {
2054 if (NBPGDIRTY(bp,lastpg)) {
2055 bp->nb_dirtyend = (lastpg+1) * PAGE_SIZE;
2185 int firstpg, lastpg, dirtypg;
2190 lastpg = (on+n-1)/PAGE_SIZE;
2197 if (lastpgoff && !NBPGVALID(bp,lastpg)) {
2200 start = (lastpg * PAGE_SIZE) + lastpgoff;
2201 end = (lastpg + 1) * PAGE_SIZE;