Home
last modified time | relevance | path

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

/littlefs-2.7.6/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()
225 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_erase()
282 LFS_ASSERT(bd->cfg->erase_cycles); in lfs_testbd_getwear()
283 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_getwear()
295 LFS_ASSERT(bd->cfg->erase_cycles); in lfs_testbd_setwear()
[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()
/littlefs-2.7.6/
Dlfs.c90 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_read()
101 LFS_ASSERT(err <= 0); in lfs_bd_read()
142 LFS_ASSERT(pcache->block < lfs->cfg->block_count); in lfs_bd_flush()
146 LFS_ASSERT(err <= 0); in lfs_bd_flush()
182 LFS_ASSERT(err <= 0); in lfs_bd_sync()
191 LFS_ASSERT(block == LFS_BLOCK_INLINE || block < lfs->cfg->block_count); in lfs_bd_prog()
192 LFS_ASSERT(off + size <= lfs->cfg->block_size); in lfs_bd_prog()
221 LFS_ASSERT(pcache->block == LFS_BLOCK_NULL); in lfs_bd_prog()
233 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_erase()
235 LFS_ASSERT(err <= 0); in lfs_bd_erase()
[all …]
Dlfs_util.h120 #define LFS_ASSERT(test) __ASSERT_NO_MSG(test) macro
122 #define LFS_ASSERT(test) assert(test)
125 #define LFS_ASSERT(test)
/littlefs-2.7.6/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]);