Lines Matching refs:checksum
306 * ixgbe_calc_eeprom_checksum_X540 - Calculates and returns the checksum
317 u16 checksum = 0;
330 /* Include 0x0-0x3F in the checksum */
336 checksum += word;
372 checksum += word;
376 checksum = (u16)IXGBE_EEPROM_SUM - checksum;
378 return (int)checksum;
382 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
384 * @checksum_val: calculated checksum
386 * Performs checksum calculation and validates the EEPROM checksum. If the
393 u16 checksum;
400 status = hw->eeprom.ops.read(hw, 0, &checksum);
413 checksum = (u16)(status & 0xffff);
423 /* Verify read checksum from EEPROM is the same as
424 * calculated checksum
426 if (read_checksum != checksum) {
427 hw_dbg(hw, "Invalid EEPROM checksum");
431 /* If the user cares, return the calculated checksum */
433 *checksum_val = checksum;
442 * ixgbe_update_eeprom_checksum_X540 - Updates the EEPROM checksum and flash
446 * checksum and updates the EEPROM and instructs the hardware to update
451 u16 checksum;
458 status = hw->eeprom.ops.read(hw, 0, &checksum);
471 checksum = (u16)(status & 0xffff);
476 status = ixgbe_write_eewr_generic(hw, IXGBE_EEPROM_CHECKSUM, checksum);