src/dpdk/drivers/net/i40e/base/i40e_nvm.c
enum i40e_status_code i40e_update_nvm_checksum(struct i40e_hw *hw)
{
	enum i40e_status_code ret_code = I40E_SUCCESS;
	u16 checksum;
	__le16 le_sum;

	DEBUGFUNC("i40e_update_nvm_checksum");

	ret_code = i40e_calc_nvm_checksum(hw, &checksum);
	le_sum = CPU_TO_LE16(checksum);
	if (ret_code == I40E_SUCCESS)
		ret_code = i40e_write_nvm_aq(hw, 0x00, I40E_SR_SW_CHECKSUM_WORD,
					     1, &le_sum, true);

	return ret_code;
}
/**
 * i40e_update_nvm_checksum - Updates the NVM checksum
 * @hw: pointer to hardware structure
 *
 * NVM ownership must be acquired before calling this function and released
 * on ARQ completion event reception by caller.
 * This function will commit SR to NVM.
 **/
Updates the NVM checksum
@hw: pointer to hardware structure

NVM ownership must be acquired before calling this function and released
on ARQ completion event reception by caller.
This function will commit SR to NVM.
Updates the NVM checksum @hw : pointer to hardware structure NVM ownership must be acquired before calling this function and released on ARQ completion event reception by caller . This function will commit SR to NVM .
enum i40e_status_code i40e_update_nvm_checksum(struct i40e_hw *hw)
{
	enum i40e_status_code ret_code = I40E_SUCCESS;
	u16 checksum;
	__le16 le_sum;
	DEBUGFUNC("i40e_update_nvm_checksum");
	ret_code = i40e_calc_nvm_checksum(hw, &checksum);
	le_sum = CPU_TO_LE16(checksum);
	if (ret_code == I40E_SUCCESS)
		ret_code = i40e_write_nvm_aq(hw, 0x00, I40E_SR_SW_CHECKSUM_WORD,
					     1, &le_sum, true);
	return ret_code;
}
enum i40e_status_code i40e_update_nvm_checksum ( struct i40e_hw * hw ) { enum i40e_status_code ret_code = I40E_SUCCESS ; u16 checksum ; __le16 le_sum ; DEBUGFUNC ( " " ) ; ret_code = i40e_calc_nvm_checksum ( hw , & checksum ) ; le_sum = CPU_TO_LE16 ( checksum ) ; if ( ret_code == I40E_SUCCESS ) ret_code = i40e_write_nvm_aq ( hw , 0x00 , I40E_SR_SW_CHECKSUM_WORD , 1 , & le_sum , true ) ; return ret_code ; }
i40e_update_nvm_checksum - Updates the NVM checksum
 @hw: pointer to hardware structure
i40e_update_nvm_checksum - Updates the NVM checksum @hw : pointer to hardware structure