Lines Matching +full:enable +full:- +full:lpa
2 SPDX-License-Identifier: BSD-2-Clause
42 /* IEEE auto-negotiation 10GBASE-T registers */
82 static int tn1010_power_down(struct cphy *phy, int enable) in tn1010_power_down() argument
85 BMCR_PDOWN, enable ? BMCR_PDOWN : 0); in tn1010_power_down()
115 return -EINVAL; /* PHY can't disable 1000BASE-T */ in tn1010_advertise()
134 unsigned int status, lpa, adv; in tn1010_get_link_status() local
135 int err, sp = -1, pause = 0; in tn1010_get_link_status()
149 err = mdio_read(phy, MDIO_DEV_ANEG, ANEG_LPA, &lpa); in tn1010_get_link_status()
156 if (lpa & adv & ADVERTISE_PAUSE_CAP) in tn1010_get_link_status()
158 else if ((lpa & ADVERTISE_PAUSE_CAP) && in tn1010_get_link_status()
159 (lpa & ADVERTISE_PAUSE_ASYM) && in tn1010_get_link_status()
162 else if ((lpa & ADVERTISE_PAUSE_ASYM) && in tn1010_get_link_status()
178 return -EINVAL; /* require autoneg */ in tn1010_set_speed_duplex()
215 cphy_init(&pinfo->phy, pinfo->adapter, pinfo, phy_addr, &tn1010_ops, mdio_ops, in t3_tn1010_phy_prep()
218 "1000/10GBASE-T"); in t3_tn1010_phy_prep()