Lines Matching full:pages
24 static void put_back_pages(unsigned int cmd, struct page **pages, in put_back_pages() argument
33 put_page(pages[i]); in put_back_pages()
39 unpin_user_pages(pages, nr_pages); in put_back_pages()
44 static void verify_dma_pinned(unsigned int cmd, struct page **pages, in verify_dma_pinned() argument
55 page = pages[i]; in verify_dma_pinned()
57 "pages[%lu] is NOT dma-pinned\n", i)) { in verify_dma_pinned()
73 struct page **pages; in __gup_benchmark_ioctl() local
82 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in __gup_benchmark_ioctl()
83 if (!pages) in __gup_benchmark_ioctl()
110 pages + i); in __gup_benchmark_ioctl()
113 nr = get_user_pages(addr, nr, gup->flags, pages + i, in __gup_benchmark_ioctl()
118 pages + i); in __gup_benchmark_ioctl()
121 nr = pin_user_pages(addr, nr, gup->flags, pages + i, in __gup_benchmark_ioctl()
127 pages + i, NULL); in __gup_benchmark_ioctl()
148 * state: print a warning if any non-dma-pinned pages are found: in __gup_benchmark_ioctl()
150 verify_dma_pinned(cmd, pages, nr_pages); in __gup_benchmark_ioctl()
154 put_back_pages(cmd, pages, nr_pages); in __gup_benchmark_ioctl()
163 kvfree(pages); in __gup_benchmark_ioctl()