Lines Matching refs:maxsize
30 static int cifs_shash_bvec(const struct iov_iter *iter, ssize_t maxsize, in cifs_shash_bvec() argument
48 len = min_t(size_t, maxsize, len - start); in cifs_shash_bvec()
57 maxsize -= len; in cifs_shash_bvec()
58 if (maxsize <= 0) in cifs_shash_bvec()
69 static int cifs_shash_kvec(const struct iov_iter *iter, ssize_t maxsize, in cifs_shash_kvec() argument
86 len = min_t(size_t, maxsize, len - start); in cifs_shash_kvec()
90 maxsize -= len; in cifs_shash_kvec()
92 if (maxsize <= 0) in cifs_shash_kvec()
103 static ssize_t cifs_shash_xarray(const struct iov_iter *iter, ssize_t maxsize, in cifs_shash_xarray() argument
114 if (maxsize == 0) in cifs_shash_xarray()
117 last = (start + maxsize - 1) / PAGE_SIZE; in cifs_shash_xarray()
130 len = min_t(size_t, maxsize, PAGE_SIZE - offset); in cifs_shash_xarray()
136 maxsize -= len; in cifs_shash_xarray()
137 if (maxsize <= 0) in cifs_shash_xarray()
151 static int cifs_shash_iter(const struct iov_iter *iter, size_t maxsize, in cifs_shash_iter() argument
154 if (maxsize == 0) in cifs_shash_iter()
159 return cifs_shash_bvec(iter, maxsize, shash); in cifs_shash_iter()
161 return cifs_shash_kvec(iter, maxsize, shash); in cifs_shash_iter()
163 return cifs_shash_xarray(iter, maxsize, shash); in cifs_shash_iter()