Lines Matching defs:last_page
84 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1);
85 blk->pages = blk->last_page - blk->first_page + 1;
152 for (pg = blk->first_page; pg <= blk->last_page; pg++) {
192 for (pg = blk->first_page; pg <= blk->last_page; pg++) {
218 page = blk->last_page + 1;
328 for (page = blk->first_page; page <= blk->last_page; page++, idx++) {
458 int first_page, last_page;
463 if (q->last_page == first_page)
466 last_page = blk->last_page;
470 if (q->first_page == last_page)
471 last_page--; /* last page was already allocated */
474 *last_page_ret = last_page;
479 int last_page)
487 for (page = first_page; page <= last_page; page++) {
512 int page, first_page, last_page;
516 get_single_page_range(emu->memhdr, blk, &first_page, &last_page);
518 for (page = first_page; page <= last_page; page++) {
533 last_page = page - 1;
534 __synth_free_pages(emu, first_page, last_page);
544 int first_page, last_page;
546 get_single_page_range(emu->memhdr, blk, &first_page, &last_page);
547 __synth_free_pages(emu, first_page, last_page);