Lines Matching defs:Crc
140 @param[in] Crc Initial CRC.
149 IN UINT16 Crc
156 Crc ^= (UINT16)Data[Index];
158 if ((Crc & 0x8000) != 0) {
159 Crc <<= 1;
160 Crc ^= 0x1021;
162 Crc <<= 1;
166 return Crc;
535 DebugHeader.Crc = 0;
536 DebugHeader.Crc = CalculateCrc16 (
668 UINT16 Crc;
682 Crc = DebugHeader->Crc;
683 DebugHeader->Crc = 0;
684 if (CalculateCrc16 ((UINT8 *)DebugHeader, DebugHeader->Length, 0) != Crc) {
685 DebugAgentMsgPrint (DEBUG_AGENT_WARNING, "Debug Timer CRC (%x) against (%x)\n", Crc, CalculateCrc16 ((UINT8 *) &DebugHeader, DebugHeader->Length, 0));
1040 DebugHeader.Crc = 0;
1041 DebugHeader.Crc = CalculateCrc16 ((UINT8 *)&DebugHeader, sizeof (DEBUG_PACKET_HEADER), 0);
1149 UINT16 Crc;
1212 Crc = DebugHeader->Crc;
1213 DebugHeader->Crc = 0;
1214 if (Crc == CalculateCrc16 ((UINT8 *) DebugHeader, DebugHeader->Length, 0)) {
1217 DebugAgentMsgPrint (DEBUG_AGENT_WARNING, "CRC Error (received CRC is %x)\n", Crc);
1598 DebugHeader->Crc = 0;
1626 DebugHeader->Crc = CalculateCrc16 ((UINT8 *) DebugHeader, sizeof (DEBUG_PACKET_HEADER), 0);
1633 &DebugHeader->Crc
1653 // Calculate and fill the checksum, DebugHeader->Crc should be 0 before invoking CalculateCrc16 ()
1655 DebugHeader->Crc = CalculateCrc16 ((UINT8 *) DebugHeader, DebugHeader->Length, 0);