Lines Matching refs:buf
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()
41 u_char buf[16], *p; in romfs_mtd_strnlen() local
48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen()
51 p = memchr(buf, 0, len); in romfs_mtd_strnlen()
53 return n + (p - buf); in romfs_mtd_strnlen()
69 u_char buf[17]; in romfs_mtd_strcmp() local
75 buf[0] = 0xff; in romfs_mtd_strcmp()
79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp()
83 if (memcmp(buf, str, len) != 0) in romfs_mtd_strcmp()
85 buf[0] = buf[len]; in romfs_mtd_strcmp()
92 if (buf[0]) in romfs_mtd_strcmp()
104 void *buf, size_t buflen) in romfs_blk_read() argument
117 memcpy(buf, bh->b_data + offset, segment); in romfs_blk_read()
119 buf += segment; in romfs_blk_read()
137 u_char *buf, *p; in romfs_blk_strnlen() local
146 buf = bh->b_data + offset; in romfs_blk_strnlen()
147 p = memchr(buf, 0, segment); in romfs_blk_strnlen()
150 return n + (p - buf); in romfs_blk_strnlen()
215 void *buf, size_t buflen) in romfs_dev_read() argument
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()