• Home
  • Raw
  • Download

Lines Matching refs:maxpages

990 			    size_t start, unsigned int maxpages)  in want_pages_array()  argument
994 if (count > maxpages) in want_pages_array()
995 count = maxpages; in want_pages_array()
1034 unsigned maxpages, size_t *_start_offset) in iter_xarray_get_pages() argument
1045 count = want_pages_array(pages, maxsize, offset, maxpages); in iter_xarray_get_pages()
1098 unsigned int maxpages, size_t *start) in __iov_iter_get_pages_alloc() argument
1121 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc()
1136 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc()
1153 return iter_xarray_get_pages(i, pages, maxsize, maxpages, start); in __iov_iter_get_pages_alloc()
1158 size_t maxsize, unsigned maxpages, size_t *start) in iov_iter_get_pages2() argument
1160 if (!maxpages) in iov_iter_get_pages2()
1164 return __iov_iter_get_pages_alloc(i, &pages, maxsize, maxpages, start); in iov_iter_get_pages2()
1256 static int iov_npages(const struct iov_iter *i, int maxpages) in iov_npages() argument
1269 if (unlikely(npages > maxpages)) in iov_npages()
1270 return maxpages; in iov_npages()
1276 static int bvec_npages(const struct iov_iter *i, int maxpages) in bvec_npages() argument
1288 if (unlikely(npages > maxpages)) in bvec_npages()
1289 return maxpages; in bvec_npages()
1294 int iov_iter_npages(const struct iov_iter *i, int maxpages) in iov_iter_npages() argument
1301 return min(npages, maxpages); in iov_iter_npages()
1305 return iov_npages(i, maxpages); in iov_iter_npages()
1307 return bvec_npages(i, maxpages); in iov_iter_npages()
1311 return min(npages, maxpages); in iov_iter_npages()
1606 unsigned int maxpages, in iov_iter_extract_xarray_pages() argument
1619 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_xarray_pages()
1620 if (!maxpages) in iov_iter_extract_xarray_pages()
1636 if (nr == maxpages) in iov_iter_extract_xarray_pages()
1652 unsigned int maxpages, in iov_iter_extract_bvec_pages() argument
1677 maxpages = want_pages_array(pages, size, offset, maxpages); in iov_iter_extract_bvec_pages()
1678 if (!maxpages) in iov_iter_extract_bvec_pages()
1681 for (k = 0; k < maxpages; k++) in iov_iter_extract_bvec_pages()
1684 size = min_t(size_t, size, maxpages * PAGE_SIZE - offset); in iov_iter_extract_bvec_pages()
1695 unsigned int maxpages, in iov_iter_extract_kvec_pages() argument
1720 maxpages = want_pages_array(pages, size, offset, maxpages); in iov_iter_extract_kvec_pages()
1721 if (!maxpages) in iov_iter_extract_kvec_pages()
1727 for (k = 0; k < maxpages; k++) { in iov_iter_extract_kvec_pages()
1740 size = min_t(size_t, size, maxpages * PAGE_SIZE - offset); in iov_iter_extract_kvec_pages()
1760 unsigned int maxpages, in iov_iter_extract_user_pages() argument
1779 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_user_pages()
1780 if (!maxpages) in iov_iter_extract_user_pages()
1782 res = pin_user_pages_fast(addr, maxpages, gup_flags, *pages); in iov_iter_extract_user_pages()
1836 unsigned int maxpages, in iov_iter_extract_pages() argument
1846 maxpages, extraction_flags, in iov_iter_extract_pages()
1850 maxpages, extraction_flags, in iov_iter_extract_pages()
1854 maxpages, extraction_flags, in iov_iter_extract_pages()
1858 maxpages, extraction_flags, in iov_iter_extract_pages()