Home
last modified time | relevance | path

Searched refs:adv_lp (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_pcs.h135 struct rgmii_adv *adv_lp) in dwmac_get_adv_lp() argument
140 adv_lp->duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
142 adv_lp->duplex |= DUPLEX_HALF; in dwmac_get_adv_lp()
144 adv_lp->pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()
149 adv_lp->lp_duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
151 adv_lp->lp_duplex = DUPLEX_HALF; in dwmac_get_adv_lp()
153 adv_lp->lp_pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()
H A Dstmmac_ethtool.c514 struct rgmii_adv adv_lp; in stmmac_get_pauseparam() local
516 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_get_pauseparam()
518 if (!adv_lp.pause) in stmmac_get_pauseparam()
530 struct rgmii_adv adv_lp; in stmmac_set_pauseparam() local
532 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_set_pauseparam()
534 if (!adv_lp.pause) in stmmac_set_pauseparam()