Lines Matching refs:firstpg
2105 int pg, firstpg, lastpg, dirtypg;
2106 dirtypg = firstpg = lastpg = -1;
2110 if (firstpg < 0)
2111 firstpg = pg;
2113 } else if (firstpg >= 0 && dirtypg < 0 && NBPGDIRTY(bp,pg))
2119 if (firstpg < 0) {
2131 if (((dirtypg > firstpg) && (dirtypg < lastpg)) ||
2132 (((firstpg*PAGE_SIZE) < bp->nb_dirtyend) && (((lastpg+1)*PAGE_SIZE) > bp->nb_dirtyoff))) {
2151 (lastpg - firstpg + 1) > (biosize/PAGE_SIZE)/2) {
2161 auio = uio_createwithbuffer(1, (NBOFF(bp) + firstpg * PAGE_SIZE_64),
2166 uio_addiov(auio, CAST_USER_ADDR_T(bp->nb_data + (firstpg * PAGE_SIZE)),
2167 ((lastpg - firstpg + 1) * PAGE_SIZE));
2188 for (pg=firstpg; pg <= lastpg; pg++)
2285 int iomode, doff, dend, firstpg, lastpg;
2407 firstpg = round_page_32(doff) / PAGE_SIZE;
2410 pagemask = ((1 << (lastpg + 1)) - 1) & ~((1 << firstpg) - 1);
2497 int firstpg, lastpg;
2507 firstpg = round_page_32(bp->nb_offio) / PAGE_SIZE;
2510 pagemask = ((1 << (lastpg + 1)) - 1) & ~((1 << firstpg) - 1);