Lines Matching refs:maxsize
1307 struct page ***pages, size_t maxsize, unsigned maxpages, in pipe_get_pages() argument
1320 count = want_pages_array(pages, maxsize, off, min(npages, maxpages)); in pipe_get_pages()
1324 for (npages = 0, left = maxsize ; npages < count; npages++, left -= chunk) { in pipe_get_pages()
1333 return maxsize - left; in pipe_get_pages()
1364 struct page ***pages, size_t maxsize, in iter_xarray_get_pages() argument
1376 count = want_pages_array(pages, maxsize, offset, maxpages); in iter_xarray_get_pages()
1383 maxsize = min_t(size_t, nr * PAGE_SIZE - offset, maxsize); in iter_xarray_get_pages()
1384 i->iov_offset += maxsize; in iter_xarray_get_pages()
1385 i->count -= maxsize; in iter_xarray_get_pages()
1386 return maxsize; in iter_xarray_get_pages()
1427 struct page ***pages, size_t maxsize, in __iov_iter_get_pages_alloc() argument
1433 if (maxsize > i->count) in __iov_iter_get_pages_alloc()
1434 maxsize = i->count; in __iov_iter_get_pages_alloc()
1435 if (!maxsize) in __iov_iter_get_pages_alloc()
1437 if (maxsize > MAX_RW_COUNT) in __iov_iter_get_pages_alloc()
1438 maxsize = MAX_RW_COUNT; in __iov_iter_get_pages_alloc()
1451 addr = first_iovec_segment(i, &maxsize); in __iov_iter_get_pages_alloc()
1454 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc()
1460 maxsize = min_t(size_t, maxsize, res * PAGE_SIZE - *start); in __iov_iter_get_pages_alloc()
1461 iov_iter_advance(i, maxsize); in __iov_iter_get_pages_alloc()
1462 return maxsize; in __iov_iter_get_pages_alloc()
1468 page = first_bvec_segment(i, &maxsize, start); in __iov_iter_get_pages_alloc()
1469 n = want_pages_array(pages, maxsize, *start, maxpages); in __iov_iter_get_pages_alloc()
1475 maxsize = min_t(size_t, maxsize, n * PAGE_SIZE - *start); in __iov_iter_get_pages_alloc()
1476 i->count -= maxsize; in __iov_iter_get_pages_alloc()
1477 i->iov_offset += maxsize; in __iov_iter_get_pages_alloc()
1483 return maxsize; in __iov_iter_get_pages_alloc()
1486 return pipe_get_pages(i, pages, maxsize, maxpages, start); in __iov_iter_get_pages_alloc()
1488 return iter_xarray_get_pages(i, pages, maxsize, maxpages, start); in __iov_iter_get_pages_alloc()
1493 struct page **pages, size_t maxsize, unsigned maxpages, in iov_iter_get_pages() argument
1500 return __iov_iter_get_pages_alloc(i, &pages, maxsize, maxpages, in iov_iter_get_pages()
1506 size_t maxsize, unsigned maxpages, size_t *start) in iov_iter_get_pages2() argument
1508 return iov_iter_get_pages(i, pages, maxsize, maxpages, start, 0); in iov_iter_get_pages2()
1513 struct page ***pages, size_t maxsize, in iov_iter_get_pages_alloc() argument
1520 len = __iov_iter_get_pages_alloc(i, pages, maxsize, ~0U, start, in iov_iter_get_pages_alloc()
1531 struct page ***pages, size_t maxsize, size_t *start) in iov_iter_get_pages_alloc2() argument
1533 return iov_iter_get_pages_alloc(i, pages, maxsize, start, 0); in iov_iter_get_pages_alloc2()
1930 struct page ***pages, size_t maxsize, in iov_iter_extract_xarray_pages() argument
1944 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_xarray_pages()
1966 maxsize = min_t(size_t, nr * PAGE_SIZE - offset, maxsize); in iov_iter_extract_xarray_pages()
1967 iov_iter_advance(i, maxsize); in iov_iter_extract_xarray_pages()
1968 return maxsize; in iov_iter_extract_xarray_pages()
1976 struct page ***pages, size_t maxsize, in iov_iter_extract_bvec_pages() argument
1988 maxsize = min(maxsize, i->bvec->bv_len - skip); in iov_iter_extract_bvec_pages()
1989 if (maxsize) in iov_iter_extract_bvec_pages()
2002 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_bvec_pages()
2009 maxsize = min_t(size_t, maxsize, maxpages * PAGE_SIZE - offset); in iov_iter_extract_bvec_pages()
2010 iov_iter_advance(i, maxsize); in iov_iter_extract_bvec_pages()
2011 return maxsize; in iov_iter_extract_bvec_pages()
2019 struct page ***pages, size_t maxsize, in iov_iter_extract_kvec_pages() argument
2032 maxsize = min(maxsize, i->kvec->iov_len - skip); in iov_iter_extract_kvec_pages()
2033 if (maxsize) in iov_iter_extract_kvec_pages()
2045 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_kvec_pages()
2051 len = offset + maxsize; in iov_iter_extract_kvec_pages()
2065 maxsize = min_t(size_t, maxsize, maxpages * PAGE_SIZE - offset); in iov_iter_extract_kvec_pages()
2066 iov_iter_advance(i, maxsize); in iov_iter_extract_kvec_pages()
2067 return maxsize; in iov_iter_extract_kvec_pages()
2084 size_t maxsize, in iov_iter_extract_user_pages() argument
2101 addr = first_iovec_segment(i, &maxsize); in iov_iter_extract_user_pages()
2104 maxpages = want_pages_array(pages, maxsize, offset, maxpages); in iov_iter_extract_user_pages()
2110 maxsize = min_t(size_t, maxsize, res * PAGE_SIZE - offset); in iov_iter_extract_user_pages()
2111 iov_iter_advance(i, maxsize); in iov_iter_extract_user_pages()
2112 return maxsize; in iov_iter_extract_user_pages()
2160 size_t maxsize, in iov_iter_extract_pages() argument
2165 maxsize = min_t(size_t, min_t(size_t, maxsize, i->count), MAX_RW_COUNT); in iov_iter_extract_pages()
2166 if (!maxsize) in iov_iter_extract_pages()
2170 return iov_iter_extract_user_pages(i, pages, maxsize, in iov_iter_extract_pages()
2174 return iov_iter_extract_kvec_pages(i, pages, maxsize, in iov_iter_extract_pages()
2178 return iov_iter_extract_bvec_pages(i, pages, maxsize, in iov_iter_extract_pages()
2182 return iov_iter_extract_xarray_pages(i, pages, maxsize, in iov_iter_extract_pages()