Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/amd/xgbe/
Dxgbe-phy-v1.c237 unsigned int ad_reg, lp_reg; in xgbe_phy_an_outcome() local
243 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); 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()
259 if (ad_reg & 0x400) in xgbe_phy_an_outcome()
267 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); in xgbe_phy_an_outcome()
278 ad_reg &= lp_reg; in xgbe_phy_an_outcome()
279 if (ad_reg & 0x80) { in xgbe_phy_an_outcome()
281 } else if (ad_reg & 0x20) { in xgbe_phy_an_outcome()
291 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 2); in xgbe_phy_an_outcome()
Dxgbe-phy-v2.c1653 unsigned int ad_reg, lp_reg; in xgbe_phy_an37_outcome() local
1659 ad_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_ADVERTISE); in xgbe_phy_an37_outcome()
1671 if (ad_reg & lp_reg & 0x100) { in xgbe_phy_an37_outcome()
1674 } else if (ad_reg & lp_reg & 0x80) { in xgbe_phy_an37_outcome()
1675 if (ad_reg & 0x100) in xgbe_phy_an37_outcome()
1686 ad_reg &= lp_reg; in xgbe_phy_an37_outcome()
1687 mode = (ad_reg & 0x20) ? XGBE_MODE_X : XGBE_MODE_UNKNOWN; in xgbe_phy_an37_outcome()
1697 unsigned int ad_reg, lp_reg; in xgbe_phy_an73_redrv_outcome() local
1707 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 1); in xgbe_phy_an73_redrv_outcome()
1714 ad_reg &= lp_reg; in xgbe_phy_an73_redrv_outcome()
[all …]
Dxgbe-mdio.c484 unsigned int ad_reg, lp_reg, reg; in xgbe_an73_tx_training() local
493 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE + 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
554 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_ADVERTISE); in xgbe_an73_rx_bpa()
557 return ((ad_reg & XGBE_XNP_NP_EXCHANGE) || in xgbe_an73_rx_bpa()
566 unsigned int ad_reg, lp_reg; in xgbe_an73_rx_xnp() local
569 ad_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_XNP); in xgbe_an73_rx_xnp()
572 return ((ad_reg & XGBE_XNP_NP_EXCHANGE) || in xgbe_an73_rx_xnp()