Lines Matching refs:phy_id
285 static int mdio_read(struct net_device *dev, int phy_id, int loc);
286 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value);
914 smc->mii_if.phy_id = (i < 32) ? i : -1; in smc91c92_config()
939 if (smc->mii_if.phy_id != -1) { in smc91c92_config()
941 smc->mii_if.phy_id, j); in smc91c92_config()
988 static int mdio_read(struct net_device *dev, int phy_id, int loc) in mdio_read() argument
991 u_int cmd = (0x06<<10)|(phy_id<<5)|loc; in mdio_read()
1008 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value) in mdio_write() argument
1011 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value; in mdio_write()
1692 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000); in smc_reset()
1695 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1); in smc_reset()
1698 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000); in smc_reset()
1699 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200); in smc_reset()
1768 if (smc->mii_if.phy_id < 0) in media_check()
1772 link = mdio_read(dev, smc->mii_if.phy_id, 1); in media_check()
1775 smc->mii_if.phy_id = -1; in media_check()
1781 u_short p = mdio_read(dev, smc->mii_if.phy_id, 5); in media_check()