Lines Matching refs:bmcr
1546 __u16 bmcr = mii_read (dev, phy_addr, MII_BMCR); in mii_get_media() local
1547 switch (bmcr & (BMCR_SPEED100 | BMCR_SPEED1000)) { in mii_get_media()
1557 if (bmcr & BMCR_FULLDPLX) { in mii_get_media()
1579 __u16 bmcr; in mii_set_media() local
1615 bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET; in mii_set_media()
1616 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1626 bmcr = mii_read (dev, phy_addr, MII_BMCR); in mii_set_media()
1627 bmcr |= BMCR_RESET; in mii_set_media()
1628 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1631 bmcr = 0x1940; /* must be 0x1940 */ in mii_set_media()
1632 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1639 bmcr = BMCR_PDOWN; in mii_set_media()
1641 bmcr |= BMCR_SPEED100; in mii_set_media()
1647 bmcr |= BMCR_FULLDPLX; in mii_set_media()
1658 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media()
1700 __u16 bmcr = mii_read (dev, phy_addr, PCS_BMCR); in mii_get_media_pcs() local
1702 if (bmcr & BMCR_FULLDPLX) { in mii_get_media_pcs()
1723 __u16 bmcr; in mii_set_media_pcs() local
1747 bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET; in mii_set_media_pcs()
1748 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()
1753 bmcr = BMCR_RESET; in mii_set_media_pcs()
1754 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()
1757 bmcr = BMCR_FULLDPLX; in mii_set_media_pcs()
1760 bmcr = 0; in mii_set_media_pcs()
1763 mii_write (dev, phy_addr, MII_BMCR, bmcr); in mii_set_media_pcs()