Lines Matching defs:checksum
815 #define IPF BIT(23) /* IP checksum fail */
816 #define UDPF BIT(22) /* UDP checksum fail */
817 #define TCPF BIT(21) /* TCP checksum fail */
836 #define UDP_CS BIT(31) /* Calculate UDP/IP checksum */
837 #define TCP_CS BIT(30) /* Calculate TCP/IP checksum */
838 #define IPV4_CS BIT(29) /* Calculate IPv4 checksum */
839 #define IPV6_CS BIT(28) /* Calculate IPv6 checksum */
976 * @checksum: checksum of sha256 which is calculated from the whole file
977 * except the checksum field of the file. That is, calculate sha256
983 u8 checksum[32];
2210 * range, calculate the checksum by sw.
2454 u8 checksum = CHECKSUM_NONE;
2465 checksum = CHECKSUM_NONE;
2467 checksum = CHECKSUM_UNNECESSARY;
2469 checksum = CHECKSUM_UNNECESSARY;
2472 checksum = CHECKSUM_UNNECESSARY;
2474 checksum = CHECKSUM_UNNECESSARY;
2478 return checksum;
4588 /* Verify the checksum for the firmware file. It is calculated from the version
4589 * field to the end of the file. Compare the result with the checksum field to
4595 unsigned char checksum[sizeof(fw_hdr->checksum)];
4607 if (crypto_shash_digestsize(alg) != sizeof(fw_hdr->checksum)) {
4622 len = size - sizeof(fw_hdr->checksum);
4623 rc = crypto_shash_digest(sdesc, fw_hdr->version, len, checksum);
4628 if (memcmp(fw_hdr->checksum, checksum, sizeof(fw_hdr->checksum))) {
4629 dev_err(&tp->intf->dev, "checksum fail\n");