/freebsd-11.0-release/sys/dev/mii/ |
H A D | ciphy.c | 232 int bmsr, bmcr; local 242 bmcr = PHY_READ(sc, CIPHY_MII_BMCR); 244 if (bmcr & CIPHY_BMCR_LOOP) 247 if (bmcr & CIPHY_BMCR_AUTOEN) {
|
H A D | ip1000phy.c | 221 uint32_t bmsr, bmcr, stat; local 231 bmcr = PHY_READ(sc, IP1000PHY_MII_BMCR); 232 if ((bmcr & IP1000PHY_BMCR_LOOP) != 0) 235 if ((bmcr & IP1000PHY_BMCR_AUTOEN) != 0) {
|
H A D | brgphy.c | 429 int bmcr = 0, gig; local 436 bmcr = BRGPHY_S1000; 439 bmcr = BRGPHY_S100; 443 bmcr = BRGPHY_S10; 448 bmcr |= BRGPHY_BMCR_FDX; 462 PHY_WRITE(sc, BRGPHY_MII_BMCR, bmcr); 473 bmcr | BRGPHY_BMCR_AUTOEN | BRGPHY_BMCR_STARTNEG); 487 int aux, bmcr, bmsr, val, xstat; local 494 bmcr = PHY_READ(sc, BRGPHY_MII_BMCR); 496 if (bmcr [all...] |
H A D | rgephy.c | 308 int bmsr, bmcr; local 318 bmcr = PHY_READ(sc, RGEPHY_MII_BMCR); 319 if (bmcr & RGEPHY_BMCR_ISO) { 325 if (bmcr & RGEPHY_BMCR_LOOP) 328 if (bmcr & RGEPHY_BMCR_AUTOEN) {
|
H A D | e1000phy.c | 413 int bmcr, bmsr, ssr; local 419 bmcr = PHY_READ(sc, E1000_CR); 425 if (bmcr & E1000_CR_LOOPBACK) 428 if ((bmcr & E1000_CR_AUTO_NEG_ENABLE) != 0 &&
|
H A D | mii_physubr.c | 125 int bmcr, anar, gtcr; local 209 bmcr = mii_media_table[index].mm_bmcr; 234 PHY_WRITE(sc, MII_BMCR, bmcr);
|
/freebsd-11.0-release/sys/dev/my/ |
H A D | if_my.c | 660 u_int16_t bmcr; local 670 bmcr = my_phy_readreg(sc, PHY_BMCR); 671 bmcr &= ~PHY_BMCR_AUTONEGENBL; 672 my_phy_writereg(sc, PHY_BMCR, bmcr); 675 bmcr = my_phy_readreg(sc, PHY_BMCR); 676 bmcr &= ~(PHY_BMCR_AUTONEGENBL | PHY_BMCR_SPEEDSEL | PHY_BMCR_1000 | 682 bmcr &= ~PHY_BMCR_SPEEDSEL; 683 bmcr &= ~PHY_BMCR_DUPLEX; 684 bmcr |= PHY_BMCR_1000; 689 bmcr | 718 my_setcfg(struct my_softc * sc, int bmcr) argument [all...] |
/freebsd-11.0-release/sys/dev/usb/net/ |
H A D | if_rue.c | 423 uint16_t bmcr; 432 bmcr = rue_csr_read_2(sc, RUE_BMCR); 435 bmcr |= RUE_BMCR_SPD_SET; 437 bmcr &= ~RUE_BMCR_SPD_SET; 440 bmcr |= RUE_BMCR_DUPLEX; 442 bmcr &= ~RUE_BMCR_DUPLEX; 444 rue_csr_write_2(sc, RUE_BMCR, bmcr);
|
H A D | if_smsc.c | 1292 int bmcr; local 1304 bmcr = smsc_miibus_readreg(sc->sc_ue.ue_dev, sc->sc_phyno, MII_BMCR); 1305 } while ((bmcr & MII_BMCR) && ((ticks - start_ticks) < max_ticks)); 1324 bmcr = smsc_miibus_readreg(sc->sc_ue.ue_dev, sc->sc_phyno, MII_BMCR); 1325 bmcr |= BMCR_STARTNEG; 1326 smsc_miibus_writereg(sc->sc_ue.ue_dev, sc->sc_phyno, MII_BMCR, bmcr);
|
/freebsd-11.0-release/sys/dev/altera/atse/ |
H A D | if_atse.c | 296 pxx_write_2(struct atse_softc *sc, bus_addr_t bmcr, uint32_t reg, uint16_t val, argument 303 "atse_mem_res", reg, (bmcr + reg) * 4, val4); 304 bus_write_4(sc->atse_mem_res, (bmcr + reg) * 4, val4); 308 pxx_read_2(struct atse_softc *sc, bus_addr_t bmcr, uint32_t reg, const char *f, argument 314 val4 = bus_read_4(sc->atse_mem_res, (bmcr + reg) * 4); 317 "atse_mem_res", reg, (bmcr + reg) * 4, val);
|
/freebsd-11.0-release/sys/dev/xe/ |
H A D | if_xe.c | 990 uint16_t bmcr, bmsr, anar, lpar; local 1052 bmcr = xe_phy_readreg(scp, PHY_BMCR); 1053 bmcr &= ~(PHY_BMCR_AUTONEGENBL); 1054 xe_phy_writereg(scp, PHY_BMCR, bmcr); 1060 bmcr |= PHY_BMCR_AUTONEGENBL | 1062 xe_phy_writereg(scp, PHY_BMCR, bmcr);
|
/freebsd-11.0-release/sys/dev/txp/ |
H A D | if_txp.c | 2599 uint16_t bmsr, bmcr, anar, anlpar; local 2616 &bmcr, NULL, NULL, TXP_CMD_WAIT)) 2631 if (bmcr & BMCR_ISO) { 2637 if (bmcr & BMCR_LOOP) 2640 if (bmcr & BMCR_AUTOEN) {
|
/freebsd-11.0-release/sys/dev/jme/ |
H A D | if_jme.c | 3389 uint16_t bmcr; local 3391 bmcr = jme_miibus_readreg(sc->jme_dev, sc->jme_phyaddr, MII_BMCR); 3392 bmcr &= ~BMCR_PDOWN; 3393 jme_miibus_writereg(sc->jme_dev, sc->jme_phyaddr, MII_BMCR, bmcr);
|