Lines Matching defs:checksum
333 * EEPROM will most likely contain an invalid checksum.
540 * e1000e_validate_nvm_checksum_generic - Validate EEPROM checksum
543 * Calculates the EEPROM checksum by reading/adding each word of the EEPROM
549 u16 checksum = 0;
558 checksum += nvm_data;
561 if (checksum != (u16)NVM_SUM) {
570 * e1000e_update_nvm_checksum_generic - Update EEPROM checksum
573 * Updates the EEPROM checksum by reading/adding each word of the EEPROM
574 * up to the checksum. Then calculates the EEPROM checksum and writes the
580 u16 checksum = 0;
586 e_dbg("NVM Read Error while updating checksum.\n");
589 checksum += nvm_data;
591 checksum = (u16)NVM_SUM - checksum;
592 ret_val = e1000_write_nvm(hw, NVM_CHECKSUM_REG, 1, &checksum);
594 e_dbg("NVM Write Error while updating checksum.\n");