| /linux/drivers/net/phy/ |
| H A 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()
|
| H A D | motorcomm.c | 2096 int err, bmsr, changed = 0; in ytphy_utp_config_advert() local 2115 bmsr = __phy_read(phydev, MII_BMSR); in ytphy_utp_config_advert() 2116 if (bmsr < 0) in ytphy_utp_config_advert() 2117 return bmsr; in ytphy_utp_config_advert() 2123 if (!(bmsr & BMSR_ESTATEN)) in ytphy_utp_config_advert()
|
| H A D | phylink.c | 4149 unsigned int neg_mode, u16 bmsr, u16 lpa) in phylink_mii_c22_pcs_decode_state() argument 4151 state->link = !!(bmsr & BMSR_LSTATUS); in phylink_mii_c22_pcs_decode_state() 4152 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in phylink_mii_c22_pcs_decode_state() 4216 int bmsr, lpa; in phylink_mii_c22_pcs_get_state() local 4218 bmsr = mdiodev_read(pcs, MII_BMSR); in phylink_mii_c22_pcs_get_state() 4220 if (bmsr < 0 || lpa < 0) { in phylink_mii_c22_pcs_get_state() 4225 phylink_mii_c22_pcs_decode_state(state, neg_mode, bmsr, lpa); in phylink_mii_c22_pcs_get_state()
|
| H A D | phy_device.c | 2108 int err, bmsr, changed = 0; in genphy_config_advert() local 2123 bmsr = phy_read(phydev, MII_BMSR); in genphy_config_advert() 2124 if (bmsr < 0) in genphy_config_advert() 2125 return bmsr; in genphy_config_advert() 2131 if (!(bmsr & BMSR_ESTATEN)) in genphy_config_advert()
|
| /linux/drivers/net/ethernet/ibm/emac/ |
| H A 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()
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A 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()
|
| H A D | cphy.h | 88 u16 bmsr; member
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | pcs-6352.c | 165 int oldpage, bmsr, lpa, status; in marvell_c22_pcs_get_state() local 174 bmsr = __mdiodev_read(&mpcs->mdio, MII_BMSR); in marvell_c22_pcs_get_state() 180 bmsr >= 0 && lpa >= 0 && status >= 0) in marvell_c22_pcs_get_state() 181 mv88e6xxx_pcs_decode_state(mpcs->mdio.dev.parent, bmsr, lpa, in marvell_c22_pcs_get_state()
|
| H A D | serdes.c | 34 int mv88e6xxx_pcs_decode_state(struct device *dev, u16 bmsr, u16 lpa, in mv88e6xxx_pcs_decode_state() argument 42 if (!(bmsr & BMSR_LSTATUS)) in mv88e6xxx_pcs_decode_state() 46 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in mv88e6xxx_pcs_decode_state()
|
| H A D | serdes.h | 114 int mv88e6xxx_pcs_decode_state(struct device *dev, u16 bmsr, u16 lpa,
|
| H A D | pcs-639x.c | 265 u16 bmsr, lpa, status; in mv88e639x_sgmii_pcs_get_state() local 268 err = mv88e639x_read(mpcs, MV88E6390_SGMII_BMSR, &bmsr); in mv88e639x_sgmii_pcs_get_state() 295 mv88e6xxx_pcs_decode_state(mpcs->mdio.dev.parent, bmsr, lpa, status, in mv88e639x_sgmii_pcs_get_state()
|
| /linux/drivers/net/dsa/b53/ |
| H A D | b53_serdes.c | 107 u16 dig, bmsr; in b53_serdes_get_state() local 111 bmsr = b53_serdes_read(dev, lane, B53_SERDES_MII_REG(MII_BMSR), in b53_serdes_get_state() 131 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in b53_serdes_get_state()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A 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()
|
| /linux/drivers/net/pcs/ |
| H A D | pcs-xpcs.c | 1125 int lpa, bmsr; in xpcs_get_state_c37_1000basex() local 1136 bmsr = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_BMSR); in xpcs_get_state_c37_1000basex() 1137 if (bmsr < 0) in xpcs_get_state_c37_1000basex() 1138 return bmsr; in xpcs_get_state_c37_1000basex() 1151 phylink_mii_c22_pcs_decode_state(state, neg_mode, bmsr, lpa); in xpcs_get_state_c37_1000basex()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 1116 int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus; in link_status_mii() local 1127 bmsr = err; in link_status_mii() 1139 if (likely(bmsr & BMSR_ESTATEN)) { in link_status_mii() 1158 if (bmsr & BMSR_ANEGCAPABLE) in link_status_mii() 1160 if (bmsr & BMSR_10HALF) in link_status_mii() 1162 if (bmsr & BMSR_10FULL) in link_status_mii() 1164 if (bmsr & BMSR_100HALF) in link_status_mii() 1166 if (bmsr & BMSR_100FULL) in link_status_mii() 1220 *link_up_p = !!(bmsr & BMSR_LSTATUS); in link_status_mii() 1228 u16 current_speed, bmsr; in link_status_1g_rgmii() local [all …]
|
| H A D | cassini.c | 1598 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check() argument 1602 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check() 1658 u16 bmsr; in cas_mif_interrupt() local 1664 bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); in cas_mif_interrupt() 1665 return cas_mii_link_check(cp, bmsr); in cas_mif_interrupt() 4078 u16 bmsr; in cas_link_timer() local 4080 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4086 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer() 4089 reset = cas_mii_link_check(cp, bmsr); in cas_link_timer()
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A 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()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | b44.c | 516 u32 bmsr, aux; in b44_check_phy() local 533 if (!b44_readphy(bp, MII_BMSR, &bmsr) && in b44_check_phy() 535 (bmsr != 0xffff)) { in b44_check_phy() 546 (bmsr & BMSR_LSTATUS)) { in b44_check_phy() 564 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy() 570 if (bmsr & BMSR_RFAULT) in b44_check_phy() 572 if (bmsr & BMSR_JCD) in b44_check_phy()
|
| H A 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 …]
|
| H A D | tg3.c | 4767 u32 bmsr, val; in tg3_setup_copper_phy() local 4790 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4791 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() 4792 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy() 4799 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4800 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy() 4802 bmsr = 0; in tg3_setup_copper_phy() 4804 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy() 4809 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy() 4812 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy() [all …]
|
| /linux/drivers/net/ethernet/silan/ |
| H A 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()
|
| /linux/drivers/net/ethernet/packetengines/ |
| H A D | yellowfin.c | 666 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() local 671 yp->phys[0], bmsr, lpa); in yellowfin_timer() 677 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
|
| /linux/drivers/net/ethernet/ |
| H A D | jme.c | 388 u32 phylink, bmsr; in jme_linkstat_from_phy() local 391 bmsr = jme_mdio_read(jme->dev, jme->mii_if.phy_id, MII_BMSR); in jme_linkstat_from_phy() 392 if (bmsr & BMSR_ANCOMP) in jme_linkstat_from_phy() 2909 u16 bmcr, bmsr; in jme_init_one() local 3061 bmsr = jme_mdio_read(netdev, i, MII_BMSR); in jme_init_one() 3062 if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { in jme_init_one()
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | e1000.h | 182 u16 bmsr; /* basic mode status register */ member
|
| /linux/drivers/net/ethernet/dlink/ |
| H A D | sundance.c | 821 int bmsr; in mdio_wait_link() local 829 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link() 830 if (bmsr & 0x0004) in mdio_wait_link()
|