| /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()
|
| /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/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/dsa/mv88e6xxx/ |
| 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/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 …]
|
| /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/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/broadcom/ |
| 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/ |
| 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
|