/linux-2.6.39/drivers/net/phy/ |
D | fixed.c | 49 u16 bmsr = BMSR_ANEGCAPABLE; in fixed_phy_update_regs() local 59 bmsr |= BMSR_ESTATEN; in fixed_phy_update_regs() 64 bmsr |= BMSR_100FULL; in fixed_phy_update_regs() 69 bmsr |= BMSR_10FULL; in fixed_phy_update_regs() 79 bmsr |= BMSR_ESTATEN; in fixed_phy_update_regs() 84 bmsr |= BMSR_100HALF; in fixed_phy_update_regs() 89 bmsr |= BMSR_10HALF; in fixed_phy_update_regs() 99 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in fixed_phy_update_regs() 110 fp->regs[MII_BMSR] = bmsr; in fixed_phy_update_regs()
|
/linux-2.6.39/drivers/net/ibm_newemac/ |
D | phy.c | 511 u16 bmsr = phy_read(phy, MII_BMSR); in emac_mii_phy_probe() local 512 if (bmsr & BMSR_ANEGCAPABLE) in emac_mii_phy_probe() 514 if (bmsr & BMSR_10HALF) in emac_mii_phy_probe() 516 if (bmsr & BMSR_10FULL) in emac_mii_phy_probe() 518 if (bmsr & BMSR_100HALF) in emac_mii_phy_probe() 520 if (bmsr & BMSR_100FULL) in emac_mii_phy_probe() 522 if (bmsr & BMSR_ESTATEN) { in emac_mii_phy_probe()
|
/linux-2.6.39/drivers/net/chelsio/ |
D | my3126.c | 48 status = cphy->bmsr ^ val16; in my3126_interrupt_handler() 52 cphy->bmsr = val16; in my3126_interrupt_handler() 180 cphy->bmsr = 0; in my3126_phy_create()
|
D | cphy.h | 98 u16 bmsr; member
|
/linux-2.6.39/drivers/net/ |
D | dl2k.c | 1433 __u16 bmsr; in mii_wait_link() local 1441 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_wait_link() 1442 if (bmsr & MII_BMSR_LINK_STATUS) in mii_wait_link() 1452 __u16 bmsr; in mii_get_media() local 1461 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_get_media() 1463 if (!(bmsr & MII_BMSR_AN_COMPLETE)) { in mii_get_media() 1539 __u16 bmsr; in mii_set_media() local 1549 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_set_media() 1556 if (bmsr & MII_BMSR_100BX_FD) in mii_set_media() 1558 if (bmsr & MII_BMSR_100BX_HD) in mii_set_media() [all …]
|
D | mii.c | 70 u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; in mii_ethtool_gset() local 94 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset() 109 if (bmsr & BMSR_ANEGCOMPLETE) { in mii_ethtool_gset()
|
D | spider_net.c | 179 u16 bmsr, estat; in spider_net_setup_aneg() local 181 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 184 if (bmsr & BMSR_10HALF) in spider_net_setup_aneg() 186 if (bmsr & BMSR_10FULL) in spider_net_setup_aneg() 188 if (bmsr & BMSR_100HALF) in spider_net_setup_aneg() 190 if (bmsr & BMSR_100FULL) in spider_net_setup_aneg() 193 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_TFULL)) in spider_net_setup_aneg() 195 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) in spider_net_setup_aneg()
|
D | niu.c | 1094 int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus; in link_status_mii() local 1105 bmsr = err; in link_status_mii() 1117 if (likely(bmsr & BMSR_ESTATEN)) { in link_status_mii() 1136 if (bmsr & BMSR_ANEGCAPABLE) in link_status_mii() 1138 if (bmsr & BMSR_10HALF) in link_status_mii() 1140 if (bmsr & BMSR_10FULL) in link_status_mii() 1142 if (bmsr & BMSR_100HALF) in link_status_mii() 1144 if (bmsr & BMSR_100FULL) in link_status_mii() 1209 *link_up_p = !!(bmsr & BMSR_LSTATUS); in link_status_mii() 1217 u16 current_speed, bmsr; in link_status_1g_rgmii() local [all …]
|
D | b44.c | 519 u32 bmsr, aux; in b44_check_phy() local 534 if (!b44_readphy(bp, MII_BMSR, &bmsr) && in b44_check_phy() 536 (bmsr != 0xffff)) { in b44_check_phy() 547 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 565 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy() 571 if (bmsr & BMSR_RFAULT) in b44_check_phy() 573 if (bmsr & BMSR_JCD) in b44_check_phy()
|
D | bnx2.c | 921 u32 bmsr; in bnx2_report_fw_link() local 955 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 956 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 958 if (!(bmsr & BMSR_ANEGCOMPLETE) || in bnx2_report_fw_link() 1524 u32 bmsr; in bnx2_set_link() local 1538 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 1539 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 1558 bmsr |= BMSR_LSTATUS; in bnx2_set_link() 1560 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link() 1563 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link() [all …]
|
D | tg3.c | 3165 u32 bmsr, val; in tg3_setup_copper_phy() local 3195 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 3196 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() 3197 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 3204 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 3205 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy() 3207 bmsr = 0; in tg3_setup_copper_phy() 3209 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 3214 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 3217 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() [all …]
|
D | yellowfin.c | 668 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() local 673 yp->phys[0], bmsr, lpa); in yellowfin_timer() 679 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
D | sc92031.c | 497 u16 bmsr; in _sc92031_check_media() local 499 bmsr = _sc92031_mii_read(port_base, MII_BMSR); in _sc92031_check_media() 501 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
|
D | jme.c | 396 u32 phylink, bmsr; in jme_linkstat_from_phy() local 399 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); in jme_linkstat_from_phy() 400 if (bmsr & BMSR_ANCOMP) in jme_linkstat_from_phy() 2915 u16 bmcr, bmsr; in jme_init_one() local 3072 bmsr = jme_mdio_read(netdev, i, MII_BMSR); in jme_init_one() 3073 if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { in jme_init_one()
|
D | cassini.c | 1636 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check() argument 1640 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check() 1696 u16 bmsr; in cas_mif_interrupt() local 1702 bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); in cas_mif_interrupt() 1703 return cas_mii_link_check(cp, bmsr); in cas_mif_interrupt() 4146 u16 bmsr; in cas_link_timer() local 4148 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4154 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4157 reset = cas_mii_link_check(cp, bmsr); in cas_link_timer()
|
D | sundance.c | 811 int bmsr; in mdio_wait_link() local 819 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link() 820 if (bmsr & 0x0004) in mdio_wait_link()
|
D | natsemi.c | 1651 u16 bmsr; in check_link() local 1662 bmsr = mdio_read(dev, MII_BMSR); in check_link() 1664 if (!(bmsr & BMSR_LSTATUS)) { in check_link() 1683 if (bmsr & BMSR_ANEGCOMPLETE) { in check_link()
|
/linux-2.6.39/drivers/net/tulip/ |
D | media.c | 410 unsigned int bmsr, lpa, negotiated, new_csr6; in tulip_check_duplex() local 412 bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); in tulip_check_duplex() 416 bmsr, lpa); in tulip_check_duplex() 417 if (bmsr == 0xffff) in tulip_check_duplex() 419 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
|
/linux-2.6.39/drivers/staging/et131x/ |
D | et1310_phy.c | 732 MI_BMSR_t bmsr, MI_BMSR_t bmsr_ints) in et131x_Mii_check() argument 744 if (bmsr.bits.link_status) { in et131x_Mii_check() 827 if (bmsr.bits.auto_neg_complete || etdev->AiForceDpx == 3) { in et131x_Mii_check()
|
D | et131x.h | 116 MI_BMSR_t bmsr, MI_BMSR_t bmsr_ints);
|
D | et131x_isr.c | 392 (uint8_t) offsetof(struct mi_regs, bmsr), in et131x_isr_handler()
|
D | et1310_phy.h | 103 u8 bmsr; /* Basic mode status reg(Reg 0x01) */ member
|
/linux-2.6.39/drivers/net/arm/ |
D | at91_ether.c | 148 unsigned int bmsr, bmcr, lpa, mac_cfg; in update_linkspeed() local 159 read_phy(lp->phy_address, MII_BMSR, &bmsr); in update_linkspeed() 162 if (!(bmsr & BMSR_ANEGCOMPLETE)) in update_linkspeed()
|
D | w90p910_ether.c | 209 unsigned int bmsr, bmcr, lpa, speed, duplex; in update_linkspeed() local 223 bmsr = w90p910_mdio_read(dev, ether->mii.phy_id, MII_BMSR); in update_linkspeed() 227 if (!(bmsr & BMSR_ANEGCOMPLETE)) in update_linkspeed()
|
/linux-2.6.39/drivers/net/e1000e/ |
D | e1000.h | 263 u16 bmsr; /* basic mode status register */ member
|