Lines Matching defs:checksum

1261  *  EEPROM will most likely contain an invalid checksum.
1343 * EEPROM will most likely contain an invalid checksum.
2107 * ixgbe_calc_eeprom_checksum_generic - Calculates and returns the checksum
2110 * Returns a negative error code on error, or the 16-bit checksum
2116 u16 checksum = 0;
2123 /* Include 0x0-0x3F in the checksum */
2129 checksum += word;
2156 checksum += word;
2160 checksum = (u16)IXGBE_EEPROM_SUM - checksum;
2162 return (s32)checksum;
2166 * ixgbe_validate_eeprom_checksum_generic - Validate EEPROM checksum
2168 * @checksum_val: calculated checksum
2170 * Performs checksum calculation and validates the EEPROM checksum. If the
2177 u16 checksum;
2186 status = hw->eeprom.ops.read(hw, 0, &checksum);
2196 checksum = (u16)(status & 0xffff);
2204 /* Verify read checksum from EEPROM is the same as
2205 * calculated checksum
2207 if (read_checksum != checksum)
2210 /* If the user cares, return the calculated checksum */
2212 *checksum_val = checksum;
2218 * ixgbe_update_eeprom_checksum_generic - Updates the EEPROM checksum
2224 u16 checksum;
2232 status = hw->eeprom.ops.read(hw, 0, &checksum);
2242 checksum = (u16)(status & 0xffff);
2244 status = hw->eeprom.ops.write(hw, IXGBE_EEPROM_CHECKSUM, checksum);
4340 * ixgbe_calculate_checksum - Calculate checksum for buffer
4342 * @length: size of EEPROM to calculate a checksum for
4343 * Calculates the checksum for some buffer on a specified length. The
4344 * checksum calculated is returned.
4507 fw_cmd.hdr.checksum = 0;
4508 fw_cmd.hdr.checksum = ixgbe_calculate_checksum((u8 *)&fw_cmd,