Home
last modified time | relevance | path

Searched refs:lfs_block_t (Results 1 – 17 of 17) sorted by relevance

/littlefs-3.7.0-3.6.0/
Dlfs.h45 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);
352 lfs_block_t block;
359 lfs_block_t pair[2];
366 lfs_block_t tail[2];
377 lfs_block_t head[2];
388 lfs_block_t head;
394 lfs_block_t block;
[all …]
Dlfs.c16 #define LFS_BLOCK_NULL ((lfs_block_t)-1)
17 #define LFS_BLOCK_INLINE ((lfs_block_t)-2)
49 lfs_block_t block, lfs_off_t off, in lfs_bd_read()
132 lfs_block_t block, lfs_off_t off, in lfs_bd_cmp()
159 lfs_block_t block, lfs_off_t off, lfs_size_t size, uint32_t *crc) { in lfs_bd_crc()
232 lfs_block_t block, lfs_off_t off, in lfs_bd_prog()
278 static int lfs_bd_erase(lfs_t *lfs, lfs_block_t block) { in lfs_bd_erase()
289 static inline void lfs_pair_swap(lfs_block_t pair[2]) { in lfs_pair_swap()
290 lfs_block_t t = pair[0]; in lfs_pair_swap()
295 static inline bool lfs_pair_isnull(const lfs_block_t pair[2]) { in lfs_pair_isnull()
[all …]
/littlefs-3.7.0-3.6.0/tests/
Dtest_evil.toml18 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
21 (lfs_block_t[2]){
45 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
56 (lfs_block_t[2]){
99 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
154 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
210 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
211 lfs_fs_prepmove(&lfs, 1, (lfs_block_t [2]){
237 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
240 (lfs_block_t[2]){0, 1}})) => 0;
[all …]
Dtest_bd.toml37 lfs_block_t block;
95 lfs_block_t block;
155 lfs_block_t block = 1;
201 lfs_block_t block = 1;
202 lfs_block_t block_ = 1;
222 lfs_block_t nblock = block + block_;
240 lfs_block_t nblock = block + block_;
Dtest_orphans.toml20 lfs_block_t block = dir.m.pair[0];
73 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
108 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
140 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
180 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
Dtest_badblocks.toml18 for (lfs_block_t badblock = 2; badblock < BLOCK_COUNT; badblock++) {
98 for (lfs_block_t i = 0; i < (BLOCK_COUNT-2)/2; i++) {
177 for (lfs_block_t i = 0; i < (BLOCK_COUNT-2)/2; i++) {
Dtest_exhaustion.toml199 for (lfs_block_t b = 0; b < BLOCK_COUNT; b++) {
299 for (lfs_block_t b = 0; b < BLOCK_COUNT; b++) {
476 for (lfs_block_t b = 2; b < BLOCK_COUNT; b++) {
495 for (lfs_block_t b = 2; b < BLOCK_COUNT; b++) {
Dtest_powerloss.toml38 lfs_block_t pair[2] = {dir.m.pair[0], dir.m.pair[1]};
134 lfs_block_t block = dir.m.pair[0];
Dtest_move.toml108 lfs_block_t block = dir.m.pair[0];
189 lfs_block_t block = dir.m.pair[0];
285 lfs_block_t block = dir.m.pair[0];
568 lfs_block_t block = dir.m.pair[0];
655 lfs_block_t block = dir.m.pair[0];
758 lfs_block_t block = dir.m.pair[0];
Dtest_compat.toml1309 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
1342 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
1386 lfs_dir_fetch(&lfs, &mdir, (lfs_block_t[2]){0, 1}) => 0;
Dtest_alloc.toml420 lfs_block_t fileblock = file.ctz.head;
/littlefs-3.7.0-3.6.0/bd/
Dlfs_emubd.h171 int lfs_emubd_read(const struct lfs_config *cfg, lfs_block_t block,
177 int lfs_emubd_prog(const struct lfs_config *cfg, lfs_block_t block,
184 int lfs_emubd_erase(const struct lfs_config *cfg, lfs_block_t block);
194 lfs_block_t block, uint32_t *crc);
219 lfs_block_t block);
223 lfs_block_t block, lfs_emubd_wear_t wear);
Dlfs_emubd.c192 for (lfs_block_t i = 0; i < bd->cfg->erase_count; i++) { in lfs_emubd_destroy()
215 int lfs_emubd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_emubd_read()
265 int lfs_emubd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_emubd_prog()
356 int lfs_emubd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_emubd_erase()
455 lfs_block_t block, uint32_t *crc) { in lfs_emubd_rawcrc()
480 lfs_block_t block, uint32_t *crc) { in lfs_emubd_crc()
492 for (lfs_block_t i = 0; i < cfg->block_count; i++) { in lfs_emubd_bdcrc()
554 lfs_block_t block) { in lfs_emubd_wear()
575 lfs_block_t block, lfs_emubd_wear_t wear) { in lfs_emubd_setwear()
Dlfs_filebd.h59 int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block,
65 int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block,
72 int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block);
Dlfs_rambd.h62 int lfs_rambd_read(const struct lfs_config *cfg, lfs_block_t block,
68 int lfs_rambd_prog(const struct lfs_config *cfg, lfs_block_t block,
75 int lfs_rambd_erase(const struct lfs_config *cfg, lfs_block_t block);
Dlfs_rambd.c55 int lfs_rambd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_rambd_read()
75 int lfs_rambd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_rambd_prog()
95 int lfs_rambd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_rambd_erase()
Dlfs_filebd.c65 int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_filebd_read()
101 int lfs_filebd_prog(const struct lfs_config *cfg, lfs_block_t block, in lfs_filebd_prog()
134 int lfs_filebd_erase(const struct lfs_config *cfg, lfs_block_t block) { in lfs_filebd_erase()