Home
last modified time | relevance | path

Searched refs:mii_ctl (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c502 u16 mii_ctl; in sundance_probe1() local
670 mii_ctl = 0; in sundance_probe1()
671 mii_ctl |= (np->speed == 100) ? BMCR_SPEED100 : 0; in sundance_probe1()
672 mii_ctl |= (np->mii_if.full_duplex) ? BMCR_FULLDPLX : 0; in sundance_probe1()
673 mdio_write (dev, np->phys[0], MII_BMCR, mii_ctl); in sundance_probe1()
1449 u16 mii_ctl, mii_advertise, mii_lpa; in netdev_error() local
1478 mii_ctl = mdio_read(dev, np->phys[0], MII_BMCR); in netdev_error()
1479 speed = (mii_ctl & BMCR_SPEED100) ? 100 : 10; in netdev_error()
1484 (mii_ctl & BMCR_FULLDPLX) ? in netdev_error()
/openbmc/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.c1155 int mii_ctl; in lan743x_sgmii_config() local
1213 mii_ctl = lan743x_sgmii_read(adapter, MDIO_MMD_VEND2, MII_BMCR); in lan743x_sgmii_config()
1214 if (mii_ctl < 0) in lan743x_sgmii_config()
1215 return mii_ctl; in lan743x_sgmii_config()
1217 mii_ctl |= BMCR_PDOWN; in lan743x_sgmii_config()
1218 ret = lan743x_sgmii_write(adapter, MDIO_MMD_VEND2, MII_BMCR, mii_ctl); in lan743x_sgmii_config()
1227 mii_ctl &= ~BMCR_PDOWN; in lan743x_sgmii_config()
1228 ret = lan743x_sgmii_write(adapter, MDIO_MMD_VEND2, MII_BMCR, mii_ctl); in lan743x_sgmii_config()