Lines Matching refs:pages
9 static void put_back_pages(unsigned int cmd, struct page **pages, in put_back_pages() argument
18 put_page(pages[i]); in put_back_pages()
24 unpin_user_pages(pages, nr_pages); in put_back_pages()
28 unpin_user_pages(pages, nr_pages); in put_back_pages()
31 put_page(pages[i]); in put_back_pages()
38 static void verify_dma_pinned(unsigned int cmd, struct page **pages, in verify_dma_pinned() argument
49 page = pages[i]; in verify_dma_pinned()
67 static void dump_pages_test(struct gup_test *gup, struct page **pages, in dump_pages_test() argument
92 dump_page(pages[index_to_dump], in dump_pages_test()
104 struct page **pages; in __gup_test_ioctl() local
113 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in __gup_test_ioctl()
114 if (!pages) in __gup_test_ioctl()
138 pages + i); in __gup_test_ioctl()
141 nr = get_user_pages(addr, nr, gup->gup_flags, pages + i, in __gup_test_ioctl()
146 pages + i); in __gup_test_ioctl()
149 nr = pin_user_pages(addr, nr, gup->gup_flags, pages + i, in __gup_test_ioctl()
155 pages + i, NULL); in __gup_test_ioctl()
160 pages + i, NULL); in __gup_test_ioctl()
163 pages + i, NULL); in __gup_test_ioctl()
186 verify_dma_pinned(cmd, pages, nr_pages); in __gup_test_ioctl()
189 dump_pages_test(gup, pages, nr_pages); in __gup_test_ioctl()
193 put_back_pages(cmd, pages, nr_pages, gup->test_flags); in __gup_test_ioctl()
202 kvfree(pages); in __gup_test_ioctl()