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) in singletable_crc32c() argument
226 crc = crc32Table[(crc ^ *p++) & 0xff] ^ (crc >> 8); in singletable_crc32c()
228 return crc; in singletable_crc32c()
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, in crc32c_sb8_64_bit() argument
692 crc = sctp_crc_tableil8_o32[(crc ^ *p_buf++) & 0x000000FF] ^ in crc32c_sb8_64_bit()
693 (crc >> 8); in crc32c_sb8_64_bit()
696 crc ^= *p_buf++; in crc32c_sb8_64_bit()
697 crc ^= (*p_buf++) << 8; in crc32c_sb8_64_bit()
698 crc ^= (*p_buf++) << 16; in crc32c_sb8_64_bit()
699 crc ^= (*p_buf++) << 24; in crc32c_sb8_64_bit()
701 crc ^= *(const uint32_t *) p_buf; in crc32c_sb8_64_bit()
704 term1 = sctp_crc_tableil8_o88[crc & 0x000000FF] ^ in crc32c_sb8_64_bit()
705 sctp_crc_tableil8_o80[(crc >> 8) & 0x000000FF]; in crc32c_sb8_64_bit()
706 term2 = crc >> 16; in crc32c_sb8_64_bit()
707 crc = term1 ^ in crc32c_sb8_64_bit()
712 crc ^= sctp_crc_tableil8_o56[*p_buf++]; in crc32c_sb8_64_bit()
713 crc ^= sctp_crc_tableil8_o48[*p_buf++]; in crc32c_sb8_64_bit()
714 crc ^= sctp_crc_tableil8_o40[*p_buf++]; in crc32c_sb8_64_bit()
715 crc ^= sctp_crc_tableil8_o32[*p_buf++]; in crc32c_sb8_64_bit()
721 crc = crc ^ in crc32c_sb8_64_bit()
729 crc = sctp_crc_tableil8_o32[(crc ^ *p_buf++) & 0x000000FF] ^ in crc32c_sb8_64_bit()
730 (crc >> 8); in crc32c_sb8_64_bit()
731 return crc; in crc32c_sb8_64_bit()