Lines Matching refs:crc
329 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bits() local
334 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits()
336 crc <<= 1; in calcCrc_Bits()
337 crc ^= tmp; in calcCrc_Bits()
343 tmp ^= ( (crc & crcMask) ? 1 : 0 ); in calcCrc_Bits()
345 crc <<= 1; in calcCrc_Bits()
346 crc ^= tmp; in calcCrc_Bits()
349 *pCrc = crc; /* update crc value */ in calcCrc_Bits()
374 USHORT crc = *pCrc; /* get crc value */ in calcCrc_Bytes() local
378 crc = (crc<<8)^pCrcLookup[((crc>>8)^((UCHAR)FDKreadBits(hBs,8)))&0xFF]; in calcCrc_Bytes()
383 crc = (crc<<8)^pCrcLookup[((crc>>8)^((UCHAR)0))&0xFF]; in calcCrc_Bytes()
387 *pCrc = crc; /* update crc value */ in calcCrc_Bytes()
409 USHORT crc = hCrcInfo->crcValue; in crcCalc() local
435 rBits -= (calcCrc_Bytes(&crc, hCrcInfo->pCrcLookup, &bsReader, words)<<3); in crcCalc()
438 rBits -= calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, &bsReader, words<<3 ); in crcCalc()
443 rBits -= calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, &bsReader, mBits ); in crcCalc()
449 rBits -= (calcCrc_Bytes(&crc, hCrcInfo->pCrcLookup, NULL, rBits>>3)<<3); in crcCalc()
453 rBits -= calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, NULL, rBits ); in crcCalc()
457 hCrcInfo->crcValue = crc; in crcCalc()