Lines Matching defs:nr_pages
18 static int fill_list(unsigned int nr_pages)
23 unsigned int i, alloc_pages = round_up(nr_pages, PAGES_PER_SECTION);
107 * @nr_pages: Number of pages
111 int xen_alloc_unpopulated_pages(unsigned int nr_pages, struct page **pages)
117 if (list_count < nr_pages) {
118 ret = fill_list(nr_pages - list_count);
123 for (i = 0; i < nr_pages; i++) {
156 * @nr_pages: Number of pages
159 void xen_free_unpopulated_pages(unsigned int nr_pages, struct page **pages)
164 for (i = 0; i < nr_pages; i++) {