Lines Matching refs:bmcr
1455 __u16 bmcr = mii_read (dev, phy_addr, MII_BMCR); in mii_get_media() local
1456 switch (bmcr & (BMCR_SPEED100 | BMCR_SPEED1000)) { in mii_get_media()
1466 if (bmcr & BMCR_FULLDPLX) { in mii_get_media()
1488 __u16 bmcr; in mii_set_media() local
1524 bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET; in mii_set_media()
1525 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1535 bmcr = mii_read (dev, phy_addr, MII_BMCR); in mii_set_media()
1536 bmcr |= BMCR_RESET; in mii_set_media()
1537 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1540 bmcr = 0x1940; /* must be 0x1940 */ in mii_set_media()
1541 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1548 bmcr = BMCR_PDOWN; in mii_set_media()
1550 bmcr |= BMCR_SPEED100; in mii_set_media()
1556 bmcr |= BMCR_FULLDPLX; in mii_set_media()
1567 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1609 __u16 bmcr = mii_read (dev, phy_addr, PCS_BMCR); in mii_get_media_pcs() local
1611 if (bmcr & BMCR_FULLDPLX) { in mii_get_media_pcs()
1632 __u16 bmcr; in mii_set_media_pcs() local
1656 bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET; in mii_set_media_pcs()
1657 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()
1662 bmcr = BMCR_RESET; in mii_set_media_pcs()
1663 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()
1666 bmcr = BMCR_FULLDPLX; in mii_set_media_pcs()
1669 bmcr = 0; in mii_set_media_pcs()
1672 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()