Lines Matching full: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 || buflen > limit - pos) in romfs_dev_read()
240 size_t limit; in romfs_dev_strnlen() local
242 limit = romfs_maxsize(sb); in romfs_dev_strnlen()
243 if (pos >= limit) in romfs_dev_strnlen()
245 if (maxlen > limit - pos) in romfs_dev_strnlen()
246 maxlen = limit - pos; in romfs_dev_strnlen()
268 size_t limit; in romfs_dev_strcmp() local
270 limit = romfs_maxsize(sb); in romfs_dev_strcmp()
271 if (pos >= limit) in romfs_dev_strcmp()
275 if (size + 1 > limit - pos) in romfs_dev_strcmp()