Lines Matching refs:limit
135 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument
144 while (limit > 0) { in romfs_blk_strnlen()
146 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
155 limit -= segment; in romfs_blk_strnlen()
221 size_t limit; in romfs_dev_read() local
223 limit = romfs_maxsize(sb); in romfs_dev_read()
224 if (pos >= limit) in romfs_dev_read()
226 if (buflen > limit - pos) in romfs_dev_read()
227 buflen = limit - pos; in romfs_dev_read()
246 size_t limit; in romfs_dev_strnlen() local
248 limit = romfs_maxsize(sb); in romfs_dev_strnlen()
249 if (pos >= limit) in romfs_dev_strnlen()
251 if (maxlen > limit - pos) in romfs_dev_strnlen()
252 maxlen = limit - pos; in romfs_dev_strnlen()
274 size_t limit; in romfs_dev_strcmp() local
276 limit = romfs_maxsize(sb); in romfs_dev_strcmp()
277 if (pos >= limit) in romfs_dev_strcmp()
281 if (size + 1 > limit - pos) in romfs_dev_strcmp()