Lines Matching defs:crc
14 #include <linux/crc-itu-t.h>
1071 u16 crc;
1080 * The last 2 bytes in the firmware array are the crc checksum itself,
1081 * this means that we should never pass those 2 bytes to the crc
1087 * Use the crc itu-t algorithm.
1089 crc = crc_itu_t(0, data, len - 2);
1090 crc = crc_itu_t_byte(crc, 0);
1091 crc = crc_itu_t_byte(crc, 0);
1093 return (fw_crc == crc) ? FW_OK : FW_BAD_CRC;