Lines Matching refs:nr_pages

326 static enum bp_state increase_reservation(unsigned long nr_pages)  in increase_reservation()  argument
339 nr_pages = min(nr_pages, balloon_stats.balloon_hotplug); in increase_reservation()
340 balloon_stats.hotplug_pages += nr_pages; in increase_reservation()
341 balloon_stats.balloon_hotplug -= nr_pages; in increase_reservation()
346 if (nr_pages > ARRAY_SIZE(frame_list)) in increase_reservation()
347 nr_pages = ARRAY_SIZE(frame_list); in increase_reservation()
350 for (i = 0; i < nr_pages; i++) { in increase_reservation()
352 nr_pages = i; in increase_reservation()
360 reservation.nr_extents = nr_pages; in increase_reservation()
396 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) in decrease_reservation() argument
410 nr_pages = min(nr_pages, balloon_stats.hotplug_pages); in decrease_reservation()
411 balloon_stats.hotplug_pages -= nr_pages; in decrease_reservation()
412 balloon_stats.balloon_hotplug += nr_pages; in decrease_reservation()
417 if (nr_pages > ARRAY_SIZE(frame_list)) in decrease_reservation()
418 nr_pages = ARRAY_SIZE(frame_list); in decrease_reservation()
420 for (i = 0; i < nr_pages; i++) { in decrease_reservation()
423 nr_pages = i; in decrease_reservation()
442 for (i = 0; i < nr_pages; i++) { in decrease_reservation()
465 reservation.nr_extents = nr_pages; in decrease_reservation()
467 BUG_ON(ret != nr_pages); in decrease_reservation()
469 balloon_stats.current_pages -= nr_pages; in decrease_reservation()
531 int alloc_xenballooned_pages(int nr_pages, struct page **pages, bool highmem) in alloc_xenballooned_pages() argument
536 while (pgno < nr_pages) { in alloc_xenballooned_pages()
544 st = decrease_reservation(nr_pages - pgno, in alloc_xenballooned_pages()
567 void free_xenballooned_pages(int nr_pages, struct page **pages) in free_xenballooned_pages() argument
573 for (i = 0; i < nr_pages; i++) { in free_xenballooned_pages()
618 ? min(xen_start_info->nr_pages - xen_released_pages, max_pfn) in balloon_init()