Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/include/uapi/linux/
Dmii.h55 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
Dmdio.h97 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
/linux-4.4.14/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()
Dpegasus.c767 if (tmp & BMSR_LSTATUS) in set_carrier()
Dsmsc95xx.c1214 return !!(ret & BMSR_LSTATUS); in smsc95xx_link_ok_nopm()
Dsmsc75xx.c1679 return !!(ret & BMSR_LSTATUS); in smsc75xx_link_ok_nopm()
/linux-4.4.14/drivers/net/phy/
Dlxt.c154 if ((status & BMSR_LSTATUS) == 0) in lxt973a2_update_link()
Dfixed_phy.c91 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in fixed_phy_update_regs()
Dphy_device.c1008 if ((status & BMSR_LSTATUS) == 0) in genphy_update_link()
/linux-4.4.14/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()
1179 if (!(phy_data&BMSR_LSTATUS)) { /* link down */ in atl2_check_link()
1541 if (ctrl & BMSR_LSTATUS) in atl2_suspend()
1544 if (0 != (ctrl & BMSR_LSTATUS) && 0 != wufc) { in atl2_suspend()
1593 if (0 == (ctrl&BMSR_LSTATUS) && 0 != (wufc&ATLX_WUFC_LNKC)) { in atl2_suspend()
Datl1.c1310 if (!(phy_data & BMSR_LSTATUS)) { in atl1_check_link()
2801 val = ctrl & BMSR_LSTATUS; in atl1_suspend()
/linux-4.4.14/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-4.4.14/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.c263 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1c_check_link_status()
314 link_up = phy_data & BMSR_LSTATUS; in atl1c_link_chg_event()
/linux-4.4.14/drivers/net/
Dmii.c257 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-4.4.14/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c173 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link()
238 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event()
2133 if (mii_bmsr_data & BMSR_LSTATUS) { in atl1e_suspend()
2138 if (mii_bmsr_data & BMSR_LSTATUS) in atl1e_suspend()
2142 if ((mii_bmsr_data & BMSR_LSTATUS) == 0) in atl1e_suspend()
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Dphy.c212 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
/linux-4.4.14/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()
1276 if ((status & BMSR_LSTATUS) && in sis190_default_phy()
/linux-4.4.14/drivers/net/bonding/
Dbond_main.c451 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link()
456 BMSR_LSTATUS : 0; in bond_check_dev_link()
479 return mii->val_out & BMSR_LSTATUS; in bond_check_dev_link()
488 return reporting ? -1 : BMSR_LSTATUS; in bond_check_dev_link()
1567 if (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS) { in bond_enslave()
3350 mii->val_out = BMSR_LSTATUS; in bond_do_ioctl()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunbmac.c536 if (bp->sw_bmsr & BMSR_LSTATUS) { in bigmac_timer()
1052 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()
2536 return hp->sw_bmsr & BMSR_LSTATUS; in hme_get_link()
Dcassini.c688 writel((enable) ? ~(BMSR_LSTATUS | BMSR_ANEGCOMPLETE) : 0xFFFF, in cas_mif_poll()
1637 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check()
Dniu.c1200 *link_up_p = !!(bmsr & BMSR_LSTATUS); in link_status_mii()
1226 if (bmsr & BMSR_LSTATUS) { in link_status_1g_rgmii()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dtg3.c4486 if (!(tmp & BMSR_LSTATUS)) { in tg3_phy_copper_begin()
4796 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4808 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4817 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4825 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy()
4883 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4888 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy()
4979 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy()
5868 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy()
5870 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.c1590 bmsr |= BMSR_LSTATUS; in bnx2_set_link()
1592 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link()
1595 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link()
2136 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
2153 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy()
6007 if (bmsr & BMSR_LSTATUS) { in bnx2_test_link()
Dbcm63xx_enet.c2070 up = (val & BMSR_LSTATUS) ? 1 : 0; in swphy_poll_timer()
/linux-4.4.14/drivers/net/ethernet/atheros/alx/
Dhw.c879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()
/linux-4.4.14/drivers/net/ethernet/silan/
Dsc92031.c494 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
/linux-4.4.14/drivers/net/ethernet/tundra/
Dtsi108_eth.c1263 BMSR_LSTATUS)) { in tsi108_init_phy()
/linux-4.4.14/drivers/net/ethernet/packetengines/
Dyellowfin.c673 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
/linux-4.4.14/drivers/net/cris/
Deth_v10.c696 if (!(data & BMSR_LSTATUS)) { in e100_check_speed()
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dnatsemi.c1659 if (!(bmsr & BMSR_LSTATUS)) { in check_link()
2664 return (mdio_read(dev, MII_BMSR)&BMSR_LSTATUS) ? 1:0; in get_link()
/linux-4.4.14/drivers/net/ethernet/
Dfealnx.c949 if (mdio_read(dev, np->phys[0], MII_BMSR) & BMSR_LSTATUS) { in getlinkstatus()
/linux-4.4.14/drivers/net/ethernet/dlink/
Ddl2k.c1439 if (bmsr & BMSR_LSTATUS) in mii_wait_link()
/linux-4.4.14/drivers/net/ethernet/adaptec/
Dstarfire.c1599 if (reg1 & BMSR_LSTATUS) { in netdev_media_change()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dphy.c1766 if (phy_status & BMSR_LSTATUS) in e1000e_phy_has_link_generic()
/linux-4.4.14/drivers/net/ethernet/via/
Dvia-rhine.c1018 if (mii_status & BMSR_LSTATUS) in rhine_init_one_common()
Dvia-velocity.c715 if (!MII_REG_BITS_IS_ON(BMSR_LSTATUS, MII_BMSR, regs)) in mii_check_media_mode()
/linux-4.4.14/drivers/net/ethernet/intel/
De100.c1031 return BMSR_LSTATUS /* for mii_link_ok() */ | in mdio_ctrl_phy_mii_emulated()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c3332 if (!(mii_status & BMSR_LSTATUS)) { in nv_update_linkspeed()
4931 if (!(mii_status & BMSR_LSTATUS)) in nv_link_test()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar.c1839 if (phy_read(tbiphy, MII_BMSR) & BMSR_LSTATUS) { in gfar_configure_serdes()
/linux-4.4.14/drivers/s390/net/
Dqeth_core_main.c4428 rc = BMSR_ERCAP | BMSR_ANEGCOMPLETE | BMSR_LSTATUS | in qeth_mdio_read()