Home
last modified time | relevance | path

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

12

/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.c115 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()
Dphy_device.c1829 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()
Dphylink.c2438 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()
Dmarvell.c1912 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/
Dpcs-lynx.c61 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/
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()
/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
/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()
/drivers/net/ethernet/dlink/
Ddl2k.c1475 __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/
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()
/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()
/drivers/net/dsa/mv88e6xxx/
Dserdes.c343 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/
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()
/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.c1610 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/
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()
/drivers/net/ethernet/broadcom/
Db44.c536 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()
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 …]
Dtg3.c4782 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/
Dsc92031.c489 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/
Dyellowfin.c664 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/
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()
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/
De1000.h178 u16 bmsr; /* basic mode status register */ member

12