Lines Matching +full:enable +full:- +full:lpa
2 * Copyright (c) 2005-2008 Chelsio, Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
53 VSC_INTR_DESCRAMBL = 1 << 7, /* descrambler lock-lost */
60 VSC_INTR_ENABLE = 1 << 15, /* interrupt enable */
133 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local
134 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status()
144 * BMSR_LSTATUS is latch-low, so if it is 0 we need to read it in vsc8211_get_link_status()
179 &lpa); in vsc8211_get_link_status()
186 if (lpa & adv & ADVERTISE_PAUSE_CAP) in vsc8211_get_link_status()
188 else if ((lpa & ADVERTISE_PAUSE_CAP) && in vsc8211_get_link_status()
189 (lpa & ADVERTISE_PAUSE_ASYM) && in vsc8211_get_link_status()
192 else if ((lpa & ADVERTISE_PAUSE_ASYM) && in vsc8211_get_link_status()
209 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local
210 int err, sp = -1, dplx = -1, pause = 0; in vsc8211_get_link_status_fiber()
220 * BMSR_LSTATUS is latch-low, so if it is 0 we need to read it in vsc8211_get_link_status_fiber()
239 err = t3_mdio_read(cphy, MDIO_DEVAD_NONE, MII_LPA, &lpa); in vsc8211_get_link_status_fiber()
246 if (adv & lpa & ADVERTISE_1000XFULL) { in vsc8211_get_link_status_fiber()
249 } else if (adv & lpa & ADVERTISE_1000XHALF) { in vsc8211_get_link_status_fiber()
255 if (lpa & adv & ADVERTISE_1000XPAUSE) in vsc8211_get_link_status_fiber()
257 else if ((lpa & ADVERTISE_1000XPAUSE) && in vsc8211_get_link_status_fiber()
258 (adv & lpa & ADVERTISE_1000XPSE_ASYM)) in vsc8211_get_link_status_fiber()
260 else if ((lpa & ADVERTISE_1000XPSE_ASYM) && in vsc8211_get_link_status_fiber()
276 * Enable/disable auto MDI/MDI-X in forced link speed mode.
278 static int vsc8211_set_automdi(struct cphy *phy, int enable) in vsc8211_set_automdi() argument
290 err = t3_mdio_write(phy, MDIO_DEVAD_NONE, 17, enable ? 0x2803 : 0x3003); in vsc8211_set_automdi()
316 static int vsc8211_power_down(struct cphy *cphy, int enable) in vsc8211_power_down() argument
319 enable ? BMCR_PDOWN : 0); in vsc8211_power_down()
376 SUPPORTED_TP | SUPPORTED_IRQ, "10/100/1000BASE-T"); in t3_vsc8211_phy_prep()
388 phy->caps = SUPPORTED_1000baseT_Full | SUPPORTED_Autoneg | in t3_vsc8211_phy_prep()
390 phy->desc = "1000BASE-X"; in t3_vsc8211_phy_prep()
391 phy->ops = &vsc8211_fiber_ops; in t3_vsc8211_phy_prep()