Lines Matching full:crc
24 /* CRC bytes in the packet */
66 /* leave crc field zeroed */ in init_datagram_queue()
73 /* Compute crc for further comparison */ in init_datagram_queue()
74 uint16_t crc; in init_datagram_queue() local
76 crc = crc16(POLYNOMIAL, 0x0000, in init_datagram_queue()
79 /* Save crc value in header[CRC_BYTE_1-CRC_BYTE_2] field */ in init_datagram_queue()
80 descriptors[queue_num][i].ptr[CRC_BYTE_1] = (uint8_t)(crc >> 8); in init_datagram_queue()
81 descriptors[queue_num][i].ptr[CRC_BYTE_2] = (uint8_t)(crc); in init_datagram_queue()
97 uint16_t crc, crc_orig; in test_thread() local
101 /* Store original crc value from header */ in test_thread()
105 /* Crc field should be zero before crc calculation */ in test_thread()
108 crc = crc16(POLYNOMIAL, 0x0000, qin_ptr->ptr, SIZE_OF_HEADER); in test_thread()
110 /* Compare computed crc with crc from phdr_desc->crc */ in test_thread()
111 if (crc == crc_orig) { in test_thread()