Lines Matching defs:crc
14 #include <linux/crc-itu-t.h>
1174 u16 crc;
1183 * The last 2 bytes in the firmware array are the crc checksum itself.
1184 * This means that we should never pass those 2 bytes to the crc
1190 * Use the crc itu-t algorithm.
1192 crc = crc_itu_t(0, data, len - 2);
1193 crc = crc_itu_t_byte(crc, 0);
1194 crc = crc_itu_t_byte(crc, 0);
1196 return (fw_crc == crc) ? FW_OK : FW_BAD_CRC;