Home
last modified time | relevance | path

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

/external/u-boot/drivers/net/phy/
Dxilinx_phy.c71 int bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in xilinxphy_startup() local
73 if (bmcr < 0) in xilinxphy_startup()
74 return bmcr; in xilinxphy_startup()
76 if (bmcr & BMCR_FULLDPLX) in xilinxphy_startup()
81 if (bmcr & BMCR_SPEED1000) in xilinxphy_startup()
83 else if (bmcr & BMCR_SPEED100) in xilinxphy_startup()
Dmicrel_ksz90x1.c345 unsigned bmcr; in ksz9031_config() local
354 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in ksz9031_config()
355 bmcr &= ~(1 << 6); in ksz9031_config()
356 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, bmcr); in ksz9031_config()
Dphy.c367 u32 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in genphy_parse_link() local
372 if (bmcr & BMCR_FULLDPLX) in genphy_parse_link()
375 if (bmcr & BMCR_SPEED1000) in genphy_parse_link()
377 else if (bmcr & BMCR_SPEED100) in genphy_parse_link()
/external/u-boot/common/
Dmiiphyutil.c394 u16 bmcr, anlpar, adv; in miiphy_speed() local
420 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_speed()
425 if (bmcr & BMCR_ANENABLE) { in miiphy_speed()
439 return (bmcr & BMCR_SPEED100) ? _100BASET : _10BASET; in miiphy_speed()
452 u16 bmcr, anlpar, adv; in miiphy_duplex() local
483 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_duplex()
488 if (bmcr & BMCR_ANENABLE) { in miiphy_duplex()
503 return (bmcr & BMCR_FULLDPLX) ? FULL : HALF; in miiphy_duplex()
/external/u-boot/drivers/net/
Dftmac110.c124 uint16_t pa, tmp, bmsr, bmcr; in ftmac110_phyqry() local
145 bmcr = mdio_read(dev, chip->phy_addr, MII_BMCR); in ftmac110_phyqry()
152 if (!(bmcr & BMCR_ANENABLE) || (bmsr & BMSR_ANEGCOMPLETE)) in ftmac110_phyqry()
159 if (!(bmcr & BMCR_ANENABLE)) in ftmac110_phyqry()
165 if ((bmcr & BMCR_ANENABLE) && (bmsr & BMSR_ANEGCOMPLETE)) { in ftmac110_phyqry()
177 if (bmcr & BMCR_SPEED100) in ftmac110_phyqry()
181 if (bmcr & BMCR_FULLDPLX) in ftmac110_phyqry()
/external/u-boot/drivers/usb/eth/
Dasix.c320 int bmcr; in mii_nway_restart() local
324 bmcr = asix_mdio_read(dev, dev->phy_id, MII_BMCR); in mii_nway_restart()
326 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart()
327 bmcr |= BMCR_ANRESTART; in mii_nway_restart()
328 asix_mdio_write(dev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
Dsmsc95xx.c331 int bmcr; in mii_nway_restart() local
335 bmcr = smsc95xx_mdio_read(udev, dev->phy_id, MII_BMCR); in mii_nway_restart()
337 if (bmcr & BMCR_ANENABLE) { in mii_nway_restart()
338 bmcr |= BMCR_ANRESTART; in mii_nway_restart()
339 smsc95xx_mdio_write(udev, dev->phy_id, MII_BMCR, bmcr); in mii_nway_restart()
Dr8152.c878 u16 bmcr, anar, gbcr; in rtl8152_set_speed() local
892 bmcr = 0; in rtl8152_set_speed()
895 bmcr = BMCR_SPEED100; in rtl8152_set_speed()
898 bmcr = BMCR_SPEED1000; in rtl8152_set_speed()
905 bmcr |= BMCR_FULLDPLX; in rtl8152_set_speed()
934 bmcr = BMCR_ANENABLE | BMCR_ANRESTART; in rtl8152_set_speed()
941 r8152_mdio_write(tp, MII_BMCR, bmcr); in rtl8152_set_speed()