Lines Matching defs:checksum
518 * reception) by caller. To commit SR to NVM update checksum function
543 * checksum function should be called.
566 * i40e_calc_nvm_checksum - Calculates and returns the checksum
568 * @checksum: pointer to the checksum
575 enum i40e_status_code i40e_calc_nvm_checksum(struct i40e_hw *hw, u16 *checksum)
608 /* Calculate SW checksum that covers the whole 64kB shadow RAM
642 *checksum = (u16)I40E_SR_SW_CHECKSUM_BASE - checksum_local;
650 * i40e_update_nvm_checksum - Updates the NVM checksum
660 u16 checksum;
665 ret_code = i40e_calc_nvm_checksum(hw, &checksum);
666 le_sum = CPU_TO_LE16(checksum);
675 * i40e_validate_nvm_checksum - Validate EEPROM checksum
677 * @checksum: calculated checksum
679 * Performs checksum calculation and validates the NVM SW checksum. If the
680 * caller does not need checksum, the value can be NULL.
683 u16 *checksum)
700 /* Verify read checksum from EEPROM is the same as
701 * calculated checksum
706 /* If the user cares, return the calculated checksum */
707 if (checksum)
708 *checksum = checksum_local;