Lines Matching refs:phylink

387 	u32 phylink, bmsr;  in jme_linkstat_from_phy()  local
389 phylink = jme_mdio_read(jme->dev, jme->mii_if.phy_id, 17); in jme_linkstat_from_phy()
392 phylink |= PHY_LINK_AUTONEG_COMPLETE; in jme_linkstat_from_phy()
394 return phylink; in jme_linkstat_from_phy()
413 u32 phylink, cnt = JME_SPDRSV_TIMEOUT, bmcr; in jme_check_link() local
420 phylink = jme_linkstat_from_phy(jme); in jme_check_link()
422 phylink = jread32(jme, JME_PHY_LINK); in jme_check_link()
424 if (phylink & PHY_LINK_UP) { in jme_check_link()
425 if (!(phylink & PHY_LINK_AUTONEG_COMPLETE)) { in jme_check_link()
430 phylink = PHY_LINK_UP; in jme_check_link()
436 phylink |= ((bmcr & BMCR_SPEED1000) && in jme_check_link()
443 phylink |= (bmcr & BMCR_FULLDPLX) ? in jme_check_link()
451 while (!(phylink & PHY_LINK_SPEEDDPU_RESOLVED) && in jme_check_link()
457 phylink = jme_linkstat_from_phy(jme); in jme_check_link()
459 phylink = jread32(jme, JME_PHY_LINK); in jme_check_link()
467 if (jme->phylink == phylink) { in jme_check_link()
474 jme->phylink = phylink; in jme_check_link()
480 switch (phylink & PHY_LINK_SPEED_MASK) { in jme_check_link()
497 if (phylink & PHY_LINK_DUPLEX) { in jme_check_link()
514 if (!(phylink & PHY_LINK_DUPLEX)) in jme_check_link()
516 switch (phylink & PHY_LINK_SPEED_MASK) { in jme_check_link()
534 strcat(linkmsg, (phylink & PHY_LINK_DUPLEX) ? in jme_check_link()
537 strcat(linkmsg, (phylink & PHY_LINK_MDI_STAT) ? in jme_check_link()
547 jme->phylink = 0; in jme_check_link()
1170 u32 phylink; in jme_shutdown_nic() local
1172 phylink = jme_linkstat_from_phy(jme); in jme_shutdown_nic()
1174 if (!(phylink & PHY_LINK_UP)) { in jme_shutdown_nic()
1879 u32 phylink, to = JME_WAIT_LINK_TIME; in jme_wait_link() local
1882 phylink = jme_linkstat_from_phy(jme); in jme_wait_link()
1883 while (!(phylink & PHY_LINK_UP) && (to -= 10) > 0) { in jme_wait_link()
1885 phylink = jme_linkstat_from_phy(jme); in jme_wait_link()
1925 jme->phylink = 0; in jme_close()
2317 jme->phylink = 0; in jme_tx_timeout()
2988 jme->phylink = 0; in jme_init_one()
3197 jme->phylink = 0; in jme_suspend()