/drivers/net/phy/ |
D | swphy.c | 22 u16 bmsr; member 46 .bmsr = BMSR_100FULL | BMSR_100HALF, 50 .bmsr = BMSR_ESTATEN, 58 .bmsr = BMSR_ESTATEN | BMSR_100HALF, 64 .bmsr = BMSR_ESTATEN | BMSR_100FULL, 118 u16 bmsr = BMSR_ANEGCAPABLE; in swphy_read_reg() local 132 bmsr |= speed[speed_index].bmsr & duplex[duplex_index].bmsr; in swphy_read_reg() 136 bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; in swphy_read_reg() 152 return bmsr; in swphy_read_reg()
|
D | bcm84881.c | 115 int bmsr, val; in bcm84881_aneg_done() local 121 bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR); in bcm84881_aneg_done() 122 if (bmsr < 0) in bcm84881_aneg_done() 126 !!(bmsr & BMSR_ANEGCOMPLETE); in bcm84881_aneg_done() 132 int bmsr, val; in bcm84881_read_status() local 147 bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR); in bcm84881_read_status() 148 if (bmsr < 0) in bcm84881_read_status() 152 !!(bmsr & BMSR_ANEGCOMPLETE); in bcm84881_read_status() 154 !!(bmsr & BMSR_LSTATUS); in bcm84881_read_status()
|
D | phy_device.c | 1829 int err, bmsr, changed = 0; in genphy_config_advert() local 1848 bmsr = phy_read(phydev, MII_BMSR); in genphy_config_advert() 1849 if (bmsr < 0) in genphy_config_advert() 1850 return bmsr; in genphy_config_advert() 1856 if (!(bmsr & BMSR_ESTATEN)) in genphy_config_advert()
|
D | phylink.c | 2438 int bmsr, lpa; in phylink_mii_c22_pcs_get_state() local 2440 bmsr = mdiobus_read(bus, addr, MII_BMSR); in phylink_mii_c22_pcs_get_state() 2442 if (bmsr < 0 || lpa < 0) { in phylink_mii_c22_pcs_get_state() 2447 state->link = !!(bmsr & BMSR_LSTATUS); in phylink_mii_c22_pcs_get_state() 2448 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in phylink_mii_c22_pcs_get_state()
|
D | marvell.c | 1912 int bmcr, bmsr, ret; in marvell_cable_test_start_common() local 1921 bmsr = phy_read(phydev, MII_BMSR); in marvell_cable_test_start_common() 1923 if (bmsr < 0) in marvell_cable_test_start_common() 1924 return bmsr; in marvell_cable_test_start_common() 1936 if (bmsr & BMSR_LSTATUS) in marvell_cable_test_start_common()
|
/drivers/net/pcs/ |
D | pcs-lynx.c | 61 int bmsr, lpa; in lynx_pcs_get_state_2500basex() local 63 bmsr = mdiobus_read(bus, addr, MII_BMSR); in lynx_pcs_get_state_2500basex() 65 if (bmsr < 0 || lpa < 0) { in lynx_pcs_get_state_2500basex() 70 state->link = !!(bmsr & BMSR_LSTATUS); in lynx_pcs_get_state_2500basex() 71 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in lynx_pcs_get_state_2500basex()
|
/drivers/net/ethernet/ibm/emac/ |
D | phy.c | 541 u16 bmsr = phy_read(phy, MII_BMSR); in emac_mii_phy_probe() local 542 if (bmsr & BMSR_ANEGCAPABLE) in emac_mii_phy_probe() 544 if (bmsr & BMSR_10HALF) in emac_mii_phy_probe() 546 if (bmsr & BMSR_10FULL) in emac_mii_phy_probe() 548 if (bmsr & BMSR_100HALF) in emac_mii_phy_probe() 550 if (bmsr & BMSR_100FULL) in emac_mii_phy_probe() 552 if (bmsr & BMSR_ESTATEN) { in emac_mii_phy_probe()
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | my3126.c | 49 status = cphy->bmsr ^ val16; in my3126_interrupt_handler() 53 cphy->bmsr = val16; in my3126_interrupt_handler() 181 cphy->bmsr = 0; in my3126_phy_create()
|
D | cphy.h | 97 u16 bmsr; member
|
/drivers/net/dsa/b53/ |
D | b53_serdes.c | 103 u16 dig, bmsr; in b53_serdes_link_state() local 110 bmsr = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMSR), in b53_serdes_link_state() 130 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in b53_serdes_link_state()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1475 __u16 bmsr; in mii_wait_link() local 1483 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_wait_link() 1484 if (bmsr & BMSR_LSTATUS) in mii_wait_link() 1494 __u16 bmsr; in mii_get_media() local 1503 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_get_media() 1505 if (!(bmsr & BMSR_ANEGCOMPLETE)) { in mii_get_media() 1581 __u16 bmsr; in mii_set_media() local 1591 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_set_media() 1596 if (bmsr & BMSR_100FULL) in mii_set_media() 1598 if (bmsr & BMSR_100HALF) in mii_set_media() [all …]
|
/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() 149 u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; in mii_ethtool_get_link_ksettings() local 169 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_get_link_ksettings() 182 if (bmsr & BMSR_ANEGCOMPLETE) { in mii_ethtool_get_link_ksettings()
|
/drivers/net/ethernet/dec/tulip/ |
D | media.c | 400 unsigned int bmsr, lpa, negotiated, new_csr6; in tulip_check_duplex() local 402 bmsr = tulip_mdio_read(dev, tp->phys[0], MII_BMSR); in tulip_check_duplex() 406 bmsr, lpa); in tulip_check_duplex() 407 if (bmsr == 0xffff) in tulip_check_duplex() 409 if ((bmsr & BMSR_LSTATUS) == 0) { in tulip_check_duplex()
|
/drivers/net/dsa/mv88e6xxx/ |
D | serdes.c | 343 u16 bmsr; in mv88e6352_serdes_irq_link() local 347 err = mv88e6352_serdes_read(chip, MII_BMSR, &bmsr); in mv88e6352_serdes_irq_link() 353 dsa_port_phylink_mac_change(chip->ds, port, !!(bmsr & BMSR_LSTATUS)); in mv88e6352_serdes_irq_link() 866 u16 bmsr; in mv88e6390_serdes_irq_link_sgmii() local 871 MV88E6390_SGMII_BMSR, &bmsr); in mv88e6390_serdes_irq_link_sgmii() 877 dsa_port_phylink_mac_change(chip->ds, port, !!(bmsr & BMSR_LSTATUS)); in mv88e6390_serdes_irq_link_sgmii()
|
/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 168 u16 bmsr, estat; in spider_net_setup_aneg() local 170 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg() 173 if (bmsr & BMSR_10HALF) in spider_net_setup_aneg() 175 if (bmsr & BMSR_10FULL) in spider_net_setup_aneg() 177 if (bmsr & BMSR_100HALF) in spider_net_setup_aneg() 179 if (bmsr & BMSR_100FULL) in spider_net_setup_aneg() 182 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_TFULL)) in spider_net_setup_aneg() 184 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) in spider_net_setup_aneg()
|
/drivers/net/ethernet/sun/ |
D | niu.c | 1097 int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus; in link_status_mii() local 1108 bmsr = err; in link_status_mii() 1120 if (likely(bmsr & BMSR_ESTATEN)) { in link_status_mii() 1139 if (bmsr & BMSR_ANEGCAPABLE) in link_status_mii() 1141 if (bmsr & BMSR_10HALF) in link_status_mii() 1143 if (bmsr & BMSR_10FULL) in link_status_mii() 1145 if (bmsr & BMSR_100HALF) in link_status_mii() 1147 if (bmsr & BMSR_100FULL) in link_status_mii() 1201 *link_up_p = !!(bmsr & BMSR_LSTATUS); in link_status_mii() 1209 u16 current_speed, bmsr; in link_status_1g_rgmii() local [all …]
|
D | cassini.c | 1610 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check() argument 1614 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check() 1670 u16 bmsr; in cas_mif_interrupt() local 1676 bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); in cas_mif_interrupt() 1677 return cas_mii_link_check(cp, bmsr); in cas_mif_interrupt() 4112 u16 bmsr; in cas_link_timer() local 4114 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4120 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4123 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 | 536 u32 bmsr, aux; in b44_check_phy() local 553 if (!b44_readphy(bp, MII_BMSR, &bmsr) && in b44_check_phy() 555 (bmsr != 0xffff)) { in b44_check_phy() 566 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 584 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy() 590 if (bmsr & BMSR_RFAULT) in b44_check_phy() 592 if (bmsr & BMSR_JCD) in b44_check_phy()
|
D | bnx2.c | 941 u32 bmsr; in bnx2_report_fw_link() local 975 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 976 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link() 978 if (!(bmsr & BMSR_ANEGCOMPLETE) || in bnx2_report_fw_link() 1554 u32 bmsr; in bnx2_set_link() local 1568 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 1569 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link() 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() [all …]
|
D | tg3.c | 4782 u32 bmsr, val; in tg3_setup_copper_phy() local 4805 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4806 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() 4807 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 4814 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4815 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy() 4817 bmsr = 0; in tg3_setup_copper_phy() 4819 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 4824 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4827 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() [all …]
|
/drivers/net/ethernet/silan/ |
D | sc92031.c | 489 u16 bmsr; in _sc92031_check_media() local 491 bmsr = _sc92031_mii_read(port_base, MII_BMSR); in _sc92031_check_media() 493 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
|
/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 664 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() local 669 yp->phys[0], bmsr, lpa); in yellowfin_timer() 675 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
/drivers/net/ethernet/ |
D | jme.c | 387 u32 phylink, bmsr; in jme_linkstat_from_phy() local 390 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); in jme_linkstat_from_phy() 391 if (bmsr & BMSR_ANCOMP) in jme_linkstat_from_phy() 2925 u16 bmcr, bmsr; in jme_init_one() local 3076 bmsr = jme_mdio_read(netdev, i, MII_BMSR); in jme_init_one() 3077 if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { in jme_init_one()
|
/drivers/net/ethernet/intel/e1000e/ |
D | e1000.h | 178 u16 bmsr; /* basic mode status register */ member
|