Lines Matching defs:checksum
323 * Verifies that the EEPROM has a valid checksum
328 * If the sum of the 64 16 bit words is 0xBABA, the EEPROM's checksum is
338 uint16_t checksum = 0;
342 checksum += ixgb_read_eeprom(hw, i);
344 if(checksum == (uint16_t) EEPROM_SUM)
351 * Calculates the EEPROM checksum and writes it to the EEPROM
361 uint16_t checksum = 0;
365 checksum += ixgb_read_eeprom(hw, i);
367 checksum = (uint16_t) EEPROM_SUM - checksum;
369 ixgb_write_eeprom(hw, EEPROM_CHECKSUM_REG, checksum);
381 * EEPROM will most likely contain an invalid checksum.
462 * Validates eeprom checksum and eeprom signature.
474 uint16_t checksum = 0;
485 checksum += ee_data;
489 if (checksum != (uint16_t) EEPROM_SUM) {