Home
last modified time | relevance | path

Searched refs:BMSR_LSTATUS (Results 1 – 25 of 46) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/
Dvsc8211.c147 if (!(status & BMSR_LSTATUS)) in vsc8211_get_link_status()
152 *link_ok = (status & BMSR_LSTATUS) != 0; in vsc8211_get_link_status()
223 if (!(status & BMSR_LSTATUS)) in vsc8211_get_link_status_fiber()
228 *link_ok = (status & BMSR_LSTATUS) != 0; in vsc8211_get_link_status_fiber()
/Linux-v4.19/drivers/net/phy/
DuPD60620.c54 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status()
Dswphy.c141 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in swphy_read_reg()
Dlxt.c142 if ((status & BMSR_LSTATUS) == 0) in lxt973a2_update_link()
/Linux-v4.19/include/uapi/linux/
Dmii.h57 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
Dmdio.h98 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
/Linux-v4.19/drivers/net/usb/
Dsr9700.c197 res = le16_to_cpu(res) | BMSR_LSTATUS; in sr_mdio_read()
199 res = le16_to_cpu(res) & ~BMSR_LSTATUS; in sr_mdio_read()
Dsmsc95xx.c663 if (ret & BMSR_LSTATUS) in check_carrier()
1390 return !!(ret & BMSR_LSTATUS); in smsc95xx_link_ok_nopm()
/Linux-v4.19/drivers/net/ethernet/atheros/atlx/
Datlx.c104 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
Datl2.c578 if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ in atl2_check_for_link()
1176 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link()
1538 if (ctrl & BMSR_LSTATUS) in atl2_suspend()
1541 if (0 != (ctrl & BMSR_LSTATUS) && 0 != wufc) { in atl2_suspend()
1590 if (0 == (ctrl&BMSR_LSTATUS) && 0 != (wufc&ATLX_WUFC_LNKC)) { in atl2_suspend()
/Linux-v4.19/drivers/net/ethernet/dec/tulip/
Dmedia.c414 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
416 if ((new_bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
/Linux-v4.19/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c710 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link()
735 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link()
Datl1c_main.c260 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1c_check_link_status()
311 link_up = phy_data & BMSR_LSTATUS; in atl1c_link_chg_event()
/Linux-v4.19/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c174 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link()
239 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event()
2119 if (mii_bmsr_data & BMSR_LSTATUS) { in atl1e_suspend()
2124 if (mii_bmsr_data & BMSR_LSTATUS) in atl1e_suspend()
2128 if ((mii_bmsr_data & BMSR_LSTATUS) == 0) in atl1e_suspend()
/Linux-v4.19/drivers/net/ethernet/ibm/emac/
Dphy.c212 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/Linux-v4.19/drivers/net/ethernet/sis/
Dsis190.c939 } else if ((val & BMSR_LSTATUS) && tp->link_status != LNK_ON) { in sis190_phy_task()
1013 } else if (!(val & BMSR_LSTATUS) && tp->link_status != LNK_AUTONEG) in sis190_phy_task()
1274 if ((status & BMSR_LSTATUS) && in sis190_default_phy()
/Linux-v4.19/drivers/net/ethernet/sun/
Dsunbmac.c537 if (bp->sw_bmsr & BMSR_LSTATUS) { in bigmac_timer()
1052 return (bp->sw_bmsr & BMSR_LSTATUS); in bigmac_get_link()
Dsunhme.c758 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer()
806 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer()
2541 return hp->sw_bmsr & BMSR_LSTATUS; in hme_get_link()
/Linux-v4.19/drivers/net/bonding/
Dbond_main.c443 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
448 BMSR_LSTATUS : 0; in bond_check_dev_link()
471 return mii->val_out & BMSR_LSTATUS; in bond_check_dev_link()
480 return reporting ? -1 : BMSR_LSTATUS; in bond_check_dev_link()
1604 if (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS) { in bond_enslave()
3489 mii->val_out = BMSR_LSTATUS; in bond_do_ioctl()
/Linux-v4.19/drivers/net/
Dmii.c448 if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) in mii_link_ok()
Dsungem_phy.c383 if ((status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/Linux-v4.19/drivers/net/ethernet/broadcom/
Dtg3.c4502 if (!(tmp & BMSR_LSTATUS)) { in tg3_phy_copper_begin()
4812 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4824 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4833 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4841 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4899 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4904 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4995 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5884 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5886 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
[all …]
Db44.c571 (bmsr & BMSR_LSTATUS)) { in b44_check_phy()
589 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy()
Dbnx2.c1594 bmsr |= BMSR_LSTATUS; in bnx2_set_link()
1596 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link()
1599 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link()
2140 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
2157 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
6023 if (bmsr & BMSR_LSTATUS) { in bnx2_test_link()
/Linux-v4.19/drivers/net/ethernet/atheros/alx/
Dhw.c879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()

12