/linux-4.4.14/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-4.4.14/include/uapi/linux/ |
D | mii.h | 55 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
|
D | mdio.h | 97 #define MDIO_STAT1_LSTATUS BMSR_LSTATUS
|
/linux-4.4.14/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 | pegasus.c | 767 if (tmp & BMSR_LSTATUS) in set_carrier()
|
D | smsc95xx.c | 1214 return !!(ret & BMSR_LSTATUS); in smsc95xx_link_ok_nopm()
|
D | smsc75xx.c | 1679 return !!(ret & BMSR_LSTATUS); in smsc75xx_link_ok_nopm()
|
/linux-4.4.14/drivers/net/phy/ |
D | lxt.c | 154 if ((status & BMSR_LSTATUS) == 0) in lxt973a2_update_link()
|
D | fixed_phy.c | 91 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in fixed_phy_update_regs()
|
D | phy_device.c | 1008 if ((status & BMSR_LSTATUS) == 0) in genphy_update_link()
|
/linux-4.4.14/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() 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()
|
D | atl1.c | 1310 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/ |
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-4.4.14/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 | 263 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/ |
D | mii.c | 257 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-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 173 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/ |
D | phy.c | 212 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
|
/linux-4.4.14/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() 1276 if ((status & BMSR_LSTATUS) && in sis190_default_phy()
|
/linux-4.4.14/drivers/net/bonding/ |
D | bond_main.c | 451 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/ |
D | sunbmac.c | 536 if (bp->sw_bmsr & BMSR_LSTATUS) { in bigmac_timer() 1052 return (bp->sw_bmsr & BMSR_LSTATUS); in bigmac_get_link()
|
D | sunhme.c | 757 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()
|
D | cassini.c | 688 writel((enable) ? ~(BMSR_LSTATUS | BMSR_ANEGCOMPLETE) : 0xFFFF, in cas_mif_poll() 1637 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check()
|
D | niu.c | 1200 *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/ |
D | tg3.c | 4486 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 …]
|
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 | 1590 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()
|
D | bcm63xx_enet.c | 2070 up = (val & BMSR_LSTATUS) ? 1 : 0; in swphy_poll_timer()
|
/linux-4.4.14/drivers/net/ethernet/atheros/alx/ |
D | hw.c | 879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()
|
/linux-4.4.14/drivers/net/ethernet/silan/ |
D | sc92031.c | 494 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
|
/linux-4.4.14/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 1263 BMSR_LSTATUS)) { in tsi108_init_phy()
|
/linux-4.4.14/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 673 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
/linux-4.4.14/drivers/net/cris/ |
D | eth_v10.c | 696 if (!(data & BMSR_LSTATUS)) { in e100_check_speed()
|
/linux-4.4.14/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 1659 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/ |
D | fealnx.c | 949 if (mdio_read(dev, np->phys[0], MII_BMSR) & BMSR_LSTATUS) { in getlinkstatus()
|
/linux-4.4.14/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1439 if (bmsr & BMSR_LSTATUS) in mii_wait_link()
|
/linux-4.4.14/drivers/net/ethernet/adaptec/ |
D | starfire.c | 1599 if (reg1 & BMSR_LSTATUS) { in netdev_media_change()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 1766 if (phy_status & BMSR_LSTATUS) in e1000e_phy_has_link_generic()
|
/linux-4.4.14/drivers/net/ethernet/via/ |
D | via-rhine.c | 1018 if (mii_status & BMSR_LSTATUS) in rhine_init_one_common()
|
D | via-velocity.c | 715 if (!MII_REG_BITS_IS_ON(BMSR_LSTATUS, MII_BMSR, regs)) in mii_check_media_mode()
|
/linux-4.4.14/drivers/net/ethernet/intel/ |
D | e100.c | 1031 return BMSR_LSTATUS /* for mii_link_ok() */ | in mdio_ctrl_phy_mii_emulated()
|
/linux-4.4.14/drivers/net/ethernet/nvidia/ |
D | forcedeth.c | 3332 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/ |
D | gianfar.c | 1839 if (phy_read(tbiphy, MII_BMSR) & BMSR_LSTATUS) { in gfar_configure_serdes()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_core_main.c | 4428 rc = BMSR_ERCAP | BMSR_ANEGCOMPLETE | BMSR_LSTATUS | in qeth_mdio_read()
|