Lines Matching refs:cur_pg
2443 int count, err, align_mask, cur_pg, last_pg;
2637 cur_pg = next_pg;
2639 was_valid = upl_valid_page(pl, cur_pg);
2640 was_dirty = (was_valid && upl_dirty_page(pl, cur_pg));
2642 for (next_pg = cur_pg + 1; next_pg < last_pg;
2652 count = (next_pg - cur_pg) << PAGE_SHIFT;
2666 ubc_upl_abort_range(upl, cur_pg << PAGE_SHIFT,
2677 ubc_upl_commit_range(upl, cur_pg << PAGE_SHIFT, count,
2703 for (cur_pg = 0; cur_pg < last_pg; cur_pg++) {
2707 if (!upl_valid_page(pl, cur_pg) || (ioflags & IO_NOCACHE &&
2708 !upl_dirty_page(pl, cur_pg)))
2710 ubc_upl_abort_range(upl, cur_pg << PAGE_SHIFT, PAGE_SIZE,