Lines Matching full:pages
10 static void put_back_pages(unsigned int cmd, struct page **pages, in put_back_pages() argument
19 put_page(pages[i]); in put_back_pages()
25 unpin_user_pages(pages, nr_pages); in put_back_pages()
29 unpin_user_pages(pages, nr_pages); in put_back_pages()
32 put_page(pages[i]); in put_back_pages()
39 static void verify_dma_pinned(unsigned int cmd, struct page **pages, in verify_dma_pinned() argument
50 folio = page_folio(pages[i]); in verify_dma_pinned()
53 "pages[%lu] is NOT dma-pinned\n", i)) { in verify_dma_pinned()
59 "pages[%lu] is NOT pinnable but pinned\n", in verify_dma_pinned()
69 static void dump_pages_test(struct gup_test *gup, struct page **pages, in dump_pages_test() argument
94 dump_page(pages[index_to_dump], in dump_pages_test()
106 struct page **pages; in __gup_test_ioctl() local
115 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in __gup_test_ioctl()
116 if (!pages) in __gup_test_ioctl()
140 pages + i); in __gup_test_ioctl()
143 nr = get_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl()
147 pages + i); in __gup_test_ioctl()
150 nr = pin_user_pages(addr, nr, gup->gup_flags, pages + i); in __gup_test_ioctl()
155 pages + i); in __gup_test_ioctl()
160 pages + i); in __gup_test_ioctl()
163 pages + i); in __gup_test_ioctl()
184 * state: print a warning if any non-dma-pinned pages are found: 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()
227 struct page **pages; in pin_longterm_test_start() local
248 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in pin_longterm_test_start()
249 if (!pages) in pin_longterm_test_start()
257 kvfree(pages); in pin_longterm_test_start()
261 pin_longterm_test_pages = pages; in pin_longterm_test_start()
270 gup_flags, pages); in pin_longterm_test_start()
273 gup_flags, pages); in pin_longterm_test_start()
280 pages += cur_pages; in pin_longterm_test_start()