Lines Matching defs:checksum
734 #define IPF BIT(23) /* IP checksum fail */
735 #define UDPF BIT(22) /* UDP checksum fail */
736 #define TCPF BIT(21) /* TCP checksum fail */
755 #define UDP_CS BIT(31) /* Calculate UDP/IP checksum */
756 #define TCP_CS BIT(30) /* Calculate TCP/IP checksum */
757 #define IPV4_CS BIT(29) /* Calculate IPv4 checksum */
758 #define IPV6_CS BIT(28) /* Calculate IPv6 checksum */
885 * @checksum: checksum of sha256 which is calculated from the whole file
886 * except the checksum field of the file. That is, calculate sha256
892 u8 checksum[32];
1918 * range, calculate the checksum by sw.
2162 u8 checksum = CHECKSUM_NONE;
2173 checksum = CHECKSUM_NONE;
2175 checksum = CHECKSUM_UNNECESSARY;
2177 checksum = CHECKSUM_UNNECESSARY;
2180 checksum = CHECKSUM_UNNECESSARY;
2182 checksum = CHECKSUM_UNNECESSARY;
2186 return checksum;
3725 /* Verify the checksum for the firmware file. It is calculated from the version
3726 * field to the end of the file. Compare the result with the checksum field to
3732 unsigned char checksum[sizeof(fw_hdr->checksum)];
3744 if (crypto_shash_digestsize(alg) != sizeof(fw_hdr->checksum)) {
3759 len = size - sizeof(fw_hdr->checksum);
3760 rc = crypto_shash_digest(sdesc, fw_hdr->version, len, checksum);
3765 if (memcmp(fw_hdr->checksum, checksum, sizeof(fw_hdr->checksum))) {
3766 dev_err(&tp->intf->dev, "checksum fail\n");