/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb3/ |
D | vsc8211.c | 147 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/ |
D | uPD60620.c | 54 if (phy_state & (BMSR_ANEGCOMPLETE | BMSR_LSTATUS)) { in upd60620_read_status()
|
D | swphy.c | 141 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in swphy_read_reg()
|
D | lxt.c | 142 if ((status & BMSR_LSTATUS) == 0) in lxt973a2_update_link()
|
/Linux-v4.19/include/uapi/linux/ |
D | mii.h | 57 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
|
D | mdio.h | 98 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
|
/Linux-v4.19/drivers/net/usb/ |
D | sr9700.c | 197 res = le16_to_cpu(res) | BMSR_LSTATUS; in sr_mdio_read() 199 res = le16_to_cpu(res) & ~BMSR_LSTATUS; in sr_mdio_read()
|
D | smsc95xx.c | 663 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/ |
D | atlx.c | 104 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
|
D | atl2.c | 578 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/ |
D | media.c | 414 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/ |
D | atl1c_hw.c | 710 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link() 735 if (phy_data & BMSR_LSTATUS) { in atl1c_phy_to_ps_link()
|
D | atl1c_main.c | 260 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/ |
D | atl1e_main.c | 174 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/ |
D | phy.c | 212 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
|
/Linux-v4.19/drivers/net/ethernet/sis/ |
D | sis190.c | 939 } 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/ |
D | sunbmac.c | 537 if (bp->sw_bmsr & BMSR_LSTATUS) { in bigmac_timer() 1052 return (bp->sw_bmsr & BMSR_LSTATUS); in bigmac_get_link()
|
D | sunhme.c | 758 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/ |
D | bond_main.c | 443 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/ |
D | mii.c | 448 if (mii->mdio_read(mii->dev, mii->phy_id, MII_BMSR) & BMSR_LSTATUS) in mii_link_ok()
|
D | sungem_phy.c | 383 if ((status & BMSR_LSTATUS) == 0) in genmii_poll_link()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/ |
D | tg3.c | 4502 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 …]
|
D | b44.c | 571 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 589 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy()
|
D | bnx2.c | 1594 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/ |
D | hw.c | 879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()
|