Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/drivers/net/phy/
DuPD60620.c49 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status()
Dswphy.c136 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in swphy_read_reg()
Dlxt.c137 if ((status & BMSR_LSTATUS) == 0) in lxt973a2_update_link()
Dphy_device.c1764 else if (status & BMSR_LSTATUS) in genphy_update_link()
1773 phydev->link = status & BMSR_LSTATUS ? 1 : 0; in genphy_update_link()
/Linux-v5.4/include/uapi/linux/
Dmii.h57 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
Dmdio.h106 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
/Linux-v5.4/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.c649 if (ret & BMSR_LSTATUS) in check_carrier()
1379 return !!(ret & BMSR_LSTATUS); in smsc95xx_link_ok_nopm()
/Linux-v5.4/drivers/net/ethernet/atheros/atlx/
Datlx.c91 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
Datl2.c564 if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ in atl2_check_for_link()
1161 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link()
1521 if (ctrl & BMSR_LSTATUS) in atl2_suspend()
1524 if (0 != (ctrl & BMSR_LSTATUS) && 0 != wufc) { in atl2_suspend()
1573 if (0 == (ctrl&BMSR_LSTATUS) && 0 != (wufc&ATLX_WUFC_LNKC)) { in atl2_suspend()
/Linux-v5.4/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-v5.4/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c697 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link()
722 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link()
/Linux-v5.4/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c161 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link()
226 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event()
2107 if (mii_bmsr_data & BMSR_LSTATUS) { in atl1e_suspend()
2112 if (mii_bmsr_data & BMSR_LSTATUS) in atl1e_suspend()
2116 if ((mii_bmsr_data & BMSR_LSTATUS) == 0) in atl1e_suspend()
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/
Dserdes.c200 up = status & BMSR_LSTATUS; in mv88e6352_serdes_irq_link()
/Linux-v5.4/drivers/net/ethernet/ibm/emac/
Dphy.c213 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/Linux-v5.4/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-v5.4/drivers/net/ethernet/sun/
Dsunbmac.c537 if (bp->sw_bmsr & BMSR_LSTATUS) { in bigmac_timer()
1053 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-v5.4/drivers/net/bonding/
Dbond_main.c442 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
447 BMSR_LSTATUS : 0; in bond_check_dev_link()
470 return mii->val_out & BMSR_LSTATUS; in bond_check_dev_link()
479 return reporting ? -1 : BMSR_LSTATUS; in bond_check_dev_link()
1618 if (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS) { in bond_enslave()
3503 mii->val_out = BMSR_LSTATUS; in bond_do_ioctl()
/Linux-v5.4/drivers/net/
Dmii.c448 if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) in mii_link_ok()
Dsungem_phy.c384 if ((status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/Linux-v5.4/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()
6021 if (bmsr & BMSR_LSTATUS) { in bnx2_test_link()

12