Searched refs:lp_reg (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/net/phy/
H A Damd-xgbe-phy.c833 int ad_reg, lp_reg, ret; amd_xgbe_an_tx_training() local
846 lp_reg = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_LPA + 2); amd_xgbe_an_tx_training()
847 if (lp_reg < 0) amd_xgbe_an_tx_training()
855 if ((ad_reg & 0xc000) && (lp_reg & 0xc000)) amd_xgbe_an_tx_training()
899 int ret, ad_reg, lp_reg; amd_xgbe_an_rx_bpa() local
916 lp_reg = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_LPA); amd_xgbe_an_rx_bpa()
917 if (lp_reg < 0) amd_xgbe_an_rx_bpa()
920 return ((ad_reg & XNP_NP_EXCHANGE) || (lp_reg & XNP_NP_EXCHANGE)) ? amd_xgbe_an_rx_bpa()
928 int ad_reg, lp_reg; amd_xgbe_an_rx_xnp() local
935 lp_reg = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_LPX); amd_xgbe_an_rx_xnp()
936 if (lp_reg < 0) amd_xgbe_an_rx_xnp()
939 return ((ad_reg & XNP_NP_EXCHANGE) || (lp_reg & XNP_NP_EXCHANGE)) ? amd_xgbe_an_rx_xnp()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c2183 * @lp_reg: link partner's flow control settings
2192 static s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg, ixgbe_negotiate_fc() argument
2195 if ((!(adv_reg)) || (!(lp_reg))) ixgbe_negotiate_fc()
2198 if ((adv_reg & adv_sym) && (lp_reg & lp_sym)) { ixgbe_negotiate_fc()
2214 (lp_reg & lp_sym) && (lp_reg & lp_asm)) { ixgbe_negotiate_fc()
2218 !(lp_reg & lp_sym) && (lp_reg & lp_asm)) { ixgbe_negotiate_fc()

Completed in 128 milliseconds