Home
last modified time | relevance | path

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

123

/Linux-v5.10/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.10/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()
Dbcm84881.c154 !!(bmsr & BMSR_LSTATUS); in bcm84881_read_status()
Dphy_device.c2224 else if (status & BMSR_LSTATUS) in genphy_update_link()
2233 phydev->link = status & BMSR_LSTATUS ? 1 : 0; in genphy_update_link()
/Linux-v5.10/include/uapi/linux/
Dmii.h57 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
Dmdio.h106 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
/Linux-v5.10/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()
/Linux-v5.10/drivers/net/ethernet/atheros/atlx/
Datlx.c91 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
Datl2.c558 if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ in atl2_check_for_link()
1155 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link()
1516 if (ctrl & BMSR_LSTATUS) in atl2_suspend()
1519 if (0 != (ctrl & BMSR_LSTATUS) && 0 != wufc) { in atl2_suspend()
1568 if (0 == (ctrl&BMSR_LSTATUS) && 0 != (wufc&ATLX_WUFC_LNKC)) { in atl2_suspend()
/Linux-v5.10/drivers/net/ethernet/dec/tulip/
Dmedia.c409 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
411 if ((new_bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
/Linux-v5.10/drivers/net/pcs/
Dpcs-lynx.c70 state->link = !!(bmsr & BMSR_LSTATUS); in lynx_pcs_get_state_2500basex()
/Linux-v5.10/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.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c155 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link()
220 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event()
2115 if (mii_bmsr_data & BMSR_LSTATUS) { in atl1e_suspend()
2120 if (mii_bmsr_data & BMSR_LSTATUS) in atl1e_suspend()
2124 if ((mii_bmsr_data & BMSR_LSTATUS) == 0) in atl1e_suspend()
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/
Dserdes.c353 dsa_port_phylink_mac_change(chip->ds, port, !!(bmsr & BMSR_LSTATUS)); in mv88e6352_serdes_irq_link()
877 dsa_port_phylink_mac_change(chip->ds, port, !!(bmsr & BMSR_LSTATUS)); in mv88e6390_serdes_irq_link_sgmii()
/Linux-v5.10/drivers/net/ethernet/ibm/emac/
Dphy.c213 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/Linux-v5.10/drivers/net/ethernet/sis/
Dsis190.c942 } else if ((val & BMSR_LSTATUS) && tp->link_status != LNK_ON) { in sis190_phy_task()
1016 } else if (!(val & BMSR_LSTATUS) && tp->link_status != LNK_AUTONEG) in sis190_phy_task()
1284 if ((status & BMSR_LSTATUS) && in sis190_default_phy()
/Linux-v5.10/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.c757 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer()
805 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer()
2540 return hp->sw_bmsr & BMSR_LSTATUS; in hme_get_link()
/Linux-v5.10/drivers/net/bonding/
Dbond_main.c584 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
589 BMSR_LSTATUS : 0; in bond_check_dev_link()
612 return mii->val_out & BMSR_LSTATUS; in bond_check_dev_link()
621 return reporting ? -1 : BMSR_LSTATUS; in bond_check_dev_link()
1814 if (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS) { in bond_enslave()
3805 mii->val_out = BMSR_LSTATUS; in bond_do_ioctl()
/Linux-v5.10/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.10/drivers/net/ethernet/broadcom/
Dtg3.c4496 if (!(tmp & BMSR_LSTATUS)) { in tg3_phy_copper_begin()
4806 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4818 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4827 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4835 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4893 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4898 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4989 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5878 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5880 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
[all …]
Db44.c566 (bmsr & BMSR_LSTATUS)) { in b44_check_phy()
584 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy()

123