Lines Matching full:pages
16 * @nr_frames: number of pages / pfns from start to map
17 * @vec: structure which receives pages / pfns of the addresses mapped.
21 * with page frame numbers or page pointers to corresponding pages (choice
23 * belongs to a normal vma, the function grabs reference to each of the pages
28 * The function returns number of pages mapped which may be less than
66 * put_vaddr_frames() - drop references to pages if get_vaddr_frames() acquired
70 * Drop references to pages if get_vaddr_frames() acquired them. We also
76 struct page **pages; in put_vaddr_frames() local
80 pages = frame_vector_pages(vec); in put_vaddr_frames()
83 * get_vaddr_frames() got pages but vec was later converted to pfns. in put_vaddr_frames()
86 if (WARN_ON(IS_ERR(pages))) in put_vaddr_frames()
89 unpin_user_pages(pages, vec->nr_frames); in put_vaddr_frames()
108 struct page **pages; in frame_vector_to_pages() local
116 pages = (struct page **)nums; in frame_vector_to_pages()
118 pages[i] = pfn_to_page(nums[i]); in frame_vector_to_pages()
134 struct page **pages; in frame_vector_to_pfns() local
138 pages = (struct page **)(vec->ptrs); in frame_vector_to_pfns()
139 nums = (unsigned long *)pages; in frame_vector_to_pfns()
141 nums[i] = page_to_pfn(pages[i]); in frame_vector_to_pfns()