Lines Matching refs:phy_addr
269 static int au1000_mdio_read(struct net_device *dev, int phy_addr, int reg) in au1000_mdio_read() argument
286 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_READ; in au1000_mdio_read()
301 static void au1000_mdio_write(struct net_device *dev, int phy_addr, in au1000_mdio_write() argument
319 MAC_SET_MII_SELECT_PHY(phy_addr) | MAC_MII_WRITE; in au1000_mdio_write()
325 static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) in au1000_mdiobus_read() argument
334 return au1000_mdio_read(dev, phy_addr, regnum); in au1000_mdiobus_read()
337 static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, in au1000_mdiobus_write() argument
347 au1000_mdio_write(dev, phy_addr, regnum, value); in au1000_mdiobus_write()
476 int phy_addr; in au1000_mii_probe() local
481 if (aup->phy_addr) in au1000_mii_probe()
482 phydev = mdiobus_get_phy(aup->mii_bus, aup->phy_addr); in au1000_mii_probe()
491 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) in au1000_mii_probe()
492 if (mdiobus_get_phy(aup->mii_bus, phy_addr)) { in au1000_mii_probe()
493 phydev = mdiobus_get_phy(aup->mii_bus, phy_addr); in au1000_mii_probe()
509 for (phy_addr = 0; phy_addr < PHY_MAX_ADDR; phy_addr++) { in au1000_mii_probe()
512 phy_addr); in au1000_mii_probe()
1190 aup->phy_addr = pd->phy_addr; in au1000_probe()
1219 aup->mii_bus->irq[aup->phy_addr] = aup->phy_irq; in au1000_probe()