Lines Matching refs:rBits
442 int bits, rBits; in crcCalc() local
443 rBits = (rD->maxBits >= 0) ? rD->maxBits : -rD->maxBits; /* ramaining bits */ in crcCalc()
444 if ((rD->maxBits > 0) && ((rD->bitBufCntBits >> 3 << 3) < rBits)) { in crcCalc()
447 bits = rBits; in crcCalc()
454 rBits -= (calcCrc_Bytes(&crc, hCrcInfo->pCrcLookup, &bsReader, words) << 3); in crcCalc()
456 rBits -= calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, &bsReader, in crcCalc()
462 rBits -= calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, &bsReader, in crcCalc()
466 if (rBits != 0) { in crcCalc()
468 if ((hCrcInfo->pCrcLookup) && (rBits > 8)) { in crcCalc()
469 rBits -= in crcCalc()
470 (calcCrc_Bytes(&crc, hCrcInfo->pCrcLookup, NULL, rBits >> 3) << 3); in crcCalc()
473 if (rBits != 0) { in crcCalc()
474 calcCrc_Bits(&crc, hCrcInfo->crcMask, hCrcInfo->crcPoly, NULL, rBits); in crcCalc()