Lines Matching refs:nr_pages
149 increase_reservation(unsigned long nr_pages) in increase_reservation() argument
161 if (nr_pages > nitems(frame_list)) in increase_reservation()
162 nr_pages = nitems(frame_list); in increase_reservation()
165 i < nr_pages; i++, page = TAILQ_NEXT(page, plinks.q)) { in increase_reservation()
171 reservation.nr_extents = nr_pages; in increase_reservation()
174 if (rc < nr_pages) { in increase_reservation()
190 for (i = 0; i < nr_pages; i++) { in increase_reservation()
202 bs.current_pages += nr_pages; in increase_reservation()
209 decrease_reservation(unsigned long nr_pages) in decrease_reservation() argument
222 if (nr_pages > nitems(frame_list)) in decrease_reservation()
223 nr_pages = nitems(frame_list); in decrease_reservation()
225 for (i = 0; i < nr_pages; i++) { in decrease_reservation()
233 nr_pages = i; in decrease_reservation()
245 reservation.nr_extents = nr_pages; in decrease_reservation()
247 KASSERT(ret == nr_pages, ("HYPERVISOR_memory_op failed")); in decrease_reservation()
249 bs.current_pages -= nr_pages; in decrease_reservation()