Lines Matching defs:nr_pages
212 * @nr_pages: number of pages to pack into the scatter/gather list
218 struct page **pdata, int nr_pages, size_t offs, int count)
224 BUG_ON(nr_pages > (limit - start));
229 while (nr_pages) {
239 nr_pages--;
315 int nr_pages;
337 nr_pages = DIV_ROUND_UP(n + *offs, PAGE_SIZE);
338 atomic_add(nr_pages, &vp_pinned);
358 nr_pages = DIV_ROUND_UP((unsigned long)p + len, PAGE_SIZE) -
361 *pages = kmalloc_array(nr_pages, sizeof(struct page *),
368 for (index = 0; index < nr_pages; index++) {