Lines Matching refs:buflen
24 void *buf, size_t buflen) in romfs_mtd_read() argument
29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read()
30 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read()
104 void *buf, size_t buflen) in romfs_blk_read() argument
111 while (buflen > 0) { in romfs_blk_read()
113 segment = min_t(size_t, buflen, ROMBSIZE - offset); in romfs_blk_read()
120 buflen -= segment; in romfs_blk_read()
215 void *buf, size_t buflen) in romfs_dev_read() argument
220 if (pos >= limit || buflen > limit - pos) in romfs_dev_read()
225 return romfs_mtd_read(sb, pos, buf, buflen); in romfs_dev_read()
229 return romfs_blk_read(sb, pos, buf, buflen); in romfs_dev_read()