Lines Matching refs:maxsize

110 					ssize_t maxsize,  in netfs_extract_user_to_sg()  argument
126 res = iov_iter_extract_pages(iter, &pages, maxsize, sg_max, in netfs_extract_user_to_sg()
132 maxsize -= len; in netfs_extract_user_to_sg()
148 } while (maxsize > 0 && sg_max > 0); in netfs_extract_user_to_sg()
163 ssize_t maxsize, in netfs_extract_bvec_to_sg() argument
183 len = min_t(size_t, maxsize, len - start); in netfs_extract_bvec_to_sg()
192 maxsize -= len; in netfs_extract_bvec_to_sg()
193 if (maxsize <= 0 || sg_max == 0) in netfs_extract_bvec_to_sg()
209 ssize_t maxsize, in netfs_extract_kvec_to_sg() argument
233 len = min_t(size_t, maxsize, len - start); in netfs_extract_kvec_to_sg()
236 maxsize -= len; in netfs_extract_kvec_to_sg()
255 if (maxsize <= 0 || sg_max == 0) in netfs_extract_kvec_to_sg()
270 ssize_t maxsize, in netfs_extract_xarray_to_sg() argument
295 len = min_t(size_t, maxsize, folio_size(folio) - offset); in netfs_extract_xarray_to_sg()
302 maxsize -= len; in netfs_extract_xarray_to_sg()
304 if (maxsize <= 0 || sg_max == 0) in netfs_extract_xarray_to_sg()
342 ssize_t netfs_extract_iter_to_sg(struct iov_iter *iter, size_t maxsize, in netfs_extract_iter_to_sg() argument
346 if (maxsize == 0) in netfs_extract_iter_to_sg()
352 return netfs_extract_user_to_sg(iter, maxsize, sgtable, sg_max, in netfs_extract_iter_to_sg()
355 return netfs_extract_bvec_to_sg(iter, maxsize, sgtable, sg_max, in netfs_extract_iter_to_sg()
358 return netfs_extract_kvec_to_sg(iter, maxsize, sgtable, sg_max, in netfs_extract_iter_to_sg()
361 return netfs_extract_xarray_to_sg(iter, maxsize, sgtable, sg_max, in netfs_extract_iter_to_sg()