src/dpdk/drivers/net/ixgbe/base/ixgbe_x550.c
static s32 ixgbe_reset_phy_fw(struct ixgbe_hw *hw)
{
	u32 store[FW_PHY_ACT_DATA_COUNT] = { 0 };
	s32 rc;

	if (hw->phy.reset_disable || ixgbe_check_reset_blocked(hw))
		return IXGBE_SUCCESS;

	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_PHY_SW_RESET, &store);
	if (rc)
		return rc;
	memset(store, 0, sizeof(store));

	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_INIT_PHY, &store);
	if (rc)
		return rc;

	return ixgbe_setup_fw_link(hw);
}
/**
 * ixgbe_reset_phy_fw - Reset firmware-controlled PHYs
 * @hw: pointer to hardware structure
 */
Reset firmware-controlled PHYs
@hw: pointer to hardware structure
Reset firmware - controlled PHYs @hw : pointer to hardware structure
static s32 ixgbe_reset_phy_fw(struct ixgbe_hw *hw)
{
	u32 store[FW_PHY_ACT_DATA_COUNT] = { 0 };
	s32 rc;
	if (hw->phy.reset_disable || ixgbe_check_reset_blocked(hw))
		return IXGBE_SUCCESS;
	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_PHY_SW_RESET, &store);
	if (rc)
		return rc;
	memset(store, 0, sizeof(store));
	rc = ixgbe_fw_phy_activity(hw, FW_PHY_ACT_INIT_PHY, &store);
	if (rc)
		return rc;
	return ixgbe_setup_fw_link(hw);
}
static s32 ixgbe_reset_phy_fw ( struct ixgbe_hw * hw ) { u32 store [ FW_PHY_ACT_DATA_COUNT ] = { 0 } ; s32 rc ; if ( hw -> phy . reset_disable || ixgbe_check_reset_blocked ( hw ) ) return IXGBE_SUCCESS ; rc = ixgbe_fw_phy_activity ( hw , FW_PHY_ACT_PHY_SW_RESET , & store ) ; if ( rc ) return rc ; memset ( store , 0 , sizeof ( store ) ) ; rc = ixgbe_fw_phy_activity ( hw , FW_PHY_ACT_INIT_PHY , & store ) ; if ( rc ) return rc ; return ixgbe_setup_fw_link ( hw ) ; }
ixgbe_reset_phy_fw - Reset firmware-controlled PHYs
 @hw: pointer to hardware structure
ixgbe_reset_phy_fw - Reset firmware - controlled PHYs @hw : pointer to hardware structure