src/dpdk/drivers/net/igc/base/igc_base.c
s32 igc_acquire_phy_base(struct igc_hw *hw)
{
	u16 mask = IGC_SWFW_PHY0_SM;

	DEBUGFUNC("igc_acquire_phy_base");

	if (hw->bus.func == IGC_FUNC_1)
		mask = IGC_SWFW_PHY1_SM;
	else if (hw->bus.func == IGC_FUNC_2)
		mask = IGC_SWFW_PHY2_SM;
	else if (hw->bus.func == IGC_FUNC_3)
		mask = IGC_SWFW_PHY3_SM;

	return hw->mac.ops.acquire_swfw_sync(hw, mask);
}
/**
 *  igc_acquire_phy_base - Acquire rights to access PHY
 *  @hw: pointer to the HW structure
 *
 *  Acquire access rights to the correct PHY.
 **/
Acquire rights to access PHY
@hw: pointer to the HW structure

Acquire access rights to the correct PHY.
Acquire rights to access PHY @hw : pointer to the HW structure Acquire access rights to the correct PHY .
s32 igc_acquire_phy_base(struct igc_hw *hw)
{
	u16 mask = IGC_SWFW_PHY0_SM;
	DEBUGFUNC("igc_acquire_phy_base");
	if (hw->bus.func == IGC_FUNC_1)
		mask = IGC_SWFW_PHY1_SM;
	else if (hw->bus.func == IGC_FUNC_2)
		mask = IGC_SWFW_PHY2_SM;
	else if (hw->bus.func == IGC_FUNC_3)
		mask = IGC_SWFW_PHY3_SM;
	return hw->mac.ops.acquire_swfw_sync(hw, mask);
}
s32 igc_acquire_phy_base ( struct igc_hw * hw ) { u16 mask = IGC_SWFW_PHY0_SM ; DEBUGFUNC ( " " ) ; if ( hw -> bus . func == IGC_FUNC_1 ) mask = IGC_SWFW_PHY1_SM ; else if ( hw -> bus . func == IGC_FUNC_2 ) mask = IGC_SWFW_PHY2_SM ; else if ( hw -> bus . func == IGC_FUNC_3 ) mask = IGC_SWFW_PHY3_SM ; return hw -> mac . ops . acquire_swfw_sync ( hw , mask ) ; }
igc_acquire_phy_base - Acquire rights to access PHY
  @hw: pointer to the HW structure
igc_acquire_phy_base - Acquire rights to access PHY @hw : pointer to the HW structure