Home
last modified time | relevance | path

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

/littlefs-3.5.0-3.4.0/
Dlfs.c50 lfs_block_t block, lfs_off_t off, in lfs_bd_read() argument
54 off+size > lfs->cfg->block_size) { in lfs_bd_read()
62 off < pcache->off + pcache->size) { in lfs_bd_read()
63 if (off >= pcache->off) { in lfs_bd_read()
65 diff = lfs_min(diff, pcache->size - (off-pcache->off)); in lfs_bd_read()
66 memcpy(data, &pcache->buffer[off-pcache->off], diff); in lfs_bd_read()
69 off += diff; in lfs_bd_read()
75 diff = lfs_min(diff, pcache->off-off); in lfs_bd_read()
79 off < rcache->off + rcache->size) { in lfs_bd_read()
80 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);
324 lfs_off_t off; member
332 lfs_off_t off; member
366 lfs_off_t off; member
405 lfs_block_t off; member
582 lfs_soff_t off, int whence);
644 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.5.0-3.4.0/scripts/
Dreadmdir.py112 if hasattr(self, 'off'): ntag.off = self.off
179 off = 4
182 while len(block) - off >= 4:
183 ntag, = struct.unpack('>I', block[off:off+4])
186 tag.off = off + 4
187 tag.data = block[off+4:off+tag.dsize]
189 crc = binascii.crc32(block[off:off+4+4], crc)
191 crc = binascii.crc32(block[off:off+tag.dsize], crc)
193 off += tag.dsize
284 tag.off, tag,
[all …]
Dexplode_asserts.py221 self.off = 0
224 if self.off < len(self.tokens):
225 token = self.tokens[self.off]
235 self.off += 1
241 raise ParseFailure(patterns, self.tokens[self.off:])
245 return self.off
248 self.off = state
368 for i in range(p.off, len(p.tokens)):
/littlefs-3.5.0-3.4.0/bd/
Dlfs_testbd.c108 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_testbd_rawread() argument
111 return lfs_filebd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread()
113 return lfs_rambd_read(cfg, block, off, buffer, size); in lfs_testbd_rawread()
118 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_testbd_rawprog() argument
121 return lfs_filebd_prog(cfg, block, off, buffer, size); in lfs_testbd_rawprog()
123 return lfs_rambd_prog(cfg, block, off, buffer, size); in lfs_testbd_rawprog()
148 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_testbd_read() argument
151 (void*)cfg, block, off, buffer, size); in lfs_testbd_read()
155 LFS_ASSERT(off % cfg->read_size == 0); in lfs_testbd_read()
167 int err = lfs_testbd_rawread(cfg, block, off, buffer, size); in lfs_testbd_read()
[all …]
Dlfs_rambd.c75 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_rambd_read() argument
78 (void*)cfg, block, off, buffer, size); in lfs_rambd_read()
82 LFS_ASSERT(off % cfg->read_size == 0); in lfs_rambd_read()
87 memcpy(buffer, &bd->buffer[block*cfg->block_size + off], size); in lfs_rambd_read()
94 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_rambd_prog() argument
97 (void*)cfg, block, off, buffer, size); in lfs_rambd_prog()
101 LFS_ASSERT(off % cfg->prog_size == 0); in lfs_rambd_prog()
108 LFS_ASSERT(bd->buffer[block*cfg->block_size + off + i] == in lfs_rambd_prog()
114 memcpy(&bd->buffer[block*cfg->block_size + off], buffer, size); in lfs_rambd_prog()
Dlfs_filebd.c82 lfs_off_t off, void *buffer, lfs_size_t size) { in lfs_filebd_read() argument
85 (void*)cfg, block, off, buffer, size); in lfs_filebd_read()
89 LFS_ASSERT(off % cfg->read_size == 0); in lfs_filebd_read()
100 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_read()
119 lfs_off_t off, const void *buffer, lfs_size_t size) { in lfs_filebd_prog() argument
121 (void*)cfg, block, off, buffer, size); in lfs_filebd_prog()
125 LFS_ASSERT(off % cfg->prog_size == 0); in lfs_filebd_prog()
132 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_prog()
154 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_prog()
Dlfs_filebd.h52 lfs_off_t off, void *buffer, lfs_size_t size);
58 lfs_off_t off, const void *buffer, lfs_size_t size);
Dlfs_rambd.h54 lfs_off_t off, void *buffer, lfs_size_t size);
60 lfs_off_t off, const void *buffer, lfs_size_t size);
Dlfs_testbd.h109 lfs_off_t off, void *buffer, lfs_size_t size);
115 lfs_off_t off, const void *buffer, lfs_size_t size);
/littlefs-3.5.0-3.4.0/tests/
Dtest_seek.toml155 lfs_soff_t off = offsets[i];
157 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
159 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
167 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
177 lfs_file_seek(&lfs, &file, off, LFS_SEEK_SET) => off;
350 lfs_off_t off = 0;
352 off = (5*off + 1) % COUNT;
353 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
358 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
361 lfs_file_seek(&lfs, &file, off*size, LFS_SEEK_SET) => off*size;
[all …]
Dtest_move.toml102 int off = LFS_BLOCK_SIZE-1;
103 while (off >= 0 && bbuffer[off] == LFS_ERASE_VALUE) {
104 off -= 1;
106 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
178 int off = LFS_BLOCK_SIZE-1;
179 while (off >= 0 && bbuffer[off] == LFS_ERASE_VALUE) {
180 off -= 1;
182 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
194 off = LFS_BLOCK_SIZE-1;
195 while (off >= 0 && bbuffer[off] == LFS_ERASE_VALUE) {
[all …]
Dtest_orphans.toml23 int off = LFS_BLOCK_SIZE-1;
24 while (off >= 0 && bbuffer[off] == LFS_ERASE_VALUE) {
25 off -= 1;
27 memset(&bbuffer[off-3], LFS_BLOCK_SIZE, 3);
Dtest_truncate.toml119 /* Chop off the last quarter */