Lines Matching full:crc
16 #include <zephyr/sys/crc.h>
26 #define RETAINED_CRC_OFFSET offsetof(struct retained_data, crc)
27 #define RETAINED_CHECKED_SIZE (RETAINED_CRC_OFFSET + sizeof(retained.crc))
36 /* The residue of a CRC is what you get from the CRC over the in retained_validate()
37 * message catenated with its CRC. This is the post-final-xor in retained_validate()
38 * residue for CRC-32 (CRC-32/ISO-HDLC) which Zephyr calls in retained_validate()
42 uint32_t crc = crc32_ieee((const uint8_t *)&retained, in retained_validate() local
44 bool valid = (crc == residue); in retained_validate()
46 /* If the CRC isn't valid, reset the retained data. */ in retained_validate()
66 uint32_t crc = crc32_ieee((const uint8_t *)&retained, in retained_update() local
69 retained.crc = sys_cpu_to_le32(crc); in retained_update()