Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 45) sorted by relevance

12

/littlefs-3.7.0-3.6.0/tests/
Dtest_bd.toml15 for (lfs_off_t i = 0; i < cfg->block_size; i += PROG) {
17 buffer[j] = (i+j) % 251;
19 cfg->prog(cfg, 0, i, buffer, PROG) => 0;
23 for (lfs_off_t i = 0; i < cfg->block_size; i += READ) {
24 cfg->read(cfg, 0, i, buffer, READ) => 0;
27 LFS_ASSERT(buffer[j] == (i+j) % 251);
42 for (lfs_off_t i = 0; i < cfg->block_size; i += PROG) {
44 buffer[j] = (block+i+j) % 251;
46 cfg->prog(cfg, block, i, buffer, PROG) => 0;
51 for (lfs_off_t i = 0; i < cfg->block_size; i += READ) {
[all …]
Dtest_files.toml39 for (lfs_size_t i = 0; i < SIZE; i += CHUNKSIZE) {
40 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
54 for (lfs_size_t i = 0; i < SIZE; i += CHUNKSIZE) {
55 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE-i);
81 for (lfs_size_t i = 0; i < SIZE1; i += CHUNKSIZE) {
82 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
96 for (lfs_size_t i = 0; i < SIZE1; i += CHUNKSIZE) {
97 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE1-i);
111 for (lfs_size_t i = 0; i < SIZE2; i += CHUNKSIZE) {
112 lfs_size_t chunk = lfs_min(CHUNKSIZE, SIZE2-i);
[all …]
Dtest_dirs.toml28 for (int i = 0; i < N; i++) {
30 sprintf(path, "dir%03d", i);
45 for (int i = 0; i < N; i++) {
47 sprintf(path, "dir%03d", i);
65 for (int i = 0; i < N; i++) {
67 sprintf(path, "removeme%03d", i);
82 for (int i = 0; i < N; i++) {
84 sprintf(path, "removeme%03d", i);
94 for (int i = 0; i < N; i++) {
96 sprintf(path, "removeme%03d", i);
[all …]
Dtest_compat.toml107 for (lfs_size_t i = 0; i < COUNT; i++) {
109 sprintf(name, "dir%03d", i);
135 for (lfs_size_t i = 0; i < COUNT; i++) {
139 sprintf(name, "dir%03d", i);
168 for (lfs_size_t i = 0; i < COUNT; i++) {
171 sprintf(name, "file%03d", i);
207 for (lfs_size_t i = 0; i < COUNT; i++) {
211 sprintf(name, "file%03d", i);
220 for (lfs_size_t i = 0; i < COUNT; i++) {
223 sprintf(name, "file%03d", i);
[all …]
Dtest_badblocks.toml26 for (int i = 1; i < 10; i++) {
29 buffer[j] = '0'+i;
36 buffer[j+NAMEMULT+1] = '0'+i;
44 for (int j = 0; j < i*FILEMULT; j++) {
53 for (int i = 1; i < 10; i++) {
56 buffer[j] = '0'+i;
65 buffer[j+NAMEMULT+1] = '0'+i;
72 for (int j = 0; j < i*FILEMULT; j++) {
98 for (lfs_block_t i = 0; i < (BLOCK_COUNT-2)/2; i++) {
99 lfs_emubd_setwear(cfg, i+2, 0xffffffff) => 0;
[all …]
Dtest_exhaustion.toml24 for (uint32_t i = 0; i < FILES; i++) {
27 sprintf(path, "roadrunner/test%d", i);
28 uint32_t prng = cycle * i;
55 for (uint32_t i = 0; i < FILES; i++) {
58 sprintf(path, "roadrunner/test%d", i);
59 uint32_t prng = cycle * i;
81 for (uint32_t i = 0; i < FILES; i++) {
84 sprintf(path, "roadrunner/test%d", i);
114 for (uint32_t i = 0; i < FILES; i++) {
117 sprintf(path, "test%d", i);
[all …]
Dtest_powerloss.toml19 for (int i = 0; i < 5; i++) {
27 for (int i = 0; i < 5; i++) {
56 for (int i = 0; i < 5; i++) {
67 for (int i = 0; i < 5; i++) {
76 for (int i = 0; i < 5; i++) {
82 for (int i = 0; i < 5; i++) {
112 for (int i = 0; i < 5; i++) {
120 for (int i = 0; i < 5; i++) {
152 for (int i = 0; i < 5; i++) {
163 for (int i = 0; i < 5; i++) {
[all …]
Dtest_alloc.toml32 for (lfs_size_t i = 0; i < SIZE; i += size) {
48 for (lfs_size_t i = 0; i < SIZE; i += size) {
82 for (int i = 0; i < SIZE; i += size) {
99 for (int i = 0; i < SIZE; i += size) {
135 for (int i = 0; i < SIZE; i += size) {
151 for (int i = 0; i < SIZE; i += size) {
197 for (int i = 0; i < SIZE; i += size) {
211 for (int i = 0; i < SIZE; i += size) {
287 for (int i = 0; i < SIZE; i += size) {
363 for (int i = 0; i < count; i++) {
[all …]
Dtest_relocations.toml25 for (unsigned i = 0; i < COUNT; i++) {
27 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
37 for (unsigned i = 0; i < COUNT; i++) {
39 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
50 for (unsigned i = 0; i < COUNT; i++) {
52 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
64 for (unsigned i = 0; i < COUNT; i++) {
66 sprintf(path, "test%03d_loooooooooooooooooong_name", i);
72 for (unsigned i = 0; i < COUNT; i++) {
74 sprintf(path, "child/test%03d_loooooooooooooooooong_name", i);
[all …]
Dtest_interspersed.toml18 for (int i = 0; i < SIZE; i++) {
54 for (int i = 0; i < 10; i++) {
83 for (int i = 0; i < SIZE; i++) {
120 for (int i = 0; i < FILES; i++) {
141 for (int i = 0; i < SIZE/2; i++) {
149 for (int i = 0; i < SIZE/2; i++) {
181 for (int i = 0; i < SIZE; i++) {
216 for (int i = 0; i < SIZE; i++) {
220 if ((int)size <= i) {
257 for (int i = 0; i < 10; i++) {
Dtest_seek.toml33 for (int i = 0; i < SKIP; i++) {
106 for (int i = 0; i < SKIP; i++) {
165 for (unsigned i = 0; i < sizeof(offsets) / sizeof(offsets[0]); i++) {
166 lfs_soff_t off = offsets[i];
271 for (unsigned i = 0; i < SIZE; i++) {
273 lfs_file_tell(&lfs, &file) => i+1;
274 lfs_file_size(&lfs, &file) => i+1;
280 for (unsigned i = 0; i < SIZE; i++) {
291 for (unsigned i = 0; i < SIZE; i++) {
293 lfs_file_tell(&lfs, &file) => i+1;
[all …]
Dtest_truncate.toml360 for (unsigned i = 0; i < COUNT; i++) {
362 sprintf(path, "hairyhead%d", i);
370 for (lfs_off_t j = 0; j < startsizes[i]; j += size) {
373 lfs_file_size(&lfs, &file) => startsizes[i];
375 if (startseeks[i] != startsizes[i]) {
377 startseeks[i], LFS_SEEK_SET) => startseeks[i];
380 lfs_file_truncate(&lfs, &file, hotsizes[i]) => 0;
381 lfs_file_size(&lfs, &file) => hotsizes[i];
390 for (unsigned i = 0; i < COUNT; i++) {
392 sprintf(path, "hairyhead%d", i);
[all …]
/littlefs-3.7.0-3.6.0/runners/
Dbench_runner.c83 size_t i = 0; in leb16_parse() local
85 uintmax_t nibble = s[i]; in leb16_parse()
95 x |= (nibble & 0xf) << (4*i); in leb16_parse()
96 i += 1; in leb16_parse()
98 s = s + i; in leb16_parse()
205 for (size_t i = 0; i < BENCH_DEFINE_NAMES_COUNT; i++) { in bench_define_name() local
206 if (define < bench_define_names[i].count in bench_define_name()
207 && bench_define_names[i].names in bench_define_name()
208 && bench_define_names[i].names[define]) { in bench_define_name()
209 return bench_define_names[i].names[define]; in bench_define_name()
[all …]
Dtest_runner.c83 size_t i = 0; in leb16_parse() local
85 uintmax_t nibble = s[i]; in leb16_parse()
95 x |= (nibble & 0xf) << (4*i); in leb16_parse()
96 i += 1; in leb16_parse()
98 s = s + i; in leb16_parse()
218 for (size_t i = 0; i < TEST_DEFINE_NAMES_COUNT; i++) { in test_define_name() local
219 if (define < test_define_names[i].count in test_define_name()
220 && test_define_names[i].names in test_define_name()
221 && test_define_names[i].names[define]) { in test_define_name()
222 return test_define_names[i].names[define]; in test_define_name()
[all …]
/littlefs-3.7.0-3.6.0/benches/
Dbench_dir.toml17 for (lfs_size_t i = 0; i < N; i++) {
18 sprintf(name, "file%08x", i);
23 uint32_t file_prng = i;
37 for (lfs_size_t i = 0; i < N; i++) {
39 = (ORDER == 0) ? i
40 : (ORDER == 1) ? (N-1-i)
78 for (lfs_size_t i = 0; i < N; i++) {
80 = (ORDER == 0) ? i
81 : (ORDER == 1) ? (N-1-i)
119 for (lfs_size_t i = 0; i < N; i++) {
[all …]
Dbench_file.toml19 for (lfs_size_t i = 0; i < chunks; i++) {
20 uint32_t chunk_prng = i;
35 for (lfs_size_t i = 0; i < chunks; i++) {
37 = (ORDER == 0) ? i
38 : (ORDER == 1) ? (chunks-1-i)
76 for (lfs_size_t i = 0; i < chunks; i++) {
78 = (ORDER == 0) ? i
79 : (ORDER == 1) ? (chunks-1-i)
Dbench_superblock.toml14 for (lfs_size_t i = 0; i < N; i++) {
15 sprintf(name, "file%08x", i);
22 buffer[k] = i+j+k;
/littlefs-3.7.0-3.6.0/bd/
Dlfs_emubd.c170 for (size_t i = 0; i < bd->cfg->erase_count; i++) { in lfs_emubd_create() local
192 for (lfs_block_t i = 0; i < bd->cfg->erase_count; i++) { in lfs_emubd_destroy() local
193 lfs_emubd_decblock(bd->blocks[i]); in lfs_emubd_destroy()
302 for (lfs_off_t i = 0; i < size; i++) { in lfs_emubd_prog() local
303 LFS_ASSERT(b->data[off+i] == bd->cfg->erase_value); in lfs_emubd_prog()
470 for (lfs_size_t i = 0; i < cfg->block_size; i++) { in lfs_emubd_rawcrc() local
492 for (lfs_block_t i = 0; i < cfg->block_count; i++) { in lfs_emubd_bdcrc() local
494 int err = lfs_emubd_rawcrc(cfg, i, &i_crc); in lfs_emubd_bdcrc()
627 for (size_t i = 0; i < bd->cfg->erase_count; i++) { in lfs_emubd_copy() local
628 copy->blocks[i] = lfs_emubd_incblock(bd->blocks[i]); in lfs_emubd_copy()
/littlefs-3.7.0-3.6.0/
Dlfs.c137 for (lfs_off_t i = 0; i < size; i += diff) { in lfs_bd_cmp() local
140 diff = lfs_min(size-i, sizeof(dat)); in lfs_bd_cmp()
142 pcache, rcache, hint-i, in lfs_bd_cmp()
143 block, off+i, &dat, diff); in lfs_bd_cmp()
148 int res = memcmp(dat, data + i, diff); in lfs_bd_cmp()
162 for (lfs_off_t i = 0; i < size; i += diff) { in lfs_bd_crc() local
164 diff = lfs_min(size-i, sizeof(dat)); in lfs_bd_crc()
166 pcache, rcache, hint-i, in lfs_bd_crc()
167 block, off+i, &dat, diff); in lfs_bd_crc()
395 for (int i = 0; i < 3; i++) { in lfs_gstate_xor() local
[all …]
Dlfs_util.c25 for (size_t i = 0; i < size; i++) { in lfs_crc() local
26 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 0)) & 0xf]; in lfs_crc()
27 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 4)) & 0xf]; in lfs_crc()
/littlefs-3.7.0-3.6.0/scripts/
Dplot.py213 for i in range(shrink):
215 if shrink-1-i > 0:
216 sys.stdout.write('\x1b[%dA' % (shrink-1-i))
218 if shrink-1-i > 0:
219 sys.stdout.write('\x1b[%dB' % (shrink-1-i))
223 for i, line in enumerate(self.lines):
226 if len(self.lines)-1-i > 0:
227 sys.stdout.write('\x1b[%dA' % (len(self.lines)-1-i))
232 if len(self.lines)-1-i > 0:
233 sys.stdout.write('\x1b[%dB' % (len(self.lines)-1-i))
[all …]
Dtailpipe.py77 for i in range(shrink):
79 if shrink-1-i > 0:
80 sys.stdout.write('\x1b[%dA' % (shrink-1-i))
82 if shrink-1-i > 0:
83 sys.stdout.write('\x1b[%dB' % (shrink-1-i))
87 for i, line in enumerate(self.lines):
90 if len(self.lines)-1-i > 0:
91 sys.stdout.write('\x1b[%dA' % (len(self.lines)-1-i))
96 if len(self.lines)-1-i > 0:
97 sys.stdout.write('\x1b[%dB' % (len(self.lines)-1-i))
Dwatch.py113 for i in range(shrink):
115 if shrink-1-i > 0:
116 sys.stdout.write('\x1b[%dA' % (shrink-1-i))
118 if shrink-1-i > 0:
119 sys.stdout.write('\x1b[%dB' % (shrink-1-i))
123 for i, line in enumerate(self.lines):
126 if len(self.lines)-1-i > 0:
127 sys.stdout.write('\x1b[%dA' % (len(self.lines)-1-i))
132 if len(self.lines)-1-i > 0:
133 sys.stdout.write('\x1b[%dB' % (len(self.lines)-1-i))
Dtracebd.py99 for i in range(shrink):
101 if shrink-1-i > 0:
102 sys.stdout.write('\x1b[%dA' % (shrink-1-i))
104 if shrink-1-i > 0:
105 sys.stdout.write('\x1b[%dB' % (shrink-1-i))
109 for i, line in enumerate(self.lines):
112 if len(self.lines)-1-i > 0:
113 sys.stdout.write('\x1b[%dA' % (len(self.lines)-1-i))
118 if len(self.lines)-1-i > 0:
119 sys.stdout.write('\x1b[%dB' % (len(self.lines)-1-i))
[all …]
Dperfbd.py371 for i in range(len(last_stack)):
373 for j in reversed(range(i+1)):
374 if i+1-j > depth:
449 i = bisect.bisect(lines, (last_file, last_line),
451 if i > 0:
452 last_delta = lines[i-1][2] - addr_
470 i = bisect.bisect(sym_at, addr, key=lambda x: x[0])
472 if i > 0 and addr < sym_at[i-1][0] + sym_at[i-1][2]:
473 _, sym, _ = sym_at[i-1]
487 i = bisect.bisect(line_at, addr, key=lambda x: x[0])
[all …]

12