Home
last modified time | relevance | path

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

/Linux-v5.4/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()
Dphy_device.c1567 int err, bmsr, changed = 0; in genphy_config_advert() local
1586 bmsr = phy_read(phydev, MII_BMSR); in genphy_config_advert()
1587 if (bmsr < 0) in genphy_config_advert()
1588 return bmsr; in genphy_config_advert()
1594 if (!(bmsr & BMSR_ESTATEN)) in genphy_config_advert()
/Linux-v5.4/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-v5.4/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.h97 u16 bmsr; member
/Linux-v5.4/drivers/net/dsa/b53/
Db53_serdes.c103 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()
/Linux-v5.4/drivers/net/ethernet/dlink/
Ddl2k.c1483 __u16 bmsr; in mii_wait_link() local
1491 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_wait_link()
1492 if (bmsr & BMSR_LSTATUS) in mii_wait_link()
1502 __u16 bmsr; in mii_get_media() local
1511 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_get_media()
1513 if (!(bmsr & BMSR_ANEGCOMPLETE)) { in mii_get_media()
1589 __u16 bmsr; in mii_set_media() local
1599 bmsr = mii_read (dev, phy_addr, MII_BMSR); in mii_set_media()
1604 if (bmsr & BMSR_100FULL) in mii_set_media()
1606 if (bmsr & BMSR_100HALF) in mii_set_media()
[all …]
Dsundance.c832 int bmsr; in mdio_wait_link() local
840 bmsr = mdio_read(dev, phy_id, MII_BMSR); in mdio_wait_link()
841 if (bmsr & 0x0004) in mdio_wait_link()
/Linux-v5.4/drivers/net/
Dmii.c58 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()
/Linux-v5.4/drivers/net/ethernet/dec/tulip/
Dmedia.c405 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()
/Linux-v5.4/drivers/net/ethernet/toshiba/
Dspider_net.c168 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()
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c1097 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 …]
Dcassini.c1622 static int cas_mii_link_check(struct cas *cp, const u16 bmsr) in cas_mii_link_check() argument
1626 if (bmsr & BMSR_LSTATUS) { in cas_mii_link_check()
1682 u16 bmsr; in cas_mif_interrupt() local
1688 bmsr = CAS_VAL(MIF_STATUS_POLL_DATA, stat); in cas_mif_interrupt()
1689 return cas_mii_link_check(cp, bmsr); in cas_mif_interrupt()
4126 u16 bmsr; in cas_link_timer() local
4128 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer()
4134 bmsr = cas_phy_read(cp, MII_BMSR); in cas_link_timer()
4137 reset = cas_mii_link_check(cp, bmsr); in cas_link_timer()
/Linux-v5.4/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-v5.4/drivers/net/ethernet/broadcom/
Db44.c541 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()
Dbnx2.c947 u32 bmsr; in bnx2_report_fw_link() local
981 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link()
982 bnx2_read_phy(bp, bp->mii_bmsr, &bmsr); in bnx2_report_fw_link()
984 if (!(bmsr & BMSR_ANEGCOMPLETE) || in bnx2_report_fw_link()
1560 u32 bmsr; in bnx2_set_link() local
1574 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link()
1575 bnx2_read_phy(bp, bp->mii_bmsr1, &bmsr); in bnx2_set_link()
1594 bmsr |= BMSR_LSTATUS; in bnx2_set_link()
1596 bmsr &= ~BMSR_LSTATUS; in bnx2_set_link()
1599 if (bmsr & BMSR_LSTATUS) { in bnx2_set_link()
[all …]
Dtg3.c4787 u32 bmsr, val; in tg3_setup_copper_phy() local
4810 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4811 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
4812 !(bmsr & BMSR_LSTATUS)) in tg3_setup_copper_phy()
4819 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4820 if (tg3_readphy(tp, MII_BMSR, &bmsr) || in tg3_setup_copper_phy()
4822 bmsr = 0; in tg3_setup_copper_phy()
4824 if (!(bmsr & BMSR_LSTATUS)) { in tg3_setup_copper_phy()
4829 tg3_readphy(tp, MII_BMSR, &bmsr); in tg3_setup_copper_phy()
4832 if (!tg3_readphy(tp, MII_BMSR, &bmsr) && in tg3_setup_copper_phy()
[all …]
/Linux-v5.4/drivers/net/ethernet/silan/
Dsc92031.c488 u16 bmsr; in _sc92031_check_media() local
490 bmsr = _sc92031_mii_read(port_base, MII_BMSR); in _sc92031_check_media()
492 if (bmsr & BMSR_LSTATUS) { in _sc92031_check_media()
/Linux-v5.4/drivers/net/ethernet/packetengines/
Dyellowfin.c659 int bmsr = mdio_read(ioaddr, yp->phys[0], MII_BMSR); in yellowfin_timer() local
664 yp->phys[0], bmsr, lpa); in yellowfin_timer()
670 if (bmsr & BMSR_LSTATUS) in yellowfin_timer()
/Linux-v5.4/drivers/net/ethernet/
Djme.c387 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()
2933 u16 bmcr, bmsr; in jme_init_one() local
3086 bmsr = jme_mdio_read(netdev, i, MII_BMSR); in jme_init_one()
3087 if (bmcr != 0xFFFFU && (bmcr != 0 || bmsr != 0)) { in jme_init_one()
/Linux-v5.4/drivers/net/ethernet/intel/e1000e/
De1000.h177 u16 bmsr; /* basic mode status register */ member
Dnetdev.c5040 ret_val |= e1e_rphy(hw, MII_BMSR, &phy->bmsr); in e1000_phy_read_status()
5054 phy->bmsr = (BMSR_100FULL | BMSR_100HALF | BMSR_10FULL | in e1000_phy_read_status()
6089 data->val_out = adapter->phy_regs.bmsr; in e1000_mii_ioctl()
/Linux-v5.4/drivers/net/ethernet/natsemi/
Dnatsemi.c1650 u16 bmsr; in check_link() local
1661 bmsr = mdio_read(dev, MII_BMSR); in check_link()
1663 if (!(bmsr & BMSR_LSTATUS)) { in check_link()
1682 if (bmsr & BMSR_ANEGCOMPLETE) { in check_link()