Home
last modified time | relevance | path

Searched refs:off (Results 1 – 19 of 19) sorted by relevance

/littlefs-3.7.0-3.6.0/
Dlfs.c49 lfs_block_t block, lfs_off_t off, in lfs_bd_read() argument
52 if (off+size > lfs->cfg->block_size in lfs_bd_read()
61 off < pcache->off + pcache->size) { in lfs_bd_read()
62 if (off >= pcache->off) { in lfs_bd_read()
64 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
65 memcpy(data, &pcache->buffer[off-pcache->off], diff); in lfs_bd_read()
68 off += diff; in lfs_bd_read()
74 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
78 off < rcache->off + rcache->size) { in lfs_bd_read()
79 if (off >= rcache->off) { in lfs_bd_read()
[all …]
Dlfs.h166 lfs_off_t off, void *buffer, lfs_size_t size);
172 lfs_off_t off, const void *buffer, lfs_size_t size);
353 lfs_off_t off; member
361 lfs_off_t off; member
395 lfs_off_t off; member
434 lfs_block_t off; member
612 lfs_soff_t off, int whence);
674 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off);
DDESIGN.md216 block based filesystems while managing to pull off atomic updates without
768 ![off = N - (B-2w/8)n - (w/8)popcount(n)][ctz-formula7]
1548 set off a bunch of red flags.
/littlefs-3.7.0-3.6.0/scripts/
Dtracebd.py360 def _op(self, f, block=None, off=None, size=None): argument
364 if off is None:
365 off, size = 0, self.size
367 off, size = 0, off
371 size=max(self.size, off+size),
375 start = (block*self.size + off) / (self.size*self.count)
376 stop = (block*self.size + off+size) / (self.size*self.count)
386 def read(self, block=None, off=None, size=None): argument
387 self._op(Block.read, block, off, size)
389 def prog(self, block=None, off=None, size=None): argument
[all …]
Dreadmdir.py123 if hasattr(self, 'off'): ntag.off = self.off
198 off = 4
201 while len(block) - off >= 4:
202 ntag, = struct.unpack('>I', block[off:off+4])
205 tag.off = off + 4
206 tag.data = block[off+4:off+tag.dsize]
208 crc = binascii.crc32(block[off:off+2*4], crc)
210 crc = binascii.crc32(block[off:off+tag.dsize], crc)
212 off += tag.dsize
229 block[off:off+fcrcsize])
[all …]
Dprettyasserts.py228 self.off = 0
231 if self.off < len(self.tokens):
232 token = self.tokens[self.off]
242 self.off += 1
248 raise ParseFailure(patterns, self.tokens[self.off:])
252 return self.off
255 self.off = state
422 for i in range(p.off, len(p.tokens)):
Dperf.py480 off = int(m.group('off'), 0) if m.group('off') else 0
496 sym_addr_ = addr_ - off
/littlefs-3.7.0-3.6.0/bd/
Dlfs_rambd.c56 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_rambd_read() argument
59 (void*)cfg, block, off, buffer, size); in lfs_rambd_read()
64 LFS_ASSERT(off % bd->cfg->read_size == 0); in lfs_rambd_read()
66 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_rambd_read()
69 memcpy(buffer, &bd->buffer[block*bd->cfg->erase_size + off], size); in lfs_rambd_read()
76 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_rambd_prog() argument
79 (void*)cfg, block, off, buffer, size); in lfs_rambd_prog()
84 LFS_ASSERT(off % bd->cfg->prog_size == 0); in lfs_rambd_prog()
86 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_rambd_prog()
89 memcpy(&bd->buffer[block*bd->cfg->erase_size + off], buffer, size); in lfs_rambd_prog()
Dlfs_filebd.c66 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_filebd_read() argument
69 (void*)cfg, block, off, buffer, size); in lfs_filebd_read()
74 LFS_ASSERT(off % bd->cfg->read_size == 0); in lfs_filebd_read()
76 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_filebd_read()
83 (off_t)block*bd->cfg->erase_size + (off_t)off, SEEK_SET); in lfs_filebd_read()
102 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_filebd_prog() argument
105 (void*)cfg, block, off, buffer, size); in lfs_filebd_prog()
110 LFS_ASSERT(off % bd->cfg->prog_size == 0); in lfs_filebd_prog()
112 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_filebd_prog()
116 (off_t)block*bd->cfg->erase_size + (off_t)off, SEEK_SET); in lfs_filebd_prog()
Dlfs_emubd.c216 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_emubd_read() argument
219 (void*)cfg, block, off, buffer, size); in lfs_emubd_read()
224 LFS_ASSERT(off % bd->cfg->read_size == 0); in lfs_emubd_read()
226 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_emubd_read()
239 memcpy(buffer, &b->data[off], size); in lfs_emubd_read()
266 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_emubd_prog() argument
269 (void*)cfg, block, off, buffer, size); in lfs_emubd_prog()
274 LFS_ASSERT(off % bd->cfg->prog_size == 0); in lfs_emubd_prog()
276 LFS_ASSERT(off+size <= bd->cfg->erase_size); in lfs_emubd_prog()
303 LFS_ASSERT(b->data[off+i] == bd->cfg->erase_value); in lfs_emubd_prog()
[all …]
Dlfs_filebd.h60 lfs_off_t off, void *buffer, lfs_size_t size);
66 lfs_off_t off, const void *buffer, lfs_size_t size);
Dlfs_rambd.h63 lfs_off_t off, void *buffer, lfs_size_t size);
69 lfs_off_t off, const void *buffer, lfs_size_t size);
Dlfs_emubd.h172 lfs_off_t off, void *buffer, lfs_size_t size);
178 lfs_off_t off, const void *buffer, lfs_size_t size);
/littlefs-3.7.0-3.6.0/tests/
Dtest_seek.toml166 lfs_soff_t off = offsets[i];
168 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
170 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
178 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
188 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
373 lfs_off_t off = 0;
375 off = (5*off + 1) % COUNT;
376 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
381 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
384 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
[all …]
Dtest_move.toml113 int off = BLOCK_SIZE-1;
114 while (off >= 0 && buffer[off] == ERASE_VALUE) {
115 off -= 1;
117 memset(&buffer[off-3], BLOCK_SIZE, 3);
194 int off = BLOCK_SIZE-1;
195 while (off >= 0 && buffer[off] == ERASE_VALUE) {
196 off -= 1;
198 memset(&buffer[off-3], BLOCK_SIZE, 3);
210 off = BLOCK_SIZE-1;
211 while (off >= 0 && buffer[off] == ERASE_VALUE) {
[all …]
Dtest_orphans.toml25 int off = BLOCK_SIZE-1;
26 while (off >= 0 && buffer[off] == ERASE_VALUE) {
27 off -= 1;
29 memset(&buffer[off-3], BLOCK_SIZE, 3);
Dtest_powerloss.toml135 lfs_off_t off = dir.m.off;
143 bbuffer[off + BYTE_OFF] = BYTE_VALUE;
Dtest_superblocks.toml332 .off = sizeof(uint32_t),
Dtest_truncate.toml138 /* Chop off the last quarter */