Lines Matching refs:phy_id
284 static int mdio_read(struct net_device *dev, int phy_id, int loc);
285 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value);
911 smc->mii_if.phy_id = (i < 32) ? i : -1; in smc91c92_config()
936 if (smc->mii_if.phy_id != -1) { in smc91c92_config()
938 smc->mii_if.phy_id, j); in smc91c92_config()
985 static int mdio_read(struct net_device *dev, int phy_id, int loc) in mdio_read() argument
988 u_int cmd = (0x06<<10)|(phy_id<<5)|loc; in mdio_read()
1005 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() argument
1008 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; in mdio_write()
1688 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset()
1691 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset()
1694 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset()
1695 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); in smc_reset()
1764 if (smc->mii_if.phy_id < 0) in media_check()
1768 link = mdio_read(dev, smc->mii_if.phy_id, 1); in media_check()
1771 smc->mii_if.phy_id = -1; in media_check()
1777 u_short p = mdio_read(dev, smc->mii_if.phy_id, 5); in media_check()