Searched refs:block_count (Results 1 – 8 of 8) sorted by relevance
/littlefs-3.5.0-3.4.0/bd/ |
D | lfs_rambd.c | 20 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_rambd_createcfg() 29 bd->buffer = lfs_malloc(cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 39 cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 41 memset(bd->buffer, 0, cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 56 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count); in lfs_rambd_create() 84 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_read() 103 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_prog() 125 LFS_ASSERT(block < cfg->block_count); in lfs_rambd_erase()
|
D | lfs_testbd.c | 27 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_testbd_createcfg() 42 bd->wear = lfs_malloc(sizeof(lfs_testbd_wear_t)*cfg->block_count); in lfs_testbd_createcfg() 49 memset(bd->wear, 0, sizeof(lfs_testbd_wear_t) * cfg->block_count); in lfs_testbd_createcfg() 80 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_testbd_create() 157 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_read() 182 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_prog() 226 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_erase() 284 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_getwear() 297 LFS_ASSERT(block < cfg->block_count); in lfs_testbd_setwear()
|
D | lfs_filebd.c | 29 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_filebd_createcfg() 60 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_filebd_create() 91 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_read() 127 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_prog() 177 LFS_ASSERT(block < cfg->block_count); in lfs_filebd_erase()
|
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 53 if (block >= lfs->cfg->block_count || in lfs_bd_read() 111 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_read() 162 LFS_ASSERT(pcache->block < lfs->cfg->block_count); in lfs_bd_flush() 215 LFS_ASSERT(block == LFS_BLOCK_INLINE || block < lfs->cfg->block_count); in lfs_bd_prog() 259 LFS_ASSERT(block < lfs->cfg->block_count); in lfs_bd_erase() 436 superblock->block_count = lfs_fromle32(superblock->block_count); in lfs_superblock_fromle32() 446 superblock->block_count = lfs_tole32(superblock->block_count); in lfs_superblock_tole32() 537 + lfs->cfg->block_count) % lfs->cfg->block_count; in lfs_alloc_lookahead() 551 lfs->free.ack = lfs->cfg->block_count; in lfs_alloc_ack() 572 *block = (lfs->free.off + off) % lfs->cfg->block_count; in lfs_alloc() [all …]
|
D | lfs.h | 209 lfs_size_t block_count; member 375 lfs_size_t block_count; member
|
D | README.md | 53 .block_count = 128,
|
/littlefs-3.5.0-3.4.0/tests/ |
D | test_alloc.toml | 505 i < (cfg.block_count-4)*(cfg.block_size-8); 544 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); 555 i < ((cfg.block_count-2+1)/2)*(cfg.block_size-8); 572 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); 586 i < ((cfg.block_count-2+1)/2)*(cfg.block_size-8); 609 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); 620 i < ((cfg.block_count-2+1)/2)*(cfg.block_size-8); 637 i < ((cfg.block_count-2)/2 - 1)*(cfg.block_size-8);
|
D | test_evil.toml | 4 # invalid pointer tests (outside of block_count)
|