Lines Matching full:crc

20  *  do it this way?  Because the calculated CRC must be transmitted in
22 * characters in order from LSB to MSB. By storing the CRC this way
33 * tions for all combinations of data and CRC register values
110 * A function that calculates the CRC-32 based on the table above is
119 * uint32_t crc;
121 * crc = ~0U;
123 * crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
124 * return crc ^ ~0U;
132 /* CRC LOOKUP TABLE */
134 /* The following CRC lookup table was generated automagically */
135 /* by the Rocksoft^tm Model CRC Algorithm Table Generation */
142 /* For more information on the Rocksoft^tm Model CRC Algorithm, */
143 /* see the document titled "A Painless Guide to CRC Error */
221 singletable_crc32c(uint32_t crc, const void *buf, size_t size)
226 crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8);
228 return crc;
242 * Tables for software CRC generation
246 * The following CRC lookup table was generated automagically using the
296 * end of the CRC lookup table crc_tableil8_o32
300 * The following CRC lookup table was generated automagically using the
350 * end of the CRC lookup table crc_tableil8_o40
354 * The following CRC lookup table was generated automagically using the
404 * end of the CRC lookup table crc_tableil8_o48
408 * The following CRC lookup table was generated automagically using the
458 * end of the CRC lookup table crc_tableil8_o56
462 * The following CRC lookup table was generated automagically using the
512 * end of the CRC lookup table crc_tableil8_o64
516 * The following CRC lookup table was generated automagically using the
566 * end of the CRC lookup table crc_tableil8_o72
570 * The following CRC lookup table was generated automagically using the
620 * end of the CRC lookup table crc_tableil8_o80
624 * The following CRC lookup table was generated automagically using the
674 * end of the CRC lookup table crc_tableil8_o88
678 crc32c_sb8_64_bit(uint32_t crc,
692 crc = sctp_crc_tableil8_o32[(crc ^ *p_buf++) & 0x000000FF] ^
693 (crc >> 8);
696 crc ^= *p_buf++;
697 crc ^= (*p_buf++) << 8;
698 crc ^= (*p_buf++) << 16;
699 crc ^= (*p_buf++) << 24;
701 crc ^= *(const uint32_t *) p_buf;
704 term1 = sctp_crc_tableil8_o88[crc & 0x000000FF] ^
705 sctp_crc_tableil8_o80[(crc >> 8) & 0x000000FF];
706 term2 = crc >> 16;
707 crc = term1 ^
712 crc ^= sctp_crc_tableil8_o56[*p_buf++];
713 crc ^= sctp_crc_tableil8_o48[*p_buf++];
714 crc ^= sctp_crc_tableil8_o40[*p_buf++];
715 crc ^= sctp_crc_tableil8_o32[*p_buf++];
721 crc = crc ^
729 crc = sctp_crc_tableil8_o32[(crc ^ *p_buf++) & 0x000000FF] ^
730 (crc >> 8);
731 return crc;