/third_party/uboot/u-boot-2020.01/drivers/net/phy/ |
D | xilinx_phy.c | 69 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()
|
D | micrel_ksz90x1.c | 358 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()
|
D | phy.c | 365 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/ |
D | miiphyutil.c | 399 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/ |
D | ftmac110.c | 124 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/ |
D | asix.c | 320 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()
|
D | smsc95xx.c | 331 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()
|
D | r8152.c | 877 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/ |
D | if_axe.c | 280 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()
|