/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A 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/include/uapi/linux/ |
H A D | mii.h | 57 #define BMSR_LSTATUS 0x0004 /* Link status */ macro
|
/linux/drivers/net/phy/ |
H A D | swphy.c | 136 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in swphy_read_reg()
|
H A D | mxl-gpy.c | 502 ret = phy_read_poll_timeout(phydev, MII_BMSR, ret, ret & BMSR_LSTATUS, in gpy_config_aneg()
|
/linux/drivers/net/usb/ |
H A D | sr9700.c | 205 res = le16_to_cpu(word) | BMSR_LSTATUS; in sr_mdio_read() 207 res = le16_to_cpu(word) & ~BMSR_LSTATUS; in sr_mdio_read()
|
H A D | pegasus.c | 783 if (tmp & BMSR_LSTATUS) in set_carrier()
|
/linux/drivers/net/ethernet/atheros/atlx/ |
H A D | atlx.c | 91 if (!(phy_data & BMSR_LSTATUS)) { in atlx_check_for_link()
|
H A D | atl2.c | 558 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()
|
H A D | atl1.c | 1289 if (!(phy_data & BMSR_LSTATUS)) { in atl1_check_link() 2771 val = ctrl & BMSR_LSTATUS; in atl1_suspend()
|
/linux/drivers/net/ethernet/dec/tulip/ |
H A D | media.c | 409 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex() 411 if ((new_bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
H A D | atl1e_main.c | 155 if ((phy_data & BMSR_LSTATUS) == 0) { in atl1e_check_link() 220 link_up = phy_data & BMSR_LSTATUS; in atl1e_link_chg_event() 2121 if (mii_bmsr_data & BMSR_LSTATUS) { in atl1e_suspend() 2126 if (mii_bmsr_data & BMSR_LSTATUS) in atl1e_suspend() 2130 if ((mii_bmsr_data & BMSR_LSTATUS) == 0) in atl1e_suspend()
|
/linux/drivers/net/ethernet/ibm/emac/ |
H A D | phy.c | 213 if (status < 0 || (status & BMSR_LSTATUS) == 0) in genmii_poll_link()
|
/linux/drivers/net/ethernet/sis/ |
H A D | sis190.c | 942 } 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/drivers/net/ethernet/atheros/atl1c/ |
H A D | atl1c_hw.c | 658 return !!(phy_data & BMSR_LSTATUS); in atl1c_get_link_status()
|
/linux/drivers/net/bonding/ |
H A D | bond_main.c | 869 return netif_carrier_ok(slave_dev) ? BMSR_LSTATUS : 0; in bond_check_dev_link() 874 BMSR_LSTATUS : 0; in bond_check_dev_link() 897 return mii->val_out & BMSR_LSTATUS; in bond_check_dev_link() 906 return reporting ? -1 : BMSR_LSTATUS; in bond_check_dev_link() 2201 if (bond_check_dev_link(bond, slave_dev, 0) == BMSR_LSTATUS) { in bond_enslave() 4618 mii->val_out = BMSR_LSTATUS; in bond_eth_ioctl()
|
/linux/drivers/net/ethernet/sun/ |
H A D | sunhme.c | 791 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer() 839 if (hp->sw_bmsr & BMSR_LSTATUS) { in happy_meal_timer() 2224 return hp->sw_bmsr & BMSR_LSTATUS; in hme_get_link()
|
/linux/drivers/net/ |
H A D | sungem_phy.c | 380 if ((status & BMSR_LSTATUS) == 0) in genmii_poll_link()
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 4482 if (!(tmp & BMSR_LSTATUS)) { in tg3_phy_copper_begin() 4792 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 4804 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 4813 (bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 4821 !(bmsr & BMSR_LSTATUS) && in tg3_setup_copper_phy() 4879 (bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 4884 if (bmsr & BMSR_LSTATUS) { in tg3_setup_copper_phy() 4975 if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || in tg3_setup_copper_phy() 5862 bmsr |= BMSR_LSTATUS; in tg3_setup_fiber_mii_phy() 5864 bmsr &= ~BMSR_LSTATUS; in tg3_setup_fiber_mii_phy() [all …]
|
H A D | b44.c | 545 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 563 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy()
|
H A D | bnx2.c | 1588 bmsr |= BMSR_LSTATUS; in bnx2_set_link() 1590 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link() 1593 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link() 2134 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy() 2151 if (bmsr & BMSR_LSTATUS) { in bnx2_setup_copper_phy() 6000 if (bmsr & BMSR_LSTATUS) { in bnx2_test_link()
|
/linux/drivers/net/ethernet/atheros/alx/ |
H A D | hw.c | 879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()
|
/linux/drivers/net/ethernet/silan/ |
H A D | sc92031.c | 493 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
|
/linux/drivers/net/pcs/ |
H A D | pcs-xpcs.c | 1081 state->link = !!(ret & BMSR_LSTATUS); in xpcs_get_state_2500basex()
|
/linux/drivers/net/ethernet/packetengines/ |
H A D | yellowfin.c | 677 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
/linux/drivers/net/ethernet/natsemi/ |
H A D | natsemi.c | 1660 if (!(bmsr & BMSR_LSTATUS)) { in check_link() 2663 return (mdio_read(dev, MII_BMSR)&BMSR_LSTATUS) ? 1:0; in get_link()
|