Lines Matching refs:phylink
325 u32 phylink, bmsr;
327 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17);
330 phylink |= PHY_LINK_AUTONEG_COMPLETE;
332 return phylink;
351 u32 phylink, ghc, cnt = JME_SPDRSV_TIMEOUT, bmcr, gpreg1;
358 phylink = jme_linkstat_from_phy(jme);
360 phylink = jread32(jme, JME_PHY_LINK);
362 if (phylink & PHY_LINK_UP) {
363 if (!(phylink & PHY_LINK_AUTONEG_COMPLETE)) {
368 phylink = PHY_LINK_UP;
374 phylink |= ((bmcr & BMCR_SPEED1000) &&
381 phylink |= (bmcr & BMCR_FULLDPLX) ?
389 while (!(phylink & PHY_LINK_SPEEDDPU_RESOLVED) &&
395 phylink = jme_linkstat_from_phy(jme);
397 phylink = jread32(jme, JME_PHY_LINK);
406 if (jme->phylink == phylink) {
413 jme->phylink = phylink;
418 switch (phylink & PHY_LINK_SPEED_MASK) {
438 if (phylink & PHY_LINK_DUPLEX) {
454 if (!(phylink & PHY_LINK_DUPLEX))
456 switch (phylink & PHY_LINK_SPEED_MASK) {
477 strcat(linkmsg, (phylink & PHY_LINK_DUPLEX) ?
480 strcat(linkmsg, (phylink & PHY_LINK_MDI_STAT) ?
490 jme->phylink = 0;
1087 u32 phylink;
1089 phylink = jme_linkstat_from_phy(jme);
1091 if (!(phylink & PHY_LINK_UP)) {
1649 u32 phylink, to = JME_WAIT_LINK_TIME;
1652 phylink = jme_linkstat_from_phy(jme);
1653 while (!(phylink & PHY_LINK_UP) && (to -= 10) > 0) {
1655 phylink = jme_linkstat_from_phy(jme);
1690 jme->phylink = 0;
2084 jme->phylink = 0;
2772 jme->phylink = 0;
2987 jme->phylink = 0;