Lines Matching refs:checksum
472 uint16_t i, length, checksum = 0, checksum_reg;
506 /* Compute the checksum and read the expected value */
508 checksum += le16_to_cpu(buffer[i]);
509 checksum = ((uint16_t)EEPROM_SUM) - checksum;
513 if (checksum_reg == checksum) {
514 printf("%s: INFO: EEPROM checksum is correct! (0x%04hx)\n",
515 hw->name, checksum);
521 E1000_ERR(hw, "EEPROM checksum is incorrect!\n");
523 checksum_reg, checksum);
532 printf("%s: Reprogramming the EEPROM checksum...\n", hw->name);
533 buffer[i] = cpu_to_le16(checksum);
570 if (!strcmp(argv[0], "checksum"))