Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/dlink/
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()
/Linux-v6.6/drivers/net/ethernet/microchip/
Dlan743x_main.c1153 int mii_ctl; in lan743x_sgmii_config() local
1211 mii_ctl = lan743x_sgmii_read(adapter, MDIO_MMD_VEND2, MII_BMCR); in lan743x_sgmii_config()
1212 if (mii_ctl < 0) in lan743x_sgmii_config()
1213 return mii_ctl; in lan743x_sgmii_config()
1215 mii_ctl |= BMCR_PDOWN; in lan743x_sgmii_config()
1216 ret = lan743x_sgmii_write(adapter, MDIO_MMD_VEND2, MII_BMCR, mii_ctl); in lan743x_sgmii_config()
1225 mii_ctl &= ~BMCR_PDOWN; in lan743x_sgmii_config()
1226 ret = lan743x_sgmii_write(adapter, MDIO_MMD_VEND2, MII_BMCR, mii_ctl); in lan743x_sgmii_config()