Searched refs:READ_SIZE (Results 1 – 5 of 5) sorted by relevance
| /OK3568_Linux_fs/external/recovery/mtdutils/ |
| H A D | rk29.c | 184 char buf[READ_SIZE]; in rk29_fread() 214 sz = pread(fd, buf, READ_SIZE, offset); in rk29_fread() 215 if (sz < READ_SIZE) in rk29_fread() 217 count = min(end, offset + READ_SIZE) - begin; in rk29_fread() 220 offset += READ_SIZE; in rk29_fread() 223 for (; offset < (end & ~READ_MASK); offset += READ_SIZE) { in rk29_fread() 224 sz = pread(fd, buf, READ_SIZE, offset); in rk29_fread() 225 if (sz < READ_SIZE) in rk29_fread() 227 count += READ_SIZE; in rk29_fread() 228 memcpy(p, buf, READ_SIZE); in rk29_fread() [all …]
|
| H A D | rk29.h | 26 #define READ_SIZE 16384 macro 27 #define READ_MASK (READ_SIZE - 1)
|
| /OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/mtdutils/ |
| H A D | rk29.c | 209 char buf[READ_SIZE]; in rk29_fread() 239 sz = pread(fd, buf, READ_SIZE, offset); in rk29_fread() 240 if (sz < READ_SIZE) in rk29_fread() 242 count = min(end, offset + READ_SIZE) - begin; in rk29_fread() 245 offset += READ_SIZE; in rk29_fread() 248 for (; offset < (end & ~READ_MASK); offset += READ_SIZE) { in rk29_fread() 249 sz = pread(fd, buf, READ_SIZE, offset); in rk29_fread() 250 if (sz < READ_SIZE) in rk29_fread() 252 count += READ_SIZE; in rk29_fread() 253 memcpy(p, buf, READ_SIZE); in rk29_fread() [all …]
|
| H A D | rk29.h | 26 #define READ_SIZE 16384 macro 27 #define READ_MASK (READ_SIZE - 1)
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | llvm-utils.c | 111 #define READ_SIZE 4096 macro 133 if (buf_sz - read_sz < READ_SIZE + 1) { in read_from_pipe() 136 buf_sz = read_sz + READ_SIZE + 1; in read_from_pipe() 147 read_sz += fread(buf + read_sz, 1, READ_SIZE, file); in read_from_pipe()
|