Lines Matching defs:crc
122 * @crc16: crc over the whole message struct (message header +
150 * @crc16: on last finger: crc over the whole message struct
197 * @crc16: crc over the whole message struct (message header +
213 * @crc16: crc over the whole message struct (message header +
229 * @crc16: crc over the whole message struct (message header +
243 * @crc16: crc over the whole message struct (message header +
259 * @crc16: crc over the whole message struct (message header +
273 * payload, and ends with a 16-bit crc. Because of the varying lengths of the
274 * payload, the crc is defined at the end of each payload struct, rather than
288 * multiple spi-packets), minus the trailing crc. The total size
342 * @crc16: crc over this whole structure minus this @crc16 field. This
344 * contrast to the crc in the message).
765 u16 crc;
868 crc = crc16(0, (u8 *)message, le16_to_cpu(packet->length) - 2);
869 put_unaligned_le16(crc, &message->data[msg_len - 2]);
871 crc = crc16(0, (u8 *)packet, sizeof(*packet) - 2);
872 packet->crc16 = cpu_to_le16(crc);
1385 u16 crc;
1387 crc = crc16(0, buffer, buflen);
1388 if (crc) {
1390 "Received corrupted packet (crc mismatch)\n");