Lines Matching full:crc
3 * linux/lib/crc-ccitt.c
8 #include <linux/crc-ccitt.h>
11 * This mysterious table is just the CRC of each possible byte. It can be
14 * Add the implicit x^16, and you have the standard CRC-CCITT.
53 * Similar table to calculate CRC16 variant known as CRC-CCITT-FALSE
93 * crc_ccitt - recompute the CRC (CRC-CCITT variant) for the data
95 * @crc: previous CRC value
99 u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) in crc_ccitt() argument
102 crc = crc_ccitt_byte(crc, *buffer++); in crc_ccitt()
103 return crc; in crc_ccitt()
108 * crc_ccitt_false - recompute the CRC (CRC-CCITT-FALSE variant)
110 * @crc: previous CRC value
114 u16 crc_ccitt_false(u16 crc, u8 const *buffer, size_t len) in crc_ccitt_false() argument
117 crc = crc_ccitt_false_byte(crc, *buffer++); in crc_ccitt_false()
118 return crc; in crc_ccitt_false()
122 MODULE_DESCRIPTION("CRC-CCITT calculations");