/drivers/net/phy/ |
D | fixed.c | 50 u16 bmsr = BMSR_ANEGCAPABLE; in fixed_phy_update_regs() local 60 bmsr |= BMSR_ESTATEN; in fixed_phy_update_regs() 65 bmsr |= BMSR_100FULL; in fixed_phy_update_regs() 70 bmsr |= BMSR_10FULL; in fixed_phy_update_regs() 80 bmsr |= BMSR_ESTATEN; in fixed_phy_update_regs() 85 bmsr |= BMSR_100HALF; in fixed_phy_update_regs() 90 bmsr |= BMSR_10HALF; in fixed_phy_update_regs() 100 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in fixed_phy_update_regs() 111 fp->regs[MII_BMSR] = bmsr; in fixed_phy_update_regs()
|
D | phy_device.c | 738 int oldadv, adv, bmsr; in genphy_config_advert() local 763 bmsr = phy_read(phydev, MII_BMSR); in genphy_config_advert() 764 if (bmsr < 0) in genphy_config_advert() 765 return bmsr; in genphy_config_advert() 771 if (!(bmsr & BMSR_ESTATEN)) in genphy_config_advert()
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 514 u16 bmsr = phy_read(phy, MII_BMSR); in emac_mii_phy_probe() local 515 if (bmsr & BMSR_ANEGCAPABLE) in emac_mii_phy_probe() 517 if (bmsr & BMSR_10HALF) in emac_mii_phy_probe() 519 if (bmsr & BMSR_10FULL) in emac_mii_phy_probe() 521 if (bmsr & BMSR_100HALF) in emac_mii_phy_probe() 523 if (bmsr & BMSR_100FULL) in emac_mii_phy_probe() 525 if (bmsr & BMSR_ESTATEN) { in emac_mii_phy_probe()
|
/drivers/net/ethernet/chelsio/cxgb/ |
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 | 97 u16 bmsr; member
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1383 __u16 bmsr; in mii_wait_link() local 1391 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_wait_link() 1392 if (bmsr & BMSR_LSTATUS) in mii_wait_link() 1402 __u16 bmsr; in mii_get_media() local 1411 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_get_media() 1413 if (!(bmsr & BMSR_ANEGCOMPLETE)) { in mii_get_media() 1489 __u16 bmsr; in mii_set_media() local 1499 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_set_media() 1504 if (bmsr & BMSR_100FULL) in mii_set_media() 1506 if (bmsr & BMSR_100HALF) in mii_set_media() [all …]
|
D | sundance.c | 830 int bmsr; in mdio_wait_link() local 838 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link() 839 if (bmsr & 0x0004) in mdio_wait_link()
|
/drivers/net/ethernet/dec/tulip/ |
D | media.c | 405 unsigned int bmsr, lpa, negotiated, new_csr6; in tulip_check_duplex() local 407 bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); in tulip_check_duplex() 411 bmsr, lpa); in tulip_check_duplex() 412 if (bmsr == 0xffff) in tulip_check_duplex() 414 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
|
/drivers/net/ |
D | mii.c | 58 u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; in mii_ethtool_gset() local 82 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset() 96 if (bmsr & BMSR_ANEGCOMPLETE) { in mii_ethtool_gset()
|
/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 182 u16 bmsr, estat; in spider_net_setup_aneg() local 184 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 187 if (bmsr & BMSR_10HALF) in spider_net_setup_aneg() 189 if (bmsr & BMSR_10FULL) in spider_net_setup_aneg() 191 if (bmsr & BMSR_100HALF) in spider_net_setup_aneg() 193 if (bmsr & BMSR_100FULL) in spider_net_setup_aneg() 196 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_TFULL)) in spider_net_setup_aneg() 198 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) in spider_net_setup_aneg()
|
/drivers/net/ethernet/sun/ |
D | niu.c | 1096 int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus; in link_status_mii() local 1107 bmsr = err; in link_status_mii() 1119 if (likely(bmsr & BMSR_ESTATEN)) { in link_status_mii() 1138 if (bmsr & BMSR_ANEGCAPABLE) in link_status_mii() 1140 if (bmsr & BMSR_10HALF) in link_status_mii() 1142 if (bmsr & BMSR_10FULL) in link_status_mii() 1144 if (bmsr & BMSR_100HALF) in link_status_mii() 1146 if (bmsr & BMSR_100FULL) in link_status_mii() 1200 *link_up_p = !!(bmsr & BMSR_LSTATUS); in link_status_mii() 1208 u16 current_speed, bmsr; in link_status_1g_rgmii() local [all …]
|
D | cassini.c | 1633 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check() argument 1637 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check() 1693 u16 bmsr; in cas_mif_interrupt() local 1699 bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); in cas_mif_interrupt() 1700 return cas_mii_link_check(cp, bmsr); in cas_mif_interrupt() 4141 u16 bmsr; in cas_link_timer() local 4143 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4149 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4152 reset = cas_mii_link_check(cp, bmsr); in cas_link_timer()
|
/drivers/net/ethernet/atheros/alx/ |
D | hw.c | 868 u16 bmsr, giga; in alx_read_phy_link() local 871 err = alx_read_phy_reg(hw, MII_BMSR, &bmsr); in alx_read_phy_link() 875 err = alx_read_phy_reg(hw, MII_BMSR, &bmsr); in alx_read_phy_link() 879 if (!(bmsr & BMSR_LSTATUS)) { in alx_read_phy_link()
|
/drivers/net/ethernet/broadcom/ |
D | b44.c | 541 u32 bmsr, aux; in b44_check_phy() local 558 if (!b44_readphy(bp, MII_BMSR, &bmsr) && in b44_check_phy() 560 (bmsr != 0xffff)) { in b44_check_phy() 571 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 589 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy() 595 if (bmsr & BMSR_RFAULT) in b44_check_phy() 597 if (bmsr & BMSR_JCD) in b44_check_phy()
|
D | bnx2.c | 925 u32 bmsr; in bnx2_report_fw_link() local 959 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 960 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 962 if (!(bmsr & BMSR_ANEGCOMPLETE) || in bnx2_report_fw_link() 1538 u32 bmsr; in bnx2_set_link() local 1552 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 1553 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 1572 bmsr |= BMSR_LSTATUS; in bnx2_set_link() 1574 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link() 1577 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link() [all …]
|
D | tg3.c | 4771 u32 bmsr, val; in tg3_setup_copper_phy() local 4794 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4795 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() 4796 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 4803 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4804 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy() 4806 bmsr = 0; in tg3_setup_copper_phy() 4808 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 4813 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4816 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() [all …]
|
/drivers/net/ethernet/nuvoton/ |
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()
|
/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 662 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() local 667 yp->phys[0], bmsr, lpa); in yellowfin_timer() 673 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
/drivers/net/ethernet/silan/ |
D | sc92031.c | 490 u16 bmsr; in _sc92031_check_media() local 492 bmsr = _sc92031_mii_read(port_base, MII_BMSR); in _sc92031_check_media() 494 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
|
/drivers/net/ethernet/ |
D | jme.c | 401 u32 phylink, bmsr; in jme_linkstat_from_phy() local 404 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); in jme_linkstat_from_phy() 405 if (bmsr & BMSR_ANCOMP) in jme_linkstat_from_phy() 3007 u16 bmcr, bmsr; in jme_init_one() local 3156 bmsr = jme_mdio_read(netdev, i, MII_BMSR); in jme_init_one() 3157 if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { in jme_init_one()
|
/drivers/net/ethernet/intel/e1000e/ |
D | e1000.h | 195 u16 bmsr; /* basic mode status register */ member
|
D | netdev.c | 4791 ret_val |= e1e_rphy(hw, MII_BMSR, &phy->bmsr); in e1000_phy_read_status() 4805 phy->bmsr = (BMSR_100FULL | BMSR_100HALF | BMSR_10FULL | in e1000_phy_read_status() 5847 data->val_out = adapter->phy_regs.bmsr; in e1000_mii_ioctl()
|
/drivers/net/ethernet/natsemi/ |
D | natsemi.c | 1646 u16 bmsr; in check_link() local 1657 bmsr = mdio_read(dev, MII_BMSR); in check_link() 1659 if (!(bmsr & BMSR_LSTATUS)) { in check_link() 1678 if (bmsr & BMSR_ANEGCOMPLETE) { in check_link()
|