src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
s32 ixgbe_write_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset,
			       u16 data)
{
	s32 status = IXGBE_SUCCESS;

	DEBUGFUNC("ixgbe_write_ee_hostif_X550");

	if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
	    IXGBE_SUCCESS) {
		status = ixgbe_write_ee_hostif_data_X550(hw, offset, data);
		hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
	} else {
		DEBUGOUT("write ee hostif failed to get semaphore");
		status = IXGBE_ERR_SWFW_SYNC;
	}

	return status;
}
/**
 * ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif
 * @hw: pointer to hardware structure
 * @offset: offset of  word in the EEPROM to write
 * @data: word write to the EEPROM
 *
 * Write a 16 bit word to the EEPROM using the hostif.
 **/
Write EEPROM word using hostif
@hw: pointer to hardware structure
@offset: offset of  word in the EEPROM to write
@data: word write to the EEPROM

Write a 16 bit word to the EEPROM using the hostif.
Write EEPROM word using hostif @hw : pointer to hardware structure @offset : offset of word in the EEPROM to write @data : word write to the EEPROM Write a 16 bit word to the EEPROM using the hostif .
s32 ixgbe_write_ee_hostif_X550(struct ixgbe_hw *hw, u16 offset,
			       u16 data)
{
	s32 status = IXGBE_SUCCESS;
	DEBUGFUNC("ixgbe_write_ee_hostif_X550");
	if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
	    IXGBE_SUCCESS) {
		status = ixgbe_write_ee_hostif_data_X550(hw, offset, data);
		hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
	} else {
		DEBUGOUT("write ee hostif failed to get semaphore");
		status = IXGBE_ERR_SWFW_SYNC;
	}
	return status;
}
s32 ixgbe_write_ee_hostif_X550 ( struct ixgbe_hw * hw , u16 offset , u16 data ) { s32 status = IXGBE_SUCCESS ; DEBUGFUNC ( " " ) ; if ( hw -> mac . ops . acquire_swfw_sync ( hw , IXGBE_GSSR_EEP_SM ) == IXGBE_SUCCESS ) { status = ixgbe_write_ee_hostif_data_X550 ( hw , offset , data ) ; hw -> mac . ops . release_swfw_sync ( hw , IXGBE_GSSR_EEP_SM ) ; } else { DEBUGOUT ( " " ) ; status = IXGBE_ERR_SWFW_SYNC ; } return status ; }
ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif
 @hw: pointer to hardware structure
 @offset: offset of  word in the EEPROM to write
 @data: word write to the EEPROM
ixgbe_write_ee_hostif_X550 - Write EEPROM word using hostif @hw : pointer to hardware structure @offset : offset of word in the EEPROM to write @data : word write to the EEPROM