Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 11 of 11) sorted by relevance

/littlefs-latest/tests/
Dtest_superblocks.toml282 cfg->block_size = BLOCK_SIZE;
287 assert(fsinfo.block_size == BLOCK_SIZE);
292 cfg->block_size = BLOCK_SIZE;
296 assert(fsinfo.block_size == BLOCK_SIZE);
303 assert(fsinfo.block_size == BLOCK_SIZE);
314 assert(fsinfo.block_size == BLOCK_SIZE);
332 cfg->block_size = BLOCK_SIZE;
337 assert(fsinfo.block_size == BLOCK_SIZE);
342 cfg->block_size = BLOCK_SIZE;
347 cfg->block_size = BLOCK_SIZE;
[all …]
Dtest_bd.toml8 defines.READ = ['READ_SIZE', 'BLOCK_SIZE']
9 defines.PROG = ['PROG_SIZE', 'BLOCK_SIZE']
33 defines.READ = ['READ_SIZE', 'BLOCK_SIZE']
34 defines.PROG = ['PROG_SIZE', 'BLOCK_SIZE']
91 defines.READ = ['READ_SIZE', 'BLOCK_SIZE']
92 defines.PROG = ['PROG_SIZE', 'BLOCK_SIZE']
149 defines.READ = ['READ_SIZE', 'BLOCK_SIZE']
150 defines.PROG = ['PROG_SIZE', 'BLOCK_SIZE']
195 defines.READ = ['READ_SIZE', 'BLOCK_SIZE']
196 defines.PROG = ['PROG_SIZE', 'BLOCK_SIZE']
Dtest_move.toml111 uint8_t buffer[BLOCK_SIZE];
112 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
113 int off = BLOCK_SIZE-1;
117 memset(&buffer[off-3], BLOCK_SIZE, 3);
119 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
192 uint8_t buffer[BLOCK_SIZE];
193 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
194 int off = BLOCK_SIZE-1;
198 memset(&buffer[off-3], BLOCK_SIZE, 3);
200 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
[all …]
Dtest_powerloss.toml44 uint8_t bbuffer[BLOCK_SIZE];
45 cfg->read(cfg, pair[1], 0, bbuffer, BLOCK_SIZE) => 0;
50 cfg->prog(cfg, pair[1], 0, bbuffer, BLOCK_SIZE) => 0;
94 PROG_SIZE < BLOCK_SIZE
140 uint8_t bbuffer[BLOCK_SIZE];
141 cfg->read(cfg, block, 0, bbuffer, BLOCK_SIZE) => 0;
146 cfg->prog(cfg, block, 0, bbuffer, BLOCK_SIZE) => 0;
Dtest_evil.toml127 if (SIZE > 2*BLOCK_SIZE) {
134 defines.SIZE = ['2*BLOCK_SIZE', '3*BLOCK_SIZE', '4*BLOCK_SIZE']
156 uint8_t buffer[4*BLOCK_SIZE];
169 uint8_t bbuffer[BLOCK_SIZE];
170 cfg->read(cfg, ctz.head, 0, bbuffer, BLOCK_SIZE) => 0;
175 cfg->prog(cfg, ctz.head, 0, bbuffer, BLOCK_SIZE) => 0;
192 if (SIZE > 2*BLOCK_SIZE) {
Dtest_orphans.toml23 uint8_t buffer[BLOCK_SIZE];
24 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
25 int off = BLOCK_SIZE-1;
29 memset(&buffer[off-3], BLOCK_SIZE, 3);
31 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
Dtest_alloc.toml8 defines.SIZE = '(((BLOCK_SIZE-8)*(BLOCK_COUNT-6)) / FILES)'
10 defines.COMPACT_THRESH = ['-1', '0', 'BLOCK_SIZE/2']
67 defines.SIZE = '(((BLOCK_SIZE-8)*(BLOCK_COUNT-6)) / FILES)'
69 defines.COMPACT_THRESH = ['-1', '0', 'BLOCK_SIZE/2']
124 defines.SIZE = '(((BLOCK_SIZE-8)*(BLOCK_COUNT-6)) / FILES)'
191 defines.SIZE = '(((BLOCK_SIZE-8)*(BLOCK_COUNT-6)) / FILES)'
303 defines.SIZE = '(((BLOCK_SIZE-8)*(BLOCK_COUNT-4)) / 3)'
448 filesize -= 3*BLOCK_SIZE;
/littlefs-latest/runners/
Dbench_runner.h111 #define BLOCK_SIZE bench_define(BLOCK_SIZE_i) macro
128 BENCH_DEF(ERASE_COUNT, (1024*1024)/BLOCK_SIZE) \
129 BENCH_DEF(BLOCK_SIZE, ERASE_SIZE) \
130 BENCH_DEF(BLOCK_COUNT, ERASE_COUNT/lfs_max(BLOCK_SIZE/ERASE_SIZE,1))\
Dtest_runner.h105 #define BLOCK_SIZE TEST_DEFINE(BLOCK_SIZE_i) macro
124 TEST_DEF(BLOCK_SIZE, ERASE_SIZE) \
125 TEST_DEF(BLOCK_COUNT, ERASE_COUNT/lfs_max(BLOCK_SIZE/ERASE_SIZE,1)) \
Dtest_runner.c1344 .block_size = BLOCK_SIZE, in run_powerloss_none()
1423 .block_size = BLOCK_SIZE, in run_powerloss_linear()
1519 .block_size = BLOCK_SIZE, in run_powerloss_log()
1613 .block_size = BLOCK_SIZE, in run_powerloss_cycles()
1805 .block_size = BLOCK_SIZE, in run_powerloss_exhaustive()
Dbench_runner.c1319 .block_size = BLOCK_SIZE, in perm_run()