Home
last modified time | relevance | path

Searched refs:bmcr (Results 1 – 8 of 8) sorted by relevance

/u-boot/drivers/net/phy/
A Dxilinx_phy.c70 int bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in xilinxphy_startup() local
72 if (bmcr < 0) in xilinxphy_startup()
73 return bmcr; in xilinxphy_startup()
75 if (bmcr & BMCR_FULLDPLX) in xilinxphy_startup()
80 if (bmcr & BMCR_SPEED1000) in xilinxphy_startup()
82 else if (bmcr & BMCR_SPEED100) in xilinxphy_startup()
A Dmicrel_ksz90x1.c363 unsigned bmcr; in ksz9031_config() local
372 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in ksz9031_config()
373 bmcr &= ~(1 << 6); in ksz9031_config()
374 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, bmcr); in ksz9031_config()
472 unsigned bmcr; in ksz9131_config() local
481 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in ksz9131_config()
482 bmcr &= ~(1 << 6); in ksz9131_config()
483 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, bmcr); in ksz9131_config()
A Dphy.c369 u32 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in genphy_parse_link() local
374 if (bmcr & BMCR_FULLDPLX) in genphy_parse_link()
377 if (bmcr & BMCR_SPEED1000) in genphy_parse_link()
379 else if (bmcr & BMCR_SPEED100) in genphy_parse_link()
/u-boot/common/
A Dmiiphyutil.c401 u16 bmcr, anlpar, adv; in miiphy_speed() local
427 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_speed()
432 if (bmcr & BMCR_ANENABLE) { in miiphy_speed()
446 return (bmcr & BMCR_SPEED100) ? _100BASET : _10BASET; in miiphy_speed()
459 u16 bmcr, anlpar, adv; in miiphy_duplex() local
490 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_duplex()
495 if (bmcr & BMCR_ANENABLE) { in miiphy_duplex()
510 return (bmcr & BMCR_FULLDPLX) ? FULL : HALF; in miiphy_duplex()
/u-boot/drivers/net/
A Dftmac110.c126 uint16_t pa, tmp, bmsr, bmcr; in ftmac110_phyqry() local
147 bmcr = mdio_read(dev, chip->phy_addr, MII_BMCR); in ftmac110_phyqry()
154 if (!(bmcr & BMCR_ANENABLE) || (bmsr & BMSR_ANEGCOMPLETE)) in ftmac110_phyqry()
161 if (!(bmcr & BMCR_ANENABLE)) in ftmac110_phyqry()
167 if ((bmcr & BMCR_ANENABLE) && (bmsr & BMSR_ANEGCOMPLETE)) { in ftmac110_phyqry()
179 if (bmcr & BMCR_SPEED100) in ftmac110_phyqry()
183 if (bmcr & BMCR_FULLDPLX) in ftmac110_phyqry()
/u-boot/drivers/usb/eth/
A Dasix.c323 int bmcr; in mii_nway_restart() local
327 bmcr = asix_mdio_read(dev, dev->phy_id, MII_BMCR); in mii_nway_restart()
329 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart()
330 bmcr |= BMCR_ANRESTART; in mii_nway_restart()
331 asix_mdio_write(dev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
A Dsmsc95xx.c334 int bmcr; in mii_nway_restart() local
338 bmcr = smsc95xx_mdio_read(udev, dev->phy_id, MII_BMCR); in mii_nway_restart()
340 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart()
341 bmcr |= BMCR_ANRESTART; in mii_nway_restart()
342 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
A Dr8152.c1037 u16 bmcr, anar, gbcr; in rtl8152_set_speed() local
1051 bmcr = 0; in rtl8152_set_speed()
1054 bmcr = BMCR_SPEED100; in rtl8152_set_speed()
1057 bmcr = BMCR_SPEED1000; in rtl8152_set_speed()
1064 bmcr |= BMCR_FULLDPLX; in rtl8152_set_speed()
1093 bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET; in rtl8152_set_speed()
1100 r8152_mdio_write(tp, MII_BMCR, bmcr); in rtl8152_set_speed()

Completed in 16 milliseconds