Home
last modified time | relevance | path

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

/littlefs-3.7.0-3.6.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.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()
449 uint32_t crc; member
454 fcrc->crc = lfs_fromle32(fcrc->crc); in lfs_fcrc_fromle32()
460 fcrc->crc = lfs_tole32(fcrc->crc); in lfs_fcrc_tole32()
1131 uint32_t crc = lfs_crc(0xffffffff, &dir->rev, sizeof(dir->rev)); in lfs_dir_fetchmatch() local
1149 crc = lfs_crc(crc, &tag, sizeof(tag)); in lfs_dir_fetchmatch()
1178 if (crc != dcrc) { in lfs_dir_fetchmatch()
1189 lfs->seed = lfs_crc(lfs->seed, &crc, sizeof(crc)); in lfs_dir_fetchmatch()
1201 crc = 0xffffffff; in lfs_dir_fetchmatch()
[all …]
Dlfs_util.h215 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.md809 ^ ^ ^ ^ ^ ^- crc ^- padding
/littlefs-3.7.0-3.6.0/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-3.7.0-3.6.0/bd/
Dlfs_emubd.c455 lfs_block_t block, uint32_t *crc) { in lfs_emubd_rawcrc() argument
474 *crc = 0xffffffff ^ crc_; in lfs_emubd_rawcrc()
480 lfs_block_t block, uint32_t *crc) { in lfs_emubd_crc() argument
482 (void*)cfg, block, crc); in lfs_emubd_crc()
483 int err = lfs_emubd_rawcrc(cfg, block, crc); in lfs_emubd_crc()
488 int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc) { in lfs_emubd_bdcrc() argument
489 LFS_EMUBD_TRACE("lfs_emubd_bdcrc(%p, %p)", (void*)cfg, crc); in lfs_emubd_bdcrc()
502 *crc = 0xffffffff ^ crc_; in lfs_emubd_bdcrc()
Dlfs_emubd.h194 lfs_block_t block, uint32_t *crc);
197 int lfs_emubd_bdcrc(const struct lfs_config *cfg, uint32_t *crc);
/littlefs-3.7.0-3.6.0/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
631 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit
734 if = 'PROG_SIZE <= 0x3fe' # only works with one crc per commit