Searched refs:lfs_block_t (Results 1 – 14 of 14) sorted by relevance
/littlefs-3.5.0-3.4.0/ |
D | lfs.h | 47 typedef uint32_t lfs_block_t; typedef 165 int (*read)(const struct lfs_config *c, lfs_block_t block, 171 int (*prog)(const struct lfs_config *c, lfs_block_t block, 178 int (*erase)(const struct lfs_config *c, lfs_block_t block); 323 lfs_block_t block; 330 lfs_block_t pair[2]; 337 lfs_block_t tail[2]; 348 lfs_block_t head[2]; 359 lfs_block_t head; 365 lfs_block_t block; [all …]
|
D | lfs.c | 17 #define LFS_BLOCK_NULL ((lfs_block_t)-1) 18 #define LFS_BLOCK_INLINE ((lfs_block_t)-2) 50 lfs_block_t block, lfs_off_t off, in lfs_bd_read() 133 lfs_block_t block, lfs_off_t off, in lfs_bd_cmp() 212 lfs_block_t block, lfs_off_t off, in lfs_bd_prog() 258 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase() 269 static inline void lfs_pair_swap(lfs_block_t pair[2]) { in lfs_pair_swap() 270 lfs_block_t t = pair[0]; in lfs_pair_swap() 275 static inline bool lfs_pair_isnull(const lfs_block_t pair[2]) { in lfs_pair_isnull() 280 const lfs_block_t paira[2], in lfs_pair_cmp() [all …]
|
/littlefs-3.5.0-3.4.0/tests/ |
D | test_evil.toml | 17 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 20 (lfs_block_t[2]){ 43 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 53 (lfs_block_t[2]){ 91 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 142 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 195 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 196 lfs_fs_prepmove(&lfs, 1, (lfs_block_t [2]){ 221 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0; 224 (lfs_block_t[2]){0, 1}})) => 0; [all …]
|
D | test_badblocks.toml | 18 for (lfs_block_t badblock = 2; badblock < LFS_BLOCK_COUNT; badblock++) { 92 for (lfs_block_t i = 0; i < (LFS_BLOCK_COUNT-2)/2; i++) { 165 for (lfs_block_t i = 0; i < (LFS_BLOCK_COUNT-2)/2; i++) {
|
D | test_exhaustion.toml | 182 for (lfs_block_t b = 0; b < LFS_BLOCK_COUNT; b++) { 274 for (lfs_block_t b = 0; b < LFS_BLOCK_COUNT; b++) { 436 for (lfs_block_t b = 2; b < LFS_BLOCK_COUNT; b++) { 455 for (lfs_block_t b = 2; b < LFS_BLOCK_COUNT; b++) {
|
D | test_orphans.toml | 18 lfs_block_t block = dir.m.pair[0];
|
D | test_move.toml | 97 lfs_block_t block = dir.m.pair[0]; 173 lfs_block_t block = dir.m.pair[0]; 265 lfs_block_t block = dir.m.pair[0]; 535 lfs_block_t block = dir.m.pair[0]; 619 lfs_block_t block = dir.m.pair[0]; 719 lfs_block_t block = dir.m.pair[0];
|
D | test_alloc.toml | 357 lfs_block_t fileblock = file.ctz.head;
|
/littlefs-3.5.0-3.4.0/bd/ |
D | lfs_testbd.h | 108 int lfs_testbd_read(const struct lfs_config *cfg, lfs_block_t block, 114 int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block, 121 int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block); 131 lfs_block_t block); 135 lfs_block_t block, lfs_testbd_wear_t wear);
|
D | lfs_testbd.c | 107 static int lfs_testbd_rawread(const struct lfs_config *cfg, lfs_block_t block, in lfs_testbd_rawread() 117 static int lfs_testbd_rawprog(const struct lfs_config *cfg, lfs_block_t block, in lfs_testbd_rawprog() 128 lfs_block_t block) { in lfs_testbd_rawerase() 147 int lfs_testbd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_testbd_read() 172 int lfs_testbd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_testbd_prog() 221 int lfs_testbd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_testbd_erase() 278 lfs_block_t block) { in lfs_testbd_getwear() 291 lfs_block_t block, lfs_testbd_wear_t wear) { in lfs_testbd_setwear()
|
D | lfs_filebd.h | 51 int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block, 57 int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block, 64 int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block);
|
D | lfs_rambd.h | 53 int lfs_rambd_read(const struct lfs_config *cfg, lfs_block_t block, 59 int lfs_rambd_prog(const struct lfs_config *cfg, lfs_block_t block, 66 int lfs_rambd_erase(const struct lfs_config *cfg, lfs_block_t block);
|
D | lfs_rambd.c | 74 int lfs_rambd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_rambd_read() 93 int lfs_rambd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_rambd_prog() 120 int lfs_rambd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_rambd_erase()
|
D | lfs_filebd.c | 81 int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_filebd_read() 118 int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_filebd_prog() 172 int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_filebd_erase()
|