bmsr 103 drivers/net/dsa/b53/b53_serdes.c u16 dig, bmsr; bmsr 110 drivers/net/dsa/b53/b53_serdes.c bmsr = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMSR), bmsr 130 drivers/net/dsa/b53/b53_serdes.c state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); bmsr 868 drivers/net/ethernet/atheros/alx/hw.c u16 bmsr, giga; bmsr 871 drivers/net/ethernet/atheros/alx/hw.c err = alx_read_phy_reg(hw, MII_BMSR, &bmsr); bmsr 875 drivers/net/ethernet/atheros/alx/hw.c err = alx_read_phy_reg(hw, MII_BMSR, &bmsr); bmsr 879 drivers/net/ethernet/atheros/alx/hw.c if (!(bmsr & BMSR_LSTATUS)) { bmsr 541 drivers/net/ethernet/broadcom/b44.c u32 bmsr, aux; bmsr 558 drivers/net/ethernet/broadcom/b44.c if (!b44_readphy(bp, MII_BMSR, &bmsr) && bmsr 560 drivers/net/ethernet/broadcom/b44.c (bmsr != 0xffff)) { bmsr 571 drivers/net/ethernet/broadcom/b44.c (bmsr & BMSR_LSTATUS)) { bmsr 589 drivers/net/ethernet/broadcom/b44.c } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { bmsr 595 drivers/net/ethernet/broadcom/b44.c if (bmsr & BMSR_RFAULT) bmsr 597 drivers/net/ethernet/broadcom/b44.c if (bmsr & BMSR_JCD) bmsr 947 drivers/net/ethernet/broadcom/bnx2.c u32 bmsr; bmsr 981 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 982 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 984 drivers/net/ethernet/broadcom/bnx2.c if (!(bmsr & BMSR_ANEGCOMPLETE) || bmsr 1560 drivers/net/ethernet/broadcom/bnx2.c u32 bmsr; bmsr 1574 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); bmsr 1575 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); bmsr 1594 drivers/net/ethernet/broadcom/bnx2.c bmsr |= BMSR_LSTATUS; bmsr 1596 drivers/net/ethernet/broadcom/bnx2.c bmsr &= ~BMSR_LSTATUS; bmsr 1599 drivers/net/ethernet/broadcom/bnx2.c if (bmsr & BMSR_LSTATUS) { bmsr 2135 drivers/net/ethernet/broadcom/bnx2.c u32 bmsr; bmsr 2137 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 2138 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 2140 drivers/net/ethernet/broadcom/bnx2.c if (bmsr & BMSR_LSTATUS) { bmsr 2147 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 2148 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); bmsr 2157 drivers/net/ethernet/broadcom/bnx2.c if (bmsr & BMSR_LSTATUS) { bmsr 6004 drivers/net/ethernet/broadcom/bnx2.c u32 bmsr; bmsr 6016 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); bmsr 6017 drivers/net/ethernet/broadcom/bnx2.c bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); bmsr 6021 drivers/net/ethernet/broadcom/bnx2.c if (bmsr & BMSR_LSTATUS) { bmsr 4787 drivers/net/ethernet/broadcom/tg3.c u32 bmsr, val; bmsr 4810 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 4811 drivers/net/ethernet/broadcom/tg3.c if (!tg3_readphy(tp, MII_BMSR, &bmsr) && bmsr 4812 drivers/net/ethernet/broadcom/tg3.c !(bmsr & BMSR_LSTATUS)) bmsr 4819 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 4820 drivers/net/ethernet/broadcom/tg3.c if (tg3_readphy(tp, MII_BMSR, &bmsr) || bmsr 4822 drivers/net/ethernet/broadcom/tg3.c bmsr = 0; bmsr 4824 drivers/net/ethernet/broadcom/tg3.c if (!(bmsr & BMSR_LSTATUS)) { bmsr 4829 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 4832 drivers/net/ethernet/broadcom/tg3.c if (!tg3_readphy(tp, MII_BMSR, &bmsr) && bmsr 4833 drivers/net/ethernet/broadcom/tg3.c (bmsr & BMSR_LSTATUS)) { bmsr 4841 drivers/net/ethernet/broadcom/tg3.c !(bmsr & BMSR_LSTATUS) && bmsr 4895 drivers/net/ethernet/broadcom/tg3.c bmsr = 0; bmsr 4897 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 4898 drivers/net/ethernet/broadcom/tg3.c if (!tg3_readphy(tp, MII_BMSR, &bmsr) && bmsr 4899 drivers/net/ethernet/broadcom/tg3.c (bmsr & BMSR_LSTATUS)) bmsr 4904 drivers/net/ethernet/broadcom/tg3.c if (bmsr & BMSR_LSTATUS) { bmsr 4994 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 4995 drivers/net/ethernet/broadcom/tg3.c if ((!tg3_readphy(tp, MII_BMSR, &bmsr) && (bmsr & BMSR_LSTATUS)) || bmsr 5824 drivers/net/ethernet/broadcom/tg3.c u32 bmsr, bmcr; bmsr 5880 drivers/net/ethernet/broadcom/tg3.c err |= tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 5881 drivers/net/ethernet/broadcom/tg3.c err |= tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 5884 drivers/net/ethernet/broadcom/tg3.c bmsr |= BMSR_LSTATUS; bmsr 5886 drivers/net/ethernet/broadcom/tg3.c bmsr &= ~BMSR_LSTATUS; bmsr 5949 drivers/net/ethernet/broadcom/tg3.c err |= tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 5950 drivers/net/ethernet/broadcom/tg3.c err |= tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 5953 drivers/net/ethernet/broadcom/tg3.c bmsr |= BMSR_LSTATUS; bmsr 5955 drivers/net/ethernet/broadcom/tg3.c bmsr &= ~BMSR_LSTATUS; bmsr 5961 drivers/net/ethernet/broadcom/tg3.c if (bmsr & BMSR_LSTATUS) { bmsr 15598 drivers/net/ethernet/broadcom/tg3.c u32 bmsr, dummy; bmsr 15600 drivers/net/ethernet/broadcom/tg3.c tg3_readphy(tp, MII_BMSR, &bmsr); bmsr 15601 drivers/net/ethernet/broadcom/tg3.c if (!tg3_readphy(tp, MII_BMSR, &bmsr) && bmsr 15602 drivers/net/ethernet/broadcom/tg3.c (bmsr & BMSR_LSTATUS)) bmsr 97 drivers/net/ethernet/chelsio/cxgb/cphy.h u16 bmsr; bmsr 49 drivers/net/ethernet/chelsio/cxgb/my3126.c status = cphy->bmsr ^ val16; bmsr 53 drivers/net/ethernet/chelsio/cxgb/my3126.c cphy->bmsr = val16; bmsr 181 drivers/net/ethernet/chelsio/cxgb/my3126.c cphy->bmsr = 0; bmsr 405 drivers/net/ethernet/dec/tulip/media.c unsigned int bmsr, lpa, negotiated, new_csr6; bmsr 407 drivers/net/ethernet/dec/tulip/media.c bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); bmsr 411 drivers/net/ethernet/dec/tulip/media.c bmsr, lpa); bmsr 412 drivers/net/ethernet/dec/tulip/media.c if (bmsr == 0xffff) bmsr 414 drivers/net/ethernet/dec/tulip/media.c if ((bmsr & BMSR_LSTATUS) == 0) { bmsr 1483 drivers/net/ethernet/dlink/dl2k.c __u16 bmsr; bmsr 1491 drivers/net/ethernet/dlink/dl2k.c bmsr = mii_read (dev, phy_addr, MII_BMSR); bmsr 1492 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_LSTATUS) bmsr 1502 drivers/net/ethernet/dlink/dl2k.c __u16 bmsr; bmsr 1511 drivers/net/ethernet/dlink/dl2k.c bmsr = mii_read (dev, phy_addr, MII_BMSR); bmsr 1513 drivers/net/ethernet/dlink/dl2k.c if (!(bmsr & BMSR_ANEGCOMPLETE)) { bmsr 1589 drivers/net/ethernet/dlink/dl2k.c __u16 bmsr; bmsr 1599 drivers/net/ethernet/dlink/dl2k.c bmsr = mii_read (dev, phy_addr, MII_BMSR); bmsr 1604 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_100FULL) bmsr 1606 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_100HALF) bmsr 1608 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_100BASE4) bmsr 1610 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_10FULL) bmsr 1612 drivers/net/ethernet/dlink/dl2k.c if (bmsr & BMSR_10HALF) bmsr 1677 drivers/net/ethernet/dlink/dl2k.c __u16 bmsr; bmsr 1684 drivers/net/ethernet/dlink/dl2k.c bmsr = mii_read (dev, phy_addr, PCS_BMSR); bmsr 1686 drivers/net/ethernet/dlink/dl2k.c if (!(bmsr & BMSR_ANEGCOMPLETE)) { bmsr 832 drivers/net/ethernet/dlink/sundance.c int bmsr; bmsr 840 drivers/net/ethernet/dlink/sundance.c bmsr = mdio_read(dev, phy_id, MII_BMSR); bmsr 841 drivers/net/ethernet/dlink/sundance.c if (bmsr & 0x0004) bmsr 541 drivers/net/ethernet/ibm/emac/phy.c u16 bmsr = phy_read(phy, MII_BMSR); bmsr 542 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_ANEGCAPABLE) bmsr 544 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_10HALF) bmsr 546 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_10FULL) bmsr 548 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_100HALF) bmsr 550 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_100FULL) bmsr 552 drivers/net/ethernet/ibm/emac/phy.c if (bmsr & BMSR_ESTATEN) { bmsr 177 drivers/net/ethernet/intel/e1000e/e1000.h u16 bmsr; /* basic mode status register */ bmsr 5038 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_BMSR, &phy->bmsr); bmsr 5052 drivers/net/ethernet/intel/e1000e/netdev.c phy->bmsr = (BMSR_100FULL | BMSR_100HALF | BMSR_10FULL | bmsr 6100 drivers/net/ethernet/intel/e1000e/netdev.c data->val_out = adapter->phy_regs.bmsr; bmsr 387 drivers/net/ethernet/jme.c u32 phylink, bmsr; bmsr 390 drivers/net/ethernet/jme.c bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); bmsr 391 drivers/net/ethernet/jme.c if (bmsr & BMSR_ANCOMP) bmsr 2933 drivers/net/ethernet/jme.c u16 bmcr, bmsr; bmsr 3086 drivers/net/ethernet/jme.c bmsr = jme_mdio_read(netdev, i, MII_BMSR); bmsr 3087 drivers/net/ethernet/jme.c if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { bmsr 1650 drivers/net/ethernet/natsemi/natsemi.c u16 bmsr; bmsr 1661 drivers/net/ethernet/natsemi/natsemi.c bmsr = mdio_read(dev, MII_BMSR); bmsr 1663 drivers/net/ethernet/natsemi/natsemi.c if (!(bmsr & BMSR_LSTATUS)) { bmsr 1682 drivers/net/ethernet/natsemi/natsemi.c if (bmsr & BMSR_ANEGCOMPLETE) { bmsr 659 drivers/net/ethernet/packetengines/yellowfin.c int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); bmsr 664 drivers/net/ethernet/packetengines/yellowfin.c yp->phys[0], bmsr, lpa); bmsr 670 drivers/net/ethernet/packetengines/yellowfin.c if (bmsr & BMSR_LSTATUS) bmsr 488 drivers/net/ethernet/silan/sc92031.c u16 bmsr; bmsr 490 drivers/net/ethernet/silan/sc92031.c bmsr = _sc92031_mii_read(port_base, MII_BMSR); bmsr 492 drivers/net/ethernet/silan/sc92031.c if (bmsr & BMSR_LSTATUS) { bmsr 1622 drivers/net/ethernet/sun/cassini.c static int cas_mii_link_check(struct cas *cp, const u16 bmsr) bmsr 1626 drivers/net/ethernet/sun/cassini.c if (bmsr & BMSR_LSTATUS) { bmsr 1682 drivers/net/ethernet/sun/cassini.c u16 bmsr; bmsr 1688 drivers/net/ethernet/sun/cassini.c bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); bmsr 1689 drivers/net/ethernet/sun/cassini.c return cas_mii_link_check(cp, bmsr); bmsr 4126 drivers/net/ethernet/sun/cassini.c u16 bmsr; bmsr 4128 drivers/net/ethernet/sun/cassini.c bmsr = cas_phy_read(cp, MII_BMSR); bmsr 4134 drivers/net/ethernet/sun/cassini.c bmsr = cas_phy_read(cp, MII_BMSR); bmsr 4137 drivers/net/ethernet/sun/cassini.c reset = cas_mii_link_check(cp, bmsr); bmsr 1097 drivers/net/ethernet/sun/niu.c int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus; bmsr 1108 drivers/net/ethernet/sun/niu.c bmsr = err; bmsr 1120 drivers/net/ethernet/sun/niu.c if (likely(bmsr & BMSR_ESTATEN)) { bmsr 1139 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_ANEGCAPABLE) bmsr 1141 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_10HALF) bmsr 1143 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_10FULL) bmsr 1145 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_100HALF) bmsr 1147 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_100FULL) bmsr 1201 drivers/net/ethernet/sun/niu.c *link_up_p = !!(bmsr & BMSR_LSTATUS); bmsr 1209 drivers/net/ethernet/sun/niu.c u16 current_speed, bmsr; bmsr 1224 drivers/net/ethernet/sun/niu.c bmsr = err; bmsr 1225 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_LSTATUS) { bmsr 1657 drivers/net/ethernet/sun/niu.c u16 bmcr, bmsr, estat; bmsr 1670 drivers/net/ethernet/sun/niu.c bmsr = err; bmsr 1673 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_ESTATEN) { bmsr 1685 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_ESTATEN) { bmsr 1716 drivers/net/ethernet/sun/niu.c u16 bmcr, bmsr, adv, estat; bmsr 1726 drivers/net/ethernet/sun/niu.c bmsr = err; bmsr 1729 drivers/net/ethernet/sun/niu.c if (bmsr & BMSR_ESTATEN) { bmsr 1763 drivers/net/ethernet/sun/niu.c if ((bmsr & BMSR_10HALF) && bmsr 1766 drivers/net/ethernet/sun/niu.c if ((bmsr & BMSR_10FULL) && bmsr 1769 drivers/net/ethernet/sun/niu.c if ((bmsr & BMSR_100HALF) && bmsr 1772 drivers/net/ethernet/sun/niu.c if ((bmsr & BMSR_100FULL) && bmsr 1779 drivers/net/ethernet/sun/niu.c if (likely(bmsr & BMSR_ESTATEN)) { bmsr 1814 drivers/net/ethernet/sun/niu.c if ((fulldpx && !(bmsr & BMSR_100FULL)) || bmsr 1815 drivers/net/ethernet/sun/niu.c (!fulldpx && !(bmsr & BMSR_100HALF))) bmsr 1819 drivers/net/ethernet/sun/niu.c if ((fulldpx && !(bmsr & BMSR_10FULL)) || bmsr 1820 drivers/net/ethernet/sun/niu.c (!fulldpx && !(bmsr & BMSR_10HALF))) bmsr 1839 drivers/net/ethernet/sun/niu.c bmsr = err; bmsr 1842 drivers/net/ethernet/sun/niu.c np->port, bmcr, bmsr); bmsr 168 drivers/net/ethernet/toshiba/spider_net.c u16 bmsr, estat; bmsr 170 drivers/net/ethernet/toshiba/spider_net.c bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); bmsr 173 drivers/net/ethernet/toshiba/spider_net.c if (bmsr & BMSR_10HALF) bmsr 175 drivers/net/ethernet/toshiba/spider_net.c if (bmsr & BMSR_10FULL) bmsr 177 drivers/net/ethernet/toshiba/spider_net.c if (bmsr & BMSR_100HALF) bmsr 179 drivers/net/ethernet/toshiba/spider_net.c if (bmsr & BMSR_100FULL) bmsr 182 drivers/net/ethernet/toshiba/spider_net.c if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_TFULL)) bmsr 184 drivers/net/ethernet/toshiba/spider_net.c if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) bmsr 58 drivers/net/mii.c u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; bmsr 82 drivers/net/mii.c bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); bmsr 96 drivers/net/mii.c if (bmsr & BMSR_ANEGCOMPLETE) { bmsr 149 drivers/net/mii.c u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; bmsr 169 drivers/net/mii.c bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); bmsr 182 drivers/net/mii.c if (bmsr & BMSR_ANEGCOMPLETE) { bmsr 1575 drivers/net/phy/phy_device.c int err, bmsr, changed = 0; bmsr 1594 drivers/net/phy/phy_device.c bmsr = phy_read(phydev, MII_BMSR); bmsr 1595 drivers/net/phy/phy_device.c if (bmsr < 0) bmsr 1596 drivers/net/phy/phy_device.c return bmsr; bmsr 1602 drivers/net/phy/phy_device.c if (!(bmsr & BMSR_ESTATEN)) bmsr 22 drivers/net/phy/swphy.c u16 bmsr; bmsr 46 drivers/net/phy/swphy.c .bmsr = BMSR_100FULL | BMSR_100HALF, bmsr 50 drivers/net/phy/swphy.c .bmsr = BMSR_ESTATEN, bmsr 58 drivers/net/phy/swphy.c .bmsr = BMSR_ESTATEN | BMSR_100HALF, bmsr 64 drivers/net/phy/swphy.c .bmsr = BMSR_ESTATEN | BMSR_100FULL, bmsr 118 drivers/net/phy/swphy.c u16 bmsr = BMSR_ANEGCAPABLE; bmsr 132 drivers/net/phy/swphy.c bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; bmsr 136 drivers/net/phy/swphy.c bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; bmsr 152 drivers/net/phy/swphy.c return bmsr;