Lines Matching refs:nr_pages

1082 		unsigned long start, unsigned long nr_pages,  in __get_user_pages()  argument
1090 if (!nr_pages) in __get_user_pages()
1133 &start, &nr_pages, i, in __get_user_pages()
1197 if (page_increm > nr_pages) in __get_user_pages()
1198 page_increm = nr_pages; in __get_user_pages()
1201 nr_pages -= page_increm; in __get_user_pages()
1202 } while (nr_pages); in __get_user_pages()
1311 unsigned long nr_pages, in __get_user_pages_locked() argument
1345 ret = __get_user_pages(mm, start, nr_pages, flags, pages, in __get_user_pages_locked()
1354 BUG_ON(ret >= nr_pages); in __get_user_pages_locked()
1358 nr_pages -= ret; in __get_user_pages_locked()
1360 if (!nr_pages) in __get_user_pages_locked()
1418 nr_pages--; in __get_user_pages_locked()
1420 if (!nr_pages) in __get_user_pages_locked()
1461 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local
1492 return __get_user_pages(mm, start, nr_pages, gup_flags, in populate_vma_page_range()
1523 unsigned long nr_pages = (end - start) / PAGE_SIZE; in faultin_vma_page_range() local
1553 return __get_user_pages(mm, start, nr_pages, gup_flags, in faultin_vma_page_range()
1618 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked() argument
1634 for (i = 0; i < nr_pages; i++) { in __get_user_pages_locked()
1727 unsigned long nr_pages; in fault_in_safe_writeable() local
1743 nr_pages = (nend - nstart) / PAGE_SIZE; in fault_in_safe_writeable()
1744 ret = __get_user_pages_locked(mm, nstart, nr_pages, in fault_in_safe_writeable()
1835 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages() argument
1851 for (i = 0; i < nr_pages; i++) { in check_and_migrate_movable_pages()
1888 return nr_pages; in check_and_migrate_movable_pages()
1891 unpin_user_pages(pages, nr_pages); in check_and_migrate_movable_pages()
1893 for (i = 0; i < nr_pages; i++) in check_and_migrate_movable_pages()
1907 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages() argument
1911 return nr_pages; in check_and_migrate_movable_pages()
1921 unsigned long nr_pages, in __gup_longterm_locked() argument
1930 return __get_user_pages_locked(mm, start, nr_pages, pages, vmas, in __gup_longterm_locked()
1934 rc = __get_user_pages_locked(mm, start, nr_pages, pages, vmas, in __gup_longterm_locked()
1966 unsigned long start, unsigned long nr_pages, in __get_user_pages_remote() argument
1984 return __gup_longterm_locked(mm, start, nr_pages, pages, in __get_user_pages_remote()
1989 return __get_user_pages_locked(mm, start, nr_pages, pages, vmas, in __get_user_pages_remote()
2055 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() argument
2062 return __get_user_pages_remote(mm, start, nr_pages, gup_flags, in get_user_pages_remote()
2069 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() argument
2077 unsigned long start, unsigned long nr_pages, in __get_user_pages_remote() argument
2101 long get_user_pages(unsigned long start, unsigned long nr_pages, in get_user_pages() argument
2108 return __gup_longterm_locked(current->mm, start, nr_pages, in get_user_pages()
2147 long get_user_pages_locked(unsigned long start, unsigned long nr_pages, in get_user_pages_locked() argument
2166 return __get_user_pages_locked(current->mm, start, nr_pages, in get_user_pages_locked()
2187 long get_user_pages_unlocked(unsigned long start, unsigned long nr_pages, in get_user_pages_unlocked() argument
2204 ret = __get_user_pages_locked(mm, start, nr_pages, pages, NULL, in get_user_pages_unlocked()
2764 static int __gup_longterm_unlocked(unsigned long start, int nr_pages, in __gup_longterm_unlocked() argument
2776 start, nr_pages, in __gup_longterm_unlocked()
2780 ret = get_user_pages_unlocked(start, nr_pages, in __gup_longterm_unlocked()
2835 unsigned long nr_pages, in internal_get_user_pages_fast() argument
2855 len = nr_pages << PAGE_SHIFT; in internal_get_user_pages_fast()
2862 if (nr_pinned == nr_pages || gup_flags & FOLL_FAST_ONLY) in internal_get_user_pages_fast()
2868 ret = __gup_longterm_unlocked(start, nr_pages - nr_pinned, gup_flags, in internal_get_user_pages_fast()
2902 int get_user_pages_fast_only(unsigned long start, int nr_pages, in get_user_pages_fast_only() argument
2915 nr_pinned = internal_get_user_pages_fast(start, nr_pages, gup_flags, in get_user_pages_fast_only()
2947 int get_user_pages_fast(unsigned long start, int nr_pages, in get_user_pages_fast() argument
2960 return internal_get_user_pages_fast(start, nr_pages, gup_flags, pages); in get_user_pages_fast()
2980 int pin_user_pages_fast(unsigned long start, int nr_pages, in pin_user_pages_fast() argument
2988 return internal_get_user_pages_fast(start, nr_pages, gup_flags, pages); in pin_user_pages_fast()
2998 int pin_user_pages_fast_only(unsigned long start, int nr_pages, in pin_user_pages_fast_only() argument
3014 nr_pinned = internal_get_user_pages_fast(start, nr_pages, gup_flags, in pin_user_pages_fast_only()
3052 unsigned long start, unsigned long nr_pages, in pin_user_pages_remote() argument
3061 return __get_user_pages_remote(mm, start, nr_pages, gup_flags, in pin_user_pages_remote()
3084 long pin_user_pages(unsigned long start, unsigned long nr_pages, in pin_user_pages() argument
3093 return __gup_longterm_locked(current->mm, start, nr_pages, in pin_user_pages()
3103 long pin_user_pages_unlocked(unsigned long start, unsigned long nr_pages, in pin_user_pages_unlocked() argument
3111 return get_user_pages_unlocked(start, nr_pages, pages, gup_flags); in pin_user_pages_unlocked()
3120 long pin_user_pages_locked(unsigned long start, unsigned long nr_pages, in pin_user_pages_locked() argument
3138 return __get_user_pages_locked(current->mm, start, nr_pages, in pin_user_pages_locked()