Lines Matching full:crc
7 #include <zephyr/sys/crc.h>
11 uint16_t crc = seed; in crc16() local
15 crc ^= (uint16_t)(src[i] << 8U); in crc16()
18 if (crc & 0x8000UL) { in crc16()
19 crc = (crc << 1U) ^ poly; in crc16()
21 crc = crc << 1U; in crc16()
27 return crc; in crc16()
32 uint16_t crc = seed; in crc16_reflect() local
36 crc ^= (uint16_t)src[i]; in crc16_reflect()
39 if (crc & 0x0001UL) { in crc16_reflect()
40 crc = (crc >> 1U) ^ poly; in crc16_reflect()
42 crc = crc >> 1U; in crc16_reflect()
48 return crc; in crc16_reflect()