Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 in xgbe_phy_an_outcome()
[all...]
H A Dxgbe-phy-v2.c1576 unsigned int ad_reg, lp_reg; in xgbe_phy_an37_outcome() local
1583 lp_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_LP_ABILITY); in xgbe_phy_an37_outcome()
1584 if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1586 if (lp_reg & 0x80) in xgbe_phy_an37_outcome()
1594 if (ad_reg & lp_reg & 0x100) { in xgbe_phy_an37_outcome()
1597 } else if (ad_reg & lp_reg & 0x80) { in xgbe_phy_an37_outcome()
1600 else if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1605 if (lp_reg & 0x20) in xgbe_phy_an37_outcome()
1609 ad_reg &= lp_reg; in xgbe_phy_an37_outcome()
1620 unsigned int ad_reg, lp_reg; in xgbe_phy_an73_redrv_outcome() local
1699 unsigned int ad_reg, lp_reg; xgbe_phy_an73_outcome() local
[all...]
H A Dxgbe-mdio.c472 unsigned int ad_reg, lp_reg, reg; in xgbe_an73_tx_training() local
482 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA + 2); in xgbe_an73_tx_training()
486 if ((ad_reg & 0xc000) && (lp_reg & 0xc000)) in xgbe_an73_tx_training()
531 unsigned int reg, ad_reg, lp_reg; in xgbe_an73_rx_bpa() local
543 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPA); in xgbe_an73_rx_bpa()
546 (lp_reg & XGBE_XNP_NP_EXCHANGE)) in xgbe_an73_rx_bpa()
554 unsigned int ad_reg, lp_reg; in xgbe_an73_rx_xnp() local
558 lp_reg = XMDIO_READ(pdata, MDIO_MMD_AN, MDIO_AN_LPX); in xgbe_an73_rx_xnp()
561 (lp_reg & XGBE_XNP_NP_EXCHANGE)) in xgbe_an73_rx_xnp()
/kernel/linux/linux-6.6/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 in xgbe_phy_an_outcome()
[all...]
H A Dxgbe-phy-v2.c1653 unsigned int ad_reg, lp_reg; in xgbe_phy_an37_outcome() local
1660 lp_reg = XMDIO_READ(pdata, MDIO_MMD_VEND2, MDIO_VEND2_AN_LP_ABILITY); in xgbe_phy_an37_outcome()
1661 if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1663 if (lp_reg & 0x80) 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()
1677 else if (lp_reg & 0x100) in xgbe_phy_an37_outcome()
1682 if (lp_reg & 0x20) in xgbe_phy_an37_outcome()
1686 ad_reg &= lp_reg; in xgbe_phy_an37_outcome()
1697 unsigned int ad_reg, lp_reg; in xgbe_phy_an73_redrv_outcome() local
1782 unsigned int ad_reg, lp_reg; xgbe_phy_an73_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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c2246 * @lp_reg: link partner's flow control settings
2255 s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg, in ixgbe_negotiate_fc() argument
2258 if ((!(adv_reg)) || (!(lp_reg))) in ixgbe_negotiate_fc()
2261 if ((adv_reg & adv_sym) && (lp_reg & lp_sym)) { in ixgbe_negotiate_fc()
2277 (lp_reg & lp_sym) && (lp_reg & lp_asm)) { in ixgbe_negotiate_fc()
2281 !(lp_reg & lp_sym) && (lp_reg & lp_asm)) { in ixgbe_negotiate_fc()
H A Dixgbe.h1009 s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg,
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c2247 * @lp_reg: link partner's flow control settings
2256 s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg, in ixgbe_negotiate_fc() argument
2259 if ((!(adv_reg)) || (!(lp_reg))) in ixgbe_negotiate_fc()
2262 if ((adv_reg & adv_sym) && (lp_reg & lp_sym)) { in ixgbe_negotiate_fc()
2278 (lp_reg & lp_sym) && (lp_reg & lp_asm)) { in ixgbe_negotiate_fc()
2282 !(lp_reg & lp_sym) && (lp_reg & lp_asm)) { in ixgbe_negotiate_fc()
H A Dixgbe.h1062 s32 ixgbe_negotiate_fc(struct ixgbe_hw *hw, u32 adv_reg, u32 lp_reg,

Completed in 25 milliseconds