Home
last modified time | relevance | path

Searched refs:b (Results 1 – 16 of 16) sorted by relevance

/littlefs-3.7.0-3.6.0/tests/
Dtest_files.toml41 for (lfs_size_t b = 0; b < chunk; b++) {
42 buffer[b] = TEST_PRNG(&prng) & 0xff;
57 for (lfs_size_t b = 0; b < chunk; b++) {
58 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
83 for (lfs_size_t b = 0; b < chunk; b++) {
84 buffer[b] = TEST_PRNG(&prng) & 0xff;
99 for (lfs_size_t b = 0; b < chunk; b++) {
100 assert(buffer[b] == (TEST_PRNG(&prng) & 0xff));
113 for (lfs_size_t b = 0; b < chunk; b++) {
114 buffer[b] = TEST_PRNG(&prng) & 0xff;
[all …]
Dtest_exhaustion.toml199 for (lfs_block_t b = 0; b < BLOCK_COUNT; b++) {
200 lfs_emubd_setwear(cfg, b,
201 (b < run_block_count[run]) ? 0 : ERASE_CYCLES) => 0;
299 for (lfs_block_t b = 0; b < BLOCK_COUNT; b++) {
300 lfs_emubd_setwear(cfg, b,
301 (b < run_block_count[run]) ? 0 : ERASE_CYCLES) => 0;
476 for (lfs_block_t b = 2; b < BLOCK_COUNT; b++) {
477 lfs_emubd_wear_t wear = lfs_emubd_wear(cfg, b);
478 printf("%08x: wear %d\n", b, wear);
495 for (lfs_block_t b = 2; b < BLOCK_COUNT; b++) {
[all …]
Dtest_move.toml7 lfs_mkdir(&lfs, "b") => 0;
49 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
88 lfs_mkdir(&lfs, "b") => 0;
147 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
169 lfs_mkdir(&lfs, "b") => 0;
251 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
265 lfs_mkdir(&lfs, "b") => 0;
345 lfs_file_open(&lfs, &file, "b/hello", LFS_O_RDONLY) => LFS_ERR_NOENT;
369 err = lfs_mkdir(&lfs, "b");
388 if (lfs_stat(&lfs, "b/hello", &info) == 0) {
[all …]
/littlefs-3.7.0-3.6.0/bd/
Dlfs_emubd.c229 const lfs_emubd_block_t *b = bd->blocks[block]; in lfs_emubd_read() local
230 if (b) { in lfs_emubd_read()
232 if (bd->cfg->erase_cycles && b->wear >= bd->cfg->erase_cycles && in lfs_emubd_read()
239 memcpy(buffer, &b->data[off], size); in lfs_emubd_read()
279 lfs_emubd_block_t *b = lfs_emubd_mutblock(cfg, &bd->blocks[block]); in lfs_emubd_prog() local
280 if (!b) { in lfs_emubd_prog()
286 if (bd->cfg->erase_cycles && b->wear >= bd->cfg->erase_cycles) { in lfs_emubd_prog()
303 LFS_ASSERT(b->data[off+i] == bd->cfg->erase_value); in lfs_emubd_prog()
308 memcpy(&b->data[off], buffer, size); in lfs_emubd_prog()
365 lfs_emubd_block_t *b = lfs_emubd_mutblock(cfg, &bd->blocks[block]); in lfs_emubd_erase() local
[all …]
/littlefs-3.7.0-3.6.0/scripts/
Dcov.py112 def __new__(cls, a=0, b=None): argument
113 if isinstance(a, Frac) and b is None:
115 if isinstance(a, str) and b is None:
116 a, b = a.split('/', 1)
117 if b is None:
118 b = a
119 return super().__new__(cls, Int(a), Int(b))
122 return '%s/%s' % (self.a, self.b)
129 t = self.a.x/self.b.x if self.b.x else 1.0
155 return self.__class__(self.a + other.a, self.b + other.b)
[all …]
Dtracebd.py197 b = '{:0{}b}'.format(i, 2*m.ceil(m.log2(i+1)/2))
198 x = int(b[1::2], 2) if b[1::2] else 0
199 y = int(b[0::2], 2) if b[0::2] else 0
463 max_wear = max(b.wear for b in self.blocks)
468 for (x,y), b in zip(
471 grid[x + y*self.width] = b
474 for (x,y), b in zip(
477 grid[x + y*self.width] = b
508 b = grid[x+(2-1-(i%2)) + ((row*4)+(4-1-(i//2)))*self.width]
509 best_b |= b
[all …]
Dsummary.py169 def __new__(cls, a=0, b=None): argument
170 if isinstance(a, Frac) and b is None:
172 if isinstance(a, str) and b is None:
173 a, b = a.split('/', 1)
174 if b is None:
175 b = a
176 return super().__new__(cls, Int(a), Int(b))
179 return '%s/%s' % (self.a, self.b)
186 t = self.a.x/self.b.x if self.b.x else 1.0
212 return self.__class__(self.a + other.a, self.b + other.b)
[all …]
Dreadtree.py12 gstate = b'\0\0\0\0\0\0\0\0\0\0\0\0'
34 .ljust(args.block_size, b'\xff'))
43 if mdir.tail.size != 8 or mdir.tail.data == 8*b'\xff':
59 gstate = bytes((a or 0) ^ (b or 0)
60 for a,b in it.zip_longest(gstate, ngstate.data))
106 struct.unpack('<HH', superblock[1].data[0:4].ljust(4, b'\xff'))))
113 tag = Tag(struct.unpack('<I', gstate[0:4].ljust(4, b'\xff'))[0])
114 blocks = struct.unpack('<II', gstate[4:4+8].ljust(8, b'\xff'))
Dreadmdir.py349 .ljust(args.block_size, b'\xff'))
356 if mdir.tail.size != 8 or mdir.tail.data == 8*b'\xff':
362 ', '.join('%#x' % b
363 for b in [args.block1, args.block2]
364 if b is not None),
Dplot.py401 b = 0
406 b |= 1 << i
414 if b:
418 c = CHARS_BRAILLE[b]
420 c = CHARS_DOTS[b]
425 if b and color and best_f:
429 if not b:
Dreadblock.py9 .ljust(args.block_size, b'\xff'))
Dperfbd.py398 while os.read(fd, 1) not in {b'\n', b'\r', b''}:
/littlefs-3.7.0-3.6.0/
DMakefile21 SRC ?= $(filter-out $(wildcard *.t.* *.b.*),$(wildcard *.c))
30 $(filter-out $(wildcard bd/*.t.* bd/*.b.*),$(wildcard bd/*.c)) \
47 $(filter-out $(wildcard bd/*.t.* bd/*.b.*),$(wildcard bd/*.c)) \
50 BENCH_A := $(BENCHES:%.toml=$(BUILDDIR)/%.b.a.c) \
51 $(BENCH_SRC:%.c=$(BUILDDIR)/%.b.a.c)
52 BENCH_C := $(BENCH_A:%.b.a.c=%.b.c)
53 BENCH_OBJ := $(BENCH_C:%.b.c=%.b.o)
54 BENCH_DEP := $(BENCH_C:%.b.c=%.b.d)
55 BENCH_CI := $(BENCH_C:%.b.c=%.b.ci)
56 BENCH_GCNO := $(BENCH_C:%.b.c=%.b.gcno)
[all …]
Dlfs_util.h108 static inline uint32_t lfs_max(uint32_t a, uint32_t b) { in lfs_max() argument
109 return (a > b) ? a : b; in lfs_max()
112 static inline uint32_t lfs_min(uint32_t a, uint32_t b) { in lfs_min() argument
113 return (a < b) ? a : b; in lfs_min()
164 static inline int lfs_scmp(uint32_t a, uint32_t b) { in lfs_scmp() argument
165 return (int)(unsigned)(a - b); in lfs_scmp()
D.gitignore8 *.b.*
Dlfs.c394 static inline void lfs_gstate_xor(lfs_gstate_t *a, const lfs_gstate_t *b) { in lfs_gstate_xor() argument
396 ((uint32_t*)a)[i] ^= ((const uint32_t*)b)[i]; in lfs_gstate_xor()
2822 lfs_off_t b = lfs->cfg->block_size - 2*4; in lfs_ctz_index() local
2823 lfs_off_t i = size / b; in lfs_ctz_index()
2828 i = (size - 4*(lfs_popc(i-1)+2)) / b; in lfs_ctz_index()
2829 *off = size - b*i - 4*lfs_popc(i); in lfs_ctz_index()