src/dpdk/drivers/net/txgbe/base/txgbe_phy.c
s32 txgbe_write_phy_reg(struct txgbe_hw *hw, u32 reg_addr,
				u32 device_type, u16 phy_data)
{
	s32 err;
	u32 gssr = hw->phy.phy_semaphore_mask;

	DEBUGFUNC("txgbe_write_phy_reg");

	if (hw->mac.acquire_swfw_sync(hw, gssr))
		err = TXGBE_ERR_SWFW_SYNC;

	err = hw->phy.write_reg_mdi(hw, reg_addr, device_type,
					 phy_data);
	hw->mac.release_swfw_sync(hw, gssr);

	return err;
}
/**
 *  txgbe_write_phy_reg - Writes a value to specified PHY register
 *  using SWFW lock- this function is needed in most cases
 *  @hw: pointer to hardware structure
 *  @reg_addr: 32 bit PHY register to write
 *  @device_type: 5 bit device type
 *  @phy_data: Data to write to the PHY register
 **/
Writes a value to specified PHY register
using SWFW lock- this function is needed in most cases
@hw: pointer to hardware structure
@reg_addr: 32 bit PHY register to write
@device_type: 5 bit device type
@phy_data: Data to write to the PHY register
Writes a value to specified PHY register using SWFW lock - this function is needed in most cases @hw : pointer to hardware structure @reg_addr : 32 bit PHY register to write @device_type : 5 bit device type @phy_data : Data to write to the PHY register
s32 txgbe_write_phy_reg(struct txgbe_hw *hw, u32 reg_addr,
				u32 device_type, u16 phy_data)
{
	s32 err;
	u32 gssr = hw->phy.phy_semaphore_mask;
	DEBUGFUNC("txgbe_write_phy_reg");
	if (hw->mac.acquire_swfw_sync(hw, gssr))
		err = TXGBE_ERR_SWFW_SYNC;
	err = hw->phy.write_reg_mdi(hw, reg_addr, device_type,
					 phy_data);
	hw->mac.release_swfw_sync(hw, gssr);
	return err;
}
s32 txgbe_write_phy_reg ( struct txgbe_hw * hw , u32 reg_addr , u32 device_type , u16 phy_data ) { s32 err ; u32 gssr = hw -> phy . phy_semaphore_mask ; DEBUGFUNC ( " " ) ; if ( hw -> mac . acquire_swfw_sync ( hw , gssr ) ) err = TXGBE_ERR_SWFW_SYNC ; err = hw -> phy . write_reg_mdi ( hw , reg_addr , device_type , phy_data ) ; hw -> mac . release_swfw_sync ( hw , gssr ) ; return err ; }
txgbe_write_phy_reg - Writes a value to specified PHY register
  using SWFW lock- this function is needed in most cases
  @hw: pointer to hardware structure
  @reg_addr: 32 bit PHY register to write
  @device_type: 5 bit device type
  @phy_data: Data to write to the PHY register
txgbe_write_phy_reg - Writes a value to specified PHY register using SWFW lock - this function is needed in most cases @hw : pointer to hardware structure @reg_addr : 32 bit PHY register to write @device_type : 5 bit device type @phy_data : Data to write to the PHY register