Lines Matching defs:lastpg
2649 int firstpg, lastpg;
2653 lastpg = (on+n-1)/PAGE_SIZE;
2654 pagemask = ((1 << (lastpg+1)) - 1) & ~((1 << firstpg) - 1);
2669 if (NBPGDIRTY(bp,firstpg) || NBPGDIRTY(bp,lastpg)) {
2672 if (NBPGDIRTY(bp,lastpg)) {
2673 bp->nb_dirtyend = (lastpg+1) * PAGE_SIZE;
2805 int firstpg, lastpg, dirtypg;
2810 lastpg = (on+n-1)/PAGE_SIZE;
2817 if (lastpgoff && !NBPGVALID(bp,lastpg)) {
2820 start = (lastpg * PAGE_SIZE) + lastpgoff;
2821 end = (lastpg + 1) * PAGE_SIZE;