Lines Matching refs:nr_pages
10 unsigned long nr_pages, unsigned int gup_test_flags) in put_back_pages() argument
17 for (i = 0; i < nr_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()
30 for (i = 0; i < nr_pages; i++) in put_back_pages()
39 unsigned long nr_pages) in verify_dma_pinned() argument
48 for (i = 0; i < nr_pages; i++) { in verify_dma_pinned()
68 unsigned long nr_pages) in dump_pages_test() argument
78 if (gup->which_pages[i] > nr_pages) { in dump_pages_test()
102 unsigned long i, nr_pages, addr, next; in __gup_test_ioctl() local
112 nr_pages = gup->size / PAGE_SIZE; in __gup_test_ioctl()
113 pages = kvcalloc(nr_pages, sizeof(void *), GFP_KERNEL); in __gup_test_ioctl()
177 nr_pages = i; 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()