Home
last modified time | relevance | path

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

/third_party/uboot/u-boot-2020.01/drivers/net/phy/
Dxilinx_phy.c69 int bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in xilinxphy_startup() local
71 if (bmcr < 0) in xilinxphy_startup()
72 return bmcr; in xilinxphy_startup()
74 if (bmcr & BMCR_FULLDPLX) in xilinxphy_startup()
79 if (bmcr & BMCR_SPEED1000) in xilinxphy_startup()
81 else if (bmcr & BMCR_SPEED100) in xilinxphy_startup()
Dmicrel_ksz90x1.c358 unsigned bmcr; in ksz9031_config() local
367 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in ksz9031_config()
368 bmcr &= ~(1 << 6); in ksz9031_config()
369 phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, bmcr); in ksz9031_config()
Dphy.c365 u32 bmcr = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR); in genphy_parse_link() local
370 if (bmcr & BMCR_FULLDPLX) in genphy_parse_link()
373 if (bmcr & BMCR_SPEED1000) in genphy_parse_link()
375 else if (bmcr & BMCR_SPEED100) in genphy_parse_link()
/third_party/uboot/u-boot-2020.01/common/
Dmiiphyutil.c399 u16 bmcr, anlpar, adv; in miiphy_speed() local
425 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_speed()
430 if (bmcr & BMCR_ANENABLE) { in miiphy_speed()
444 return (bmcr & BMCR_SPEED100) ? _100BASET : _10BASET; in miiphy_speed()
457 u16 bmcr, anlpar, adv; in miiphy_duplex() local
488 if (miiphy_read(devname, addr, MII_BMCR, &bmcr)) { in miiphy_duplex()
493 if (bmcr & BMCR_ANENABLE) { in miiphy_duplex()
508 return (bmcr & BMCR_FULLDPLX) ? FULL : HALF; in miiphy_duplex()
/third_party/uboot/u-boot-2020.01/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()
/third_party/uboot/u-boot-2020.01/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.c877 u16 bmcr, anar, gbcr; in rtl8152_set_speed() local
891 bmcr = 0; in rtl8152_set_speed()
894 bmcr = BMCR_SPEED100; in rtl8152_set_speed()
897 bmcr = BMCR_SPEED1000; in rtl8152_set_speed()
904 bmcr |= BMCR_FULLDPLX; in rtl8152_set_speed()
933 bmcr = BMCR_ANENABLE | BMCR_ANRESTART; in rtl8152_set_speed()
940 r8152_mdio_write(tp, MII_BMCR, bmcr); in rtl8152_set_speed()
/third_party/FreeBSD/sys/dev/usb/net/
Dif_axe.c280 uint16_t bmcr; in axe_setmedium() local
284 bmcr = axe_miibus_readreg(sc, 0); in axe_setmedium()
286 if (bmcr & 0x2000) { /* 100Mbps */ in axe_setmedium()
291 if (bmcr & 0x100) { /* full-duplex */ in axe_setmedium()