Lines Matching refs:limit
131 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument
140 while (limit > 0) { in romfs_blk_strnlen()
142 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
151 limit -= segment; in romfs_blk_strnlen()
217 size_t limit; in romfs_dev_read() local
219 limit = romfs_maxsize(sb); in romfs_dev_read()
220 if (pos >= limit) in romfs_dev_read()
222 if (buflen > limit - pos) in romfs_dev_read()
223 buflen = limit - pos; in romfs_dev_read()
242 size_t limit; in romfs_dev_strnlen() local
244 limit = romfs_maxsize(sb); in romfs_dev_strnlen()
245 if (pos >= limit) in romfs_dev_strnlen()
247 if (maxlen > limit - pos) in romfs_dev_strnlen()
248 maxlen = limit - pos; in romfs_dev_strnlen()
270 size_t limit; in romfs_dev_strcmp() local
272 limit = romfs_maxsize(sb); in romfs_dev_strcmp()
273 if (pos >= limit) in romfs_dev_strcmp()
277 if (size + 1 > limit - pos) in romfs_dev_strcmp()