Lines Matching refs:firstpg
2069 int pg, firstpg, lastpg, dirtypg;
2070 dirtypg = firstpg = lastpg = -1;
2074 if (firstpg < 0)
2075 firstpg = pg;
2077 } else if (firstpg >= 0 && dirtypg < 0 && NBPGDIRTY(bp,pg))
2083 if (firstpg < 0) {
2095 if (((dirtypg > firstpg) && (dirtypg < lastpg)) ||
2096 (((firstpg*PAGE_SIZE) < bp->nb_dirtyend) && (((lastpg+1)*PAGE_SIZE) > bp->nb_dirtyoff))) {
2115 (lastpg - firstpg + 1) > (biosize/PAGE_SIZE)/2) {
2125 auio = uio_createwithbuffer(1, (NBOFF(bp) + firstpg * PAGE_SIZE_64),
2130 uio_addiov(auio, CAST_USER_ADDR_T((bp->nb_data + firstpg * PAGE_SIZE)),
2131 ((lastpg - firstpg + 1) * PAGE_SIZE));
2152 for (pg=firstpg; pg <= lastpg; pg++)
2376 int iomode, doff, dend, firstpg, lastpg;
2495 firstpg = round_page_32(doff) / PAGE_SIZE;
2498 pagemask = ((1 << (lastpg + 1)) - 1) & ~((1 << firstpg) - 1);
2585 int firstpg, lastpg;
2595 firstpg = round_page_32(bp->nb_offio) / PAGE_SIZE;
2598 pagemask = ((1 << (lastpg + 1)) - 1) & ~((1 << firstpg) - 1);