Lines Matching defs:nr_pages
34 static int fill_list(unsigned int nr_pages)
39 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION);
154 * @nr_pages: Number of pages
158 int xen_alloc_unpopulated_pages(unsigned int nr_pages, struct page **pages)
169 return xen_alloc_ballooned_pages(nr_pages, pages);
172 if (list_count < nr_pages) {
173 ret = fill_list(nr_pages - list_count);
178 for (i = 0; i < nr_pages; i++) {
211 * @nr_pages: Number of pages
214 void xen_free_unpopulated_pages(unsigned int nr_pages, struct page **pages)
219 xen_free_ballooned_pages(nr_pages, pages);
224 for (i = 0; i < nr_pages; i++) {