Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 8 of 8) sorted by relevance

/littlefs-3.5.0-3.4.0/
Dlfs_util.c15 uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { in lfs_crc() argument
26 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 0)) & 0xf]; in lfs_crc()
27 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 4)) & 0xf]; in lfs_crc()
30 return crc; in lfs_crc()
Dlfs.c1050 uint32_t crc = lfs_crc(0xffffffff, &dir->rev, sizeof(dir->rev)); in lfs_dir_fetchmatch() local
1069 crc = lfs_crc(crc, &tag, sizeof(tag)); in lfs_dir_fetchmatch()
1099 if (crc != dcrc) { in lfs_dir_fetchmatch()
1111 lfs->seed = lfs_crc(lfs->seed, &crc, sizeof(crc)); in lfs_dir_fetchmatch()
1123 crc = 0xffffffff; in lfs_dir_fetchmatch()
1141 crc = lfs_crc(crc, &dat, 1); in lfs_dir_fetchmatch()
1434 uint32_t crc; member
1451 commit->crc = lfs_crc(commit->crc, buffer, size); in lfs_dir_commitprog()
1539 commit->crc = lfs_crc(commit->crc, &footer[0], sizeof(footer[0])); in lfs_dir_commitcrc()
1540 footer[1] = lfs_tole32(commit->crc); in lfs_dir_commitcrc()
[all …]
Dlfs_util.h217 uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size);
DDESIGN.md354 use a 32-bit [CRC][wikipedia-crc]. Maintaining redundancy, on the other hand,
1268 || | +-> crc ----------------------> xor
1276 v crc crc v crc
2117 [wikipedia-crc]: https://en.wikipedia.org/wiki/Cyclic_redundancy_check
DSPEC.md768 ^ ^ ^ ^ ^ ^- crc ^- padding
/littlefs-3.5.0-3.4.0/scripts/
Dreadmdir.py114 if hasattr(self, 'crc'): ntag.crc = self.crc
174 crc = binascii.crc32(block[0:4])
189 crc = binascii.crc32(block[off:off+4+4], crc)
191 crc = binascii.crc32(block[off:off+tag.dsize], crc)
192 tag.crc = crc
199 if crc != 0xffffffff:
205 crc = 0
/littlefs-3.5.0-3.4.0/tests/
Dtest_orphans.toml3 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
Dtest_move.toml151 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
243 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
598 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit
698 if = 'LFS_PROG_SIZE <= 0x3fe' # only works with one crc per commit