Home
last modified time | relevance | path

Searched refs:bmsr (Results 1 – 25 of 36) sorted by relevance

12

/linux-6.12.1/drivers/net/phy/
Dswphy.c22 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()
Dbcm84881.c127 int bmsr, val; in bcm84881_aneg_done() local
133 bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR); in bcm84881_aneg_done()
134 if (bmsr < 0) in bcm84881_aneg_done()
135 return bmsr; in bcm84881_aneg_done()
138 !!(bmsr & BMSR_ANEGCOMPLETE); in bcm84881_aneg_done()
144 int bmsr, val; in bcm84881_read_status() local
159 bmsr = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_C22 + MII_BMSR); in bcm84881_read_status()
160 if (bmsr < 0) in bcm84881_read_status()
161 return bmsr; in bcm84881_read_status()
164 !!(bmsr & BMSR_ANEGCOMPLETE); in bcm84881_read_status()
[all …]
Dmicrochip_t1.c731 int bmcr, bmsr, ret; in microchip_cable_test_start_common() local
740 bmsr = phy_read(phydev, MII_BMSR); in microchip_cable_test_start_common()
742 if (bmsr < 0) in microchip_cable_test_start_common()
743 return bmsr; in microchip_cable_test_start_common()
755 if (bmsr & BMSR_LSTATUS) in microchip_cable_test_start_common()
Dmotorcomm.c1978 int err, bmsr, changed = 0; in ytphy_utp_config_advert() local
1997 bmsr = __phy_read(phydev, MII_BMSR); in ytphy_utp_config_advert()
1998 if (bmsr < 0) in ytphy_utp_config_advert()
1999 return bmsr; in ytphy_utp_config_advert()
2005 if (!(bmsr & BMSR_ESTATEN)) in ytphy_utp_config_advert()
Dphylink.c3674 u16 bmsr, u16 lpa) in phylink_mii_c22_pcs_decode_state() argument
3676 state->link = !!(bmsr & BMSR_LSTATUS); in phylink_mii_c22_pcs_decode_state()
3677 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in phylink_mii_c22_pcs_decode_state()
3726 int bmsr, lpa; in phylink_mii_c22_pcs_get_state() local
3728 bmsr = mdiodev_read(pcs, MII_BMSR); in phylink_mii_c22_pcs_get_state()
3730 if (bmsr < 0 || lpa < 0) { in phylink_mii_c22_pcs_get_state()
3735 phylink_mii_c22_pcs_decode_state(state, bmsr, lpa); in phylink_mii_c22_pcs_get_state()
/linux-6.12.1/drivers/net/pcs/
Dpcs-lynx.c64 int bmsr; in lynx_pcs_get_state_2500basex() local
66 bmsr = mdiodev_read(pcs, MII_BMSR); in lynx_pcs_get_state_2500basex()
67 if (bmsr < 0) { in lynx_pcs_get_state_2500basex()
72 state->link = !!(bmsr & BMSR_LSTATUS); in lynx_pcs_get_state_2500basex()
73 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in lynx_pcs_get_state_2500basex()
Dpcs-xpcs.c1040 int lpa, bmsr; in xpcs_get_state_c37_1000basex() local
1051 bmsr = xpcs_read(xpcs, MDIO_MMD_VEND2, MII_BMSR); in xpcs_get_state_c37_1000basex()
1052 if (bmsr < 0) in xpcs_get_state_c37_1000basex()
1053 return bmsr; in xpcs_get_state_c37_1000basex()
1066 phylink_mii_c22_pcs_decode_state(state, bmsr, lpa); in xpcs_get_state_c37_1000basex()
/linux-6.12.1/drivers/net/ethernet/ibm/emac/
Dphy.c541 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-6.12.1/drivers/net/ethernet/chelsio/cxgb/
Dmy3126.c49 status = cphy->bmsr ^ val16; in my3126_interrupt_handler()
53 cphy->bmsr = val16; in my3126_interrupt_handler()
181 cphy->bmsr = 0; in my3126_phy_create()
Dcphy.h88 u16 bmsr; member
/linux-6.12.1/drivers/net/ethernet/dlink/
Ddl2k.c1471 __u16 bmsr; in mii_wait_link() local
1479 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_wait_link()
1480 if (bmsr & BMSR_LSTATUS) in mii_wait_link()
1490 __u16 bmsr; in mii_get_media() local
1499 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_get_media()
1501 if (!(bmsr & BMSR_ANEGCOMPLETE)) { in mii_get_media()
1577 __u16 bmsr; in mii_set_media() local
1587 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_set_media()
1592 if (bmsr & BMSR_100FULL) in mii_set_media()
1594 if (bmsr & BMSR_100HALF) in mii_set_media()
[all …]
/linux-6.12.1/drivers/net/dsa/mv88e6xxx/
Dpcs-6352.c164 int oldpage, bmsr, lpa, status; in marvell_c22_pcs_get_state() local
173 bmsr = __mdiodev_read(&mpcs->mdio, MII_BMSR); in marvell_c22_pcs_get_state()
179 bmsr >= 0 && lpa >= 0 && status >= 0) in marvell_c22_pcs_get_state()
180 mv88e6xxx_pcs_decode_state(mpcs->mdio.dev.parent, bmsr, lpa, in marvell_c22_pcs_get_state()
Dserdes.c42 int mv88e6xxx_pcs_decode_state(struct device *dev, u16 bmsr, u16 lpa, in mv88e6xxx_pcs_decode_state() argument
50 if (!(bmsr & BMSR_LSTATUS)) in mv88e6xxx_pcs_decode_state()
54 state->an_complete = !!(bmsr & BMSR_ANEGCOMPLETE); in mv88e6xxx_pcs_decode_state()
Dserdes.h116 int mv88e6xxx_pcs_decode_state(struct device *dev, u16 bmsr, u16 lpa,
Dpcs-639x.c263 u16 bmsr, lpa, status; in mv88e639x_sgmii_pcs_get_state() local
266 err = mv88e639x_read(mpcs, MV88E6390_SGMII_BMSR, &bmsr); in mv88e639x_sgmii_pcs_get_state()
293 mv88e6xxx_pcs_decode_state(mpcs->mdio.dev.parent, bmsr, lpa, status, in mv88e639x_sgmii_pcs_get_state()
/linux-6.12.1/drivers/net/
Dmii.c56 u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; in mii_ethtool_gset() local
80 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_gset()
95 if (bmsr & BMSR_ANEGCOMPLETE) { in mii_ethtool_gset()
146 u16 bmcr, bmsr, ctrl1000 = 0, stat1000 = 0; in mii_ethtool_get_link_ksettings() local
166 bmsr = mii->mdio_read(dev, mii->phy_id, MII_BMSR); in mii_ethtool_get_link_ksettings()
180 if (bmsr & BMSR_ANEGCOMPLETE) { in mii_ethtool_get_link_ksettings()
/linux-6.12.1/drivers/net/dsa/b53/
Db53_serdes.c107 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-6.12.1/drivers/net/ethernet/dec/tulip/
Dmedia.c400 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-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_port.c292 u16 bmsr = 0; in lan966x_port_status_get() local
313 bmsr |= state->link ? BMSR_LSTATUS : 0; in lan966x_port_status_get()
314 bmsr |= BMSR_ANEGCOMPLETE; in lan966x_port_status_get()
317 phylink_mii_c22_pcs_decode_state(state, bmsr, lp_adv); in lan966x_port_status_get()
/linux-6.12.1/drivers/net/ethernet/toshiba/
Dspider_net.c170 u16 bmsr, estat; in spider_net_setup_aneg() local
172 bmsr = spider_net_read_phy(card->netdev, phy->mii_id, MII_BMSR); in spider_net_setup_aneg()
175 if (bmsr & BMSR_10HALF) in spider_net_setup_aneg()
177 if (bmsr & BMSR_10FULL) in spider_net_setup_aneg()
179 if (bmsr & BMSR_100HALF) in spider_net_setup_aneg()
181 if (bmsr & BMSR_100FULL) in spider_net_setup_aneg()
184 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_TFULL)) in spider_net_setup_aneg()
186 if ((bmsr & BMSR_ESTATEN) && (estat & ESTATUS_1000_THALF)) in spider_net_setup_aneg()
/linux-6.12.1/drivers/net/ethernet/sun/
Dniu.c1116 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-6.12.1/drivers/net/ethernet/atheros/alx/
Dhw.c868 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-6.12.1/drivers/net/ethernet/broadcom/
Db44.c515 u32 bmsr, aux; in b44_check_phy() local
532 if (!b44_readphy(bp, MII_BMSR, &bmsr) && in b44_check_phy()
534 (bmsr != 0xffff)) { in b44_check_phy()
545 (bmsr & BMSR_LSTATUS)) { in b44_check_phy()
563 } else if (netif_carrier_ok(bp->dev) && !(bmsr & BMSR_LSTATUS)) { in b44_check_phy()
569 if (bmsr & BMSR_RFAULT) in b44_check_phy()
571 if (bmsr & BMSR_JCD) in b44_check_phy()
Dbnx2.c941 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 …]
/linux-6.12.1/include/linux/
Dphylink.h672 u16 bmsr, u16 lpa);

12