Home
last modified time | relevance | path

Searched refs:lp_reg (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-phy-v1.c237 unsigned int ad_reg, lp_reg; in xgbe_phy_an_outcome() local
244 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); in xgbe_phy_an_outcome()
245 if (lp_reg & 0x400) in xgbe_phy_an_outcome()
247 if (lp_reg & 0x800) in xgbe_phy_an_outcome()
255 if (ad_reg & lp_reg & 0x400) { in xgbe_phy_an_outcome()
258 } else if (ad_reg & lp_reg & 0x800) { in xgbe_phy_an_outcome()
261 else if (lp_reg & 0x400) in xgbe_phy_an_outcome()
268 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 1); in xgbe_phy_an_outcome()
269 if (lp_reg & 0x80) in xgbe_phy_an_outcome()
271 if (lp_reg & 0x20) { in xgbe_phy_an_outcome()
[all …]
H A Dxgbe-phy-v2.c1638 unsigned int ad_reg, lp_reg; in xgbe_phy_an37_outcome() local
1645 lp_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_LP_ABILITY); in xgbe_phy_an37_outcome()
1646 if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1648 if (lp_reg & 0x80) in xgbe_phy_an37_outcome()
1656 if (ad_reg & lp_reg & 0x100) { in xgbe_phy_an37_outcome()
1659 } else if (ad_reg & lp_reg & 0x80) { in xgbe_phy_an37_outcome()
1662 else if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1667 if (lp_reg & 0x20) in xgbe_phy_an37_outcome()
1671 ad_reg &= lp_reg; in xgbe_phy_an37_outcome()
1682 unsigned int ad_reg, lp_reg; in xgbe_phy_an73_redrv_outcome() local
[all …]
H A Dxgbe-mdio.c484 unsigned int ad_reg, lp_reg, reg; in xgbe_an73_tx_training() local
494 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); in xgbe_an73_tx_training()
498 if ((ad_reg & 0xc000) && (lp_reg & 0xc000)) in xgbe_an73_tx_training()
543 unsigned int reg, ad_reg, lp_reg; in xgbe_an73_rx_bpa() local
555 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); in xgbe_an73_rx_bpa()
558 (lp_reg & XGBE_XNP_NP_EXCHANGE)) in xgbe_an73_rx_bpa()
566 unsigned int ad_reg, lp_reg; in xgbe_an73_rx_xnp() local
570 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPX); in xgbe_an73_rx_xnp()
573 (lp_reg & XGBE_XNP_NP_EXCHANGE)) in xgbe_an73_rx_xnp()