Home
last modified time | relevance | path

Searched refs:LFS_ASSERT (Results 1 – 6 of 6) sorted by relevance

/third_party/littlefs/bd/
Dlfs_testbd.c154 LFS_ASSERT(off % cfg->read_size == 0); in lfs_testbd_read()
155 LFS_ASSERT(size % cfg->read_size == 0); in lfs_testbd_read()
156 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_read()
179 LFS_ASSERT(off % cfg->prog_size == 0); in lfs_testbd_prog()
180 LFS_ASSERT(size % cfg->prog_size == 0); in lfs_testbd_prog()
181 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_prog()
210 LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0); in lfs_testbd_prog()
225 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_erase()
257 LFS_ASSERT(lfs_testbd_rawsync(cfg) == 0); in lfs_testbd_erase()
282 LFS_ASSERT(bd->cfg->erase_cycles); in lfs_testbd_getwear()
[all …]
Dlfs_rambd.c79 LFS_ASSERT(off % cfg->read_size == 0); in lfs_rambd_read()
80 LFS_ASSERT(size % cfg->read_size == 0); in lfs_rambd_read()
81 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_read()
98 LFS_ASSERT(off % cfg->prog_size == 0); in lfs_rambd_prog()
99 LFS_ASSERT(size % cfg->prog_size == 0); in lfs_rambd_prog()
100 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_prog()
105 LFS_ASSERT(bd->buffer[block*cfg->block_size + off + i] == in lfs_rambd_prog()
122 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_erase()
Dlfs_filebd.c79 LFS_ASSERT(off % cfg->read_size == 0); in lfs_filebd_read()
80 LFS_ASSERT(size % cfg->read_size == 0); in lfs_filebd_read()
81 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_read()
115 LFS_ASSERT(off % cfg->prog_size == 0); in lfs_filebd_prog()
116 LFS_ASSERT(size % cfg->prog_size == 0); in lfs_filebd_prog()
117 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_prog()
138 LFS_ASSERT(c == bd->cfg->erase_value); in lfs_filebd_prog()
167 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_erase()
/third_party/littlefs/
Dlfs_util.h93 #ifndef LFS_ASSERT
95 #define LFS_ASSERT(test) assert(test) macro
97 #define LFS_ASSERT(test)
Dlfs.c91 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_read()
102 LFS_ASSERT(err <= 0); in lfs_bd_read()
148 LFS_ASSERT(pcache->block < lfs->cfg->block_count); in lfs_bd_flush()
152 LFS_ASSERT(err <= 0); in lfs_bd_flush()
190 LFS_ASSERT(err <= 0); in lfs_bd_sync()
201 LFS_ASSERT(block == LFS_BLOCK_INLINE || block < lfs->cfg->block_count); in lfs_bd_prog()
202 LFS_ASSERT(off + size <= lfs->cfg->block_size); in lfs_bd_prog()
231 LFS_ASSERT(pcache->block == LFS_BLOCK_NULL); in lfs_bd_prog()
245 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_erase()
247 LFS_ASSERT(err <= 0); in lfs_bd_erase()
[all …]
/third_party/littlefs/tests/
Dtest_exhaustion.toml261 LFS_ASSERT(run_cycles[1]*110/100 > 2*run_cycles[0]);
350 LFS_ASSERT(run_cycles[1]*110/100 > 2*run_cycles[0]);