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;
939 if (smc->mii_if.phy_id != -1) {
941 smc->mii_if.phy_id, j);
988 static int mdio_read(struct net_device *dev, int phy_id, int loc)
991 u_int cmd = (0x06<<10)|(phy_id<<5)|loc;
1008 static void mdio_write(struct net_device *dev, int phy_id, int loc, int value)
1011 u_int cmd = (0x05<<28)|(phy_id<<23)|(loc<<18)|(1<<17)|value;
1692 mdio_write(dev, smc->mii_if.phy_id, 0, 0x8000);
1695 mdio_write(dev, smc->mii_if.phy_id, 4, 0x01e1);
1698 mdio_write(dev, smc->mii_if.phy_id, 0, 0x0000);
1699 mdio_write(dev, smc->mii_if.phy_id, 0, 0x1200);
1768 if (smc->mii_if.phy_id < 0)
1772 link = mdio_read(dev, smc->mii_if.phy_id, 1);
1775 smc->mii_if.phy_id = -1;
1781 u_short p = mdio_read(dev, smc->mii_if.phy_id, 5);