Lines Matching defs:crc
24 #include <linux/crc-ccitt.h>
630 u16 crc;
633 * The last 2 bytes in the firmware array are the crc checksum itself,
634 * this means that we should never pass those 2 bytes to the crc
640 * Use the crc ccitt algorithm.
644 * Obviously using crc ccitt directly is much more efficient.
646 crc = crc_ccitt(~0, data, len - 2);
649 * There is a small difference between the crc-itu-t + bitrev and
650 * the crc-ccitt crc calculation. In the latter method the 2 bytes
651 * will be swapped, use swab16 to convert the crc to the correct
654 crc = swab16(crc);
656 return fw_crc == crc;