Home
last modified time | relevance | path

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

/littlefs-latest/
Dlfs_util.c17 uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { in lfs_crc() argument
28 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 0)) & 0xf]; in lfs_crc()
29 crc = (crc >> 4) ^ rtable[(crc ^ (data[i] >> 4)) & 0xf]; in lfs_crc()
32 return crc; in lfs_crc()
Dlfs.c159 lfs_block_t block, lfs_off_t off, lfs_size_t size, uint32_t *crc) { in lfs_bd_crc() argument
172 *crc = lfs_crc(*crc, &dat, diff); in lfs_bd_crc()
464 uint32_t crc; member
469 fcrc->crc = lfs_fromle32(fcrc->crc); in lfs_fcrc_fromle32()
475 fcrc->crc = lfs_tole32(fcrc->crc); in lfs_fcrc_tole32()
1169 uint32_t crc = lfs_crc(0xffffffff, &dir->rev, sizeof(dir->rev)); in lfs_dir_fetchmatch() local
1187 crc = lfs_crc(crc, &tag, sizeof(tag)); in lfs_dir_fetchmatch()
1216 if (crc != dcrc) { in lfs_dir_fetchmatch()
1227 lfs->seed = lfs_crc(lfs->seed, &crc, sizeof(crc)); in lfs_dir_fetchmatch()
1239 crc = 0xffffffff; in lfs_dir_fetchmatch()
[all …]
Dlfs_util.h234 uint32_t lfs_crc(uint32_t crc, const void *buffer, size_t size) { in lfs_crc() argument
235 return LFS_CRC(crc, buffer, size) in lfs_crc()
238 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.md810 ^ ^ ^ ^ ^ ^- crc ^- padding
/littlefs-latest/scripts/
Dreadmdir.py125 if hasattr(self, 'ccrc'): ntag.crc = self.crc
191 crc = binascii.crc32(block[0:4])
208 crc = binascii.crc32(block[off:off+2*4], crc)
210 crc = binascii.crc32(block[off:off+tag.dsize], crc)
211 tag.crc = crc
221 if crc != 0xffffffff:
235 crc = 0
/littlefs-latest/bd/
Dlfs_emubd.c547 lfs_block_t block, uint32_t *crc) { in lfs_emubd_crc_() argument
566 *crc = 0xffffffff ^ crc_; in lfs_emubd_crc_()
572 lfs_block_t block, uint32_t *crc) { in lfs_emubd_crc() argument
574 (void*)cfg, block, crc); in lfs_emubd_crc()
575 int err = lfs_emubd_crc_(cfg, block, crc); in lfs_emubd_crc()
580 int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc) { in lfs_emubd_bdcrc() argument
581 LFS_EMUBD_TRACE("lfs_emubd_bdcrc(%p, %p)", (void*)cfg, crc); in lfs_emubd_bdcrc()
594 *crc = 0xffffffff ^ crc_; in lfs_emubd_bdcrc()
Dlfs_emubd.h197 lfs_block_t block, uint32_t *crc);
200 int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc);
/littlefs-latest/tests/
Dtest_orphans.toml3 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit
Dtest_move.toml163 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit
259 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit
635 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit
738 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit