Lines Matching full:checksum

299  *  ixgbe_calc_eeprom_checksum_X540 - Calculates and returns the checksum
310 u16 checksum = 0; in ixgbe_calc_eeprom_checksum_X540() local
323 /* Include 0x0-0x3F in the checksum */ in ixgbe_calc_eeprom_checksum_X540()
329 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
365 checksum += word; in ixgbe_calc_eeprom_checksum_X540()
369 checksum = (u16)IXGBE_EEPROM_SUM - checksum; in ixgbe_calc_eeprom_checksum_X540()
371 return (int)checksum; in ixgbe_calc_eeprom_checksum_X540()
375 * ixgbe_validate_eeprom_checksum_X540 - Validate EEPROM checksum
377 * @checksum_val: calculated checksum
379 * Performs checksum calculation and validates the EEPROM checksum. If the
386 u16 checksum; in ixgbe_validate_eeprom_checksum_X540() local
393 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_validate_eeprom_checksum_X540()
406 checksum = (u16)(status & 0xffff); in ixgbe_validate_eeprom_checksum_X540()
416 /* Verify read checksum from EEPROM is the same as in ixgbe_validate_eeprom_checksum_X540()
417 * calculated checksum in ixgbe_validate_eeprom_checksum_X540()
419 if (read_checksum != checksum) { in ixgbe_validate_eeprom_checksum_X540()
420 hw_dbg(hw, "Invalid EEPROM checksum"); in ixgbe_validate_eeprom_checksum_X540()
424 /* If the user cares, return the calculated checksum */ in ixgbe_validate_eeprom_checksum_X540()
426 *checksum_val = checksum; in ixgbe_validate_eeprom_checksum_X540()
435 * ixgbe_update_eeprom_checksum_X540 - Updates the EEPROM checksum and flash
439 * checksum and updates the EEPROM and instructs the hardware to update
444 u16 checksum; in ixgbe_update_eeprom_checksum_X540() local
451 status = hw->eeprom.ops.read(hw, 0, &checksum); in ixgbe_update_eeprom_checksum_X540()
464 checksum = (u16)(status & 0xffff); in ixgbe_update_eeprom_checksum_X540()
469 status = ixgbe_write_eewr_generic(hw, IXGBE_EEPROM_CHECKSUM, checksum); in ixgbe_update_eeprom_checksum_X540()