Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 35) sorted by relevance

12

/littlefs-3.7.0-3.6.0/bd/
Dlfs_emubd.c49 const struct lfs_config *cfg, in lfs_emubd_mutblock() argument
51 lfs_emubd_t *bd = cfg->context; in lfs_emubd_mutblock()
60 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock()
66 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock()
76 sizeof(lfs_emubd_block_t) + bd->cfg->erase_size); in lfs_emubd_mutblock()
86 (bd->cfg->erase_value != -1) ? bd->cfg->erase_value : 0, in lfs_emubd_mutblock()
87 bd->cfg->erase_size); in lfs_emubd_mutblock()
97 int lfs_emubd_create(const struct lfs_config *cfg, in lfs_emubd_create() argument
107 (void*)cfg, cfg->context, in lfs_emubd_create()
108 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_emubd_create()
[all …]
Dlfs_rambd.c10 int lfs_rambd_create(const struct lfs_config *cfg, in lfs_rambd_create() argument
17 (void*)cfg, cfg->context, in lfs_rambd_create()
18 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_rambd_create()
19 (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, in lfs_rambd_create()
23 lfs_rambd_t *bd = cfg->context; in lfs_rambd_create()
24 bd->cfg = bdcfg; in lfs_rambd_create()
27 if (bd->cfg->buffer) { in lfs_rambd_create()
28 bd->buffer = bd->cfg->buffer; in lfs_rambd_create()
30 bd->buffer = lfs_malloc(bd->cfg->erase_size * bd->cfg->erase_count); in lfs_rambd_create()
38 memset(bd->buffer, 0, bd->cfg->erase_size * bd->cfg->erase_count); in lfs_rambd_create()
[all …]
Dlfs_filebd.c18 int lfs_filebd_create(const struct lfs_config *cfg, const char *path, in lfs_filebd_create() argument
25 (void*)cfg, cfg->context, in lfs_filebd_create()
26 (void*)(uintptr_t)cfg->read, (void*)(uintptr_t)cfg->prog, in lfs_filebd_create()
27 (void*)(uintptr_t)cfg->erase, (void*)(uintptr_t)cfg->sync, in lfs_filebd_create()
32 lfs_filebd_t *bd = cfg->context; in lfs_filebd_create()
33 bd->cfg = bdcfg; in lfs_filebd_create()
52 int lfs_filebd_destroy(const struct lfs_config *cfg) { in lfs_filebd_destroy() argument
53 LFS_FILEBD_TRACE("lfs_filebd_destroy(%p)", (void*)cfg); in lfs_filebd_destroy()
54 lfs_filebd_t *bd = cfg->context; in lfs_filebd_destroy()
65 int lfs_filebd_read(const struct lfs_config *cfg, lfs_block_t block, in lfs_filebd_read() argument
[all …]
Dlfs_emubd.h157 const struct lfs_emubd_config *cfg; member
164 int lfs_emubd_create(const struct lfs_config *cfg,
168 int lfs_emubd_destroy(const struct lfs_config *cfg);
171 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);
187 int lfs_emubd_sync(const struct lfs_config *cfg);
193 int lfs_emubd_crc(const struct lfs_config *cfg,
197 int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc);
200 lfs_emubd_sio_t lfs_emubd_readed(const struct lfs_config *cfg);
[all …]
Dlfs_filebd.h47 const struct lfs_filebd_config *cfg; member
52 int lfs_filebd_create(const struct lfs_config *cfg, const char *path,
56 int lfs_filebd_destroy(const struct lfs_config *cfg);
59 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);
75 int lfs_filebd_sync(const struct lfs_config *cfg);
Dlfs_rambd.h50 const struct lfs_rambd_config *cfg; member
55 int lfs_rambd_create(const struct lfs_config *cfg,
59 int lfs_rambd_destroy(const struct lfs_config *cfg);
62 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);
78 int lfs_rambd_sync(const struct lfs_config *cfg);
/littlefs-3.7.0-3.6.0/tests/
Dtest_bd.toml14 cfg->erase(cfg, 0) => 0;
15 for (lfs_off_t i = 0; i < cfg->block_size; i += PROG) {
19 cfg->prog(cfg, 0, i, buffer, PROG) => 0;
23 for (lfs_off_t i = 0; i < cfg->block_size; i += READ) {
24 cfg->read(cfg, 0, i, buffer, READ) => 0;
41 cfg->erase(cfg, block) => 0;
42 for (lfs_off_t i = 0; i < cfg->block_size; i += PROG) {
46 cfg->prog(cfg, block, i, buffer, PROG) => 0;
51 for (lfs_off_t i = 0; i < cfg->block_size; i += READ) {
52 cfg->read(cfg, block, i, buffer, READ) => 0;
[all …]
Dtest_superblocks.toml5 lfs_format(&lfs, cfg) => 0;
12 lfs_format(&lfs, cfg) => 0;
13 lfs_mount(&lfs, cfg) => 0;
21 lfs_format(&lfs, cfg) => 0;
24 struct lfs_config tweaked_cfg = *cfg;
27 assert(lfs.block_count == cfg->block_count);
37 int err = lfs_mount(&lfs, cfg);
39 lfs_format(&lfs, cfg) => 0;
40 lfs_mount(&lfs, cfg) => 0;
49 lfs_mount(&lfs, cfg) => LFS_ERR_CORRUPT;
[all …]
Dtest_alloc.toml15 lfs_format(&lfs, cfg) => 0;
16 lfs_mount(&lfs, cfg) => 0;
20 lfs_mount(&lfs, cfg) => 0;
41 lfs_mount(&lfs, cfg) => 0;
67 lfs_format(&lfs, cfg) => 0;
68 lfs_mount(&lfs, cfg) => 0;
73 lfs_mount(&lfs, cfg) => 0;
92 lfs_mount(&lfs, cfg) => 0;
119 lfs_format(&lfs, cfg) => 0;
122 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_orphans.toml6 lfs_format(&lfs, cfg) => 0;
7 lfs_mount(&lfs, cfg) => 0;
17 lfs_mount(&lfs, cfg) => 0;
24 cfg->read(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
30 cfg->erase(cfg, block) => 0;
31 cfg->prog(cfg, block, 0, buffer, BLOCK_SIZE) => 0;
32 cfg->sync(cfg) => 0;
34 lfs_mount(&lfs, cfg) => 0;
41 lfs_mount(&lfs, cfg) => 0;
54 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_evil.toml13 lfs_format(&lfs, cfg) => 0;
16 lfs_init(&lfs, cfg) => 0;
27 lfs_mount(&lfs, cfg) => LFS_ERR_CORRUPT;
36 lfs_format(&lfs, cfg) => 0;
38 lfs_mount(&lfs, cfg) => 0;
43 lfs_init(&lfs, cfg) => 0;
63 lfs_mount(&lfs, cfg) => 0;
87 lfs_format(&lfs, cfg) => 0;
89 lfs_mount(&lfs, cfg) => 0;
97 lfs_init(&lfs, cfg) => 0;
[all …]
Dtest_move.toml4 lfs_format(&lfs, cfg) => 0;
5 lfs_mount(&lfs, cfg) => 0;
18 lfs_mount(&lfs, cfg) => 0;
22 lfs_mount(&lfs, cfg) => 0;
66 lfs_format(&lfs, cfg) => 0;
67 lfs_mount(&lfs, cfg) => 0;
85 lfs_format(&lfs, cfg) => 0;
86 lfs_mount(&lfs, cfg) => 0;
99 lfs_mount(&lfs, cfg) => 0;
104 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_powerloss.toml9 lfs_format(&lfs, cfg) => 0;
11 lfs_mount(&lfs, cfg) => 0;
35 lfs_mount(&lfs, cfg) => 0;
45 cfg->read(cfg, pair[1], 0, bbuffer, BLOCK_SIZE) => 0;
49 cfg->erase(cfg, pair[1]) => 0;
50 cfg->prog(cfg, pair[1], 0, bbuffer, BLOCK_SIZE) => 0;
52 lfs_mount(&lfs, cfg) => 0;
102 lfs_format(&lfs, cfg) => 0;
104 lfs_mount(&lfs, cfg) => 0;
131 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_paths.toml6 lfs_format(&lfs, cfg) => 0;
7 lfs_mount(&lfs, cfg) => 0;
31 lfs_format(&lfs, cfg) => 0;
32 lfs_mount(&lfs, cfg) => 0;
58 lfs_format(&lfs, cfg) => 0;
59 lfs_mount(&lfs, cfg) => 0;
87 lfs_format(&lfs, cfg) => 0;
88 lfs_mount(&lfs, cfg) => 0;
120 lfs_format(&lfs, cfg) => 0;
121 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_dirs.toml4 lfs_format(&lfs, cfg) => 0;
5 lfs_mount(&lfs, cfg) => 0;
25 lfs_format(&lfs, cfg) => 0;
27 lfs_mount(&lfs, cfg) => 0;
35 lfs_mount(&lfs, cfg) => 0;
62 lfs_format(&lfs, cfg) => 0;
64 lfs_mount(&lfs, cfg) => 0;
72 lfs_mount(&lfs, cfg) => 0;
93 lfs_mount(&lfs, cfg) => 0;
101 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_files.toml5 lfs_format(&lfs, cfg) => 0;
6 lfs_mount(&lfs, cfg) => 0;
17 lfs_mount(&lfs, cfg) => 0;
30 lfs_format(&lfs, cfg) => 0;
33 lfs_mount(&lfs, cfg) => 0;
50 lfs_mount(&lfs, cfg) => 0;
72 lfs_format(&lfs, cfg) => 0;
75 lfs_mount(&lfs, cfg) => 0;
92 lfs_mount(&lfs, cfg) => 0;
108 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_badblocks.toml19 lfs_emubd_setwear(cfg, badblock-1, 0) => 0;
20 lfs_emubd_setwear(cfg, badblock, 0xffffffff) => 0;
23 lfs_format(&lfs, cfg) => 0;
25 lfs_mount(&lfs, cfg) => 0;
52 lfs_mount(&lfs, cfg) => 0;
99 lfs_emubd_setwear(cfg, i+2, 0xffffffff) => 0;
103 lfs_format(&lfs, cfg) => 0;
105 lfs_mount(&lfs, cfg) => 0;
132 lfs_mount(&lfs, cfg) => 0;
178 lfs_emubd_setwear(cfg, (2*i) + 2, 0xffffffff) => 0;
[all …]
Dtest_truncate.toml8 lfs_format(&lfs, cfg) => 0;
9 lfs_mount(&lfs, cfg) => 0;
26 lfs_mount(&lfs, cfg) => 0;
36 lfs_mount(&lfs, cfg) => 0;
59 lfs_format(&lfs, cfg) => 0;
60 lfs_mount(&lfs, cfg) => 0;
77 lfs_mount(&lfs, cfg) => 0;
95 lfs_mount(&lfs, cfg) => 0;
115 lfs_format(&lfs, cfg) => 0;
116 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_exhaustion.toml16 lfs_format(&lfs, cfg) => 0;
17 lfs_mount(&lfs, cfg) => 0;
23 lfs_mount(&lfs, cfg) => 0;
80 lfs_mount(&lfs, cfg) => 0;
109 lfs_format(&lfs, cfg) => 0;
113 lfs_mount(&lfs, cfg) => 0;
170 lfs_mount(&lfs, cfg) => 0;
200 lfs_emubd_setwear(cfg, b,
205 lfs_format(&lfs, cfg) => 0;
206 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_compat.toml70 memcpy(&cfgp, cfg, sizeof(cfgp));
81 lfs_mount(&lfs, cfg) => 0;
101 memcpy(&cfgp, cfg, sizeof(cfgp));
117 lfs_mount(&lfs, cfg) => 0;
161 memcpy(&cfgp, cfg, sizeof(cfgp));
189 lfs_mount(&lfs, cfg) => 0;
251 memcpy(&cfgp, cfg, sizeof(cfgp));
282 lfs_mount(&lfs, cfg) => 0;
366 memcpy(&cfgp, cfg, sizeof(cfgp));
382 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_seek.toml14 lfs_format(&lfs, cfg) => 0;
15 lfs_mount(&lfs, cfg) => 0;
28 lfs_mount(&lfs, cfg) => 0;
87 lfs_format(&lfs, cfg) => 0;
88 lfs_mount(&lfs, cfg) => 0;
101 lfs_mount(&lfs, cfg) => 0;
145 lfs_format(&lfs, cfg) => 0;
146 lfs_mount(&lfs, cfg) => 0;
159 lfs_mount(&lfs, cfg) => 0;
209 lfs_format(&lfs, cfg) => 0;
[all …]
Dtest_attrs.toml4 lfs_format(&lfs, cfg) => 0;
5 lfs_mount(&lfs, cfg) => 0;
13 lfs_mount(&lfs, cfg) => 0;
66 lfs_mount(&lfs, cfg) => 0;
85 lfs_format(&lfs, cfg) => 0;
86 lfs_mount(&lfs, cfg) => 0;
94 lfs_mount(&lfs, cfg) => 0;
146 lfs_mount(&lfs, cfg) => 0;
165 lfs_format(&lfs, cfg) => 0;
166 lfs_mount(&lfs, cfg) => 0;
[all …]
Dtest_relocations.toml8 lfs_format(&lfs, cfg) => 0;
10 lfs_mount(&lfs, cfg) => 0;
23 lfs_mount(&lfs, cfg) => 0;
58 lfs_mount(&lfs, cfg) => 0;
86 lfs_format(&lfs, cfg) => 0;
88 lfs_mount(&lfs, cfg) => 0;
101 lfs_mount(&lfs, cfg) => 0;
183 int err = lfs_mount(&lfs, cfg);
185 lfs_format(&lfs, cfg) => 0;
186 lfs_mount(&lfs, cfg) => 0;
[all …]
/littlefs-3.7.0-3.6.0/
Dlfs.c43 memset(pcache->buffer, 0xff, lfs->cfg->cache_size); in lfs_cache_zero()
52 if (off+size > lfs->cfg->block_size in lfs_bd_read()
94 if (size >= hint && off % lfs->cfg->read_size == 0 && in lfs_bd_read()
95 size >= lfs->cfg->read_size) { in lfs_bd_read()
97 diff = lfs_aligndown(diff, lfs->cfg->read_size); in lfs_bd_read()
98 int err = lfs->cfg->read(lfs->cfg, block, off, data, diff); in lfs_bd_read()
112 rcache->off = lfs_aligndown(off, lfs->cfg->read_size); in lfs_bd_read()
115 lfs_alignup(off+hint, lfs->cfg->read_size), in lfs_bd_read()
116 lfs->cfg->block_size) in lfs_bd_read()
118 lfs->cfg->cache_size); in lfs_bd_read()
[all …]
/littlefs-3.7.0-3.6.0/benches/
Dbench_dir.toml11 lfs_format(&lfs, cfg) => 0;
12 lfs_mount(&lfs, cfg) => 0;
71 lfs_format(&lfs, cfg) => 0;
72 lfs_mount(&lfs, cfg) => 0;
113 lfs_format(&lfs, cfg) => 0;
114 lfs_mount(&lfs, cfg) => 0;
159 lfs_format(&lfs, cfg) => 0;
160 lfs_mount(&lfs, cfg) => 0;
214 lfs_format(&lfs, cfg) => 0;
215 lfs_mount(&lfs, cfg) => 0;
[all …]

12