Lines Matching defs:last_pg
362 int last_pg;
424 for (last_pg = pages_in_upl - 1; last_pg >= first_pg; last_pg--) {
425 if (upl_page_present(pl, last_pg))
427 if (last_pg == first_pg) {
436 pages_in_upl = last_pg + 1;
437 last_pg = first_pg;
439 while (last_pg < pages_in_upl) {
443 for ( ; last_pg < pages_in_upl; last_pg++) {
444 if (upl_page_present(pl, last_pg))
450 for (start_pg = last_pg; last_pg < pages_in_upl; last_pg++) {
451 if (!upl_valid_page(pl, last_pg))
454 if (last_pg > start_pg) {
461 xsize = (last_pg - start_pg) * PAGE_SIZE;
466 if (last_pg == pages_in_upl)
474 if (!upl_page_present(pl, last_pg)) {
480 last_pg++;
489 for (start_pg = last_pg; last_pg < pages_in_upl; last_pg++) {
490 if (upl_valid_page(pl, last_pg) || !upl_page_present(pl, last_pg))
493 if (last_pg > start_pg) {
495 xsize = (last_pg - start_pg) * PAGE_SIZE;