Lines Matching defs:pages
16 * @nr_frames: number of pages / pfns from start to map
18 * @vec: structure which receives pages / pfns of the addresses mapped.
22 * with page frame numbers or page pointers to corresponding pages (choice
24 * belongs to a normal vma, the function grabs reference to each of the pages
29 * The function returns number of pages mapped which may be less than
72 * put_vaddr_frames() - drop references to pages if get_vaddr_frames() acquired
76 * Drop references to pages if get_vaddr_frames() acquired them. We also
82 struct page **pages;
86 pages = frame_vector_pages(vec);
89 * get_vaddr_frames() got pages but vec was later converted to pfns.
92 if (WARN_ON(IS_ERR(pages)))
95 unpin_user_pages(pages, vec->nr_frames);
114 struct page **pages;
122 pages = (struct page **)nums;
124 pages[i] = pfn_to_page(nums[i]);
140 struct page **pages;
144 pages = (struct page **)(vec->ptrs);
145 nums = (unsigned long *)pages;
147 nums[i] = page_to_pfn(pages[i]);