Lines Matching refs:mdio
27 * @mdio: pointer to mii_bus structure
33 int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
41 mdio->phy_mask = ~0;
44 if (mdio->irq)
46 mdio->irq[i] = PHY_POLL;
49 rc = mdiobus_register(mdio);
61 dev_err(&mdio->dev, "%s has invalid PHY address\n",
66 if (mdio->irq) {
67 mdio->irq[*addr] = irq_of_parse_and_map(child, 0);
68 if (!mdio->irq[*addr])
69 mdio->irq[*addr] = PHY_POLL;
72 phy = get_phy_device(mdio, be32_to_cpup(addr));
74 dev_err(&mdio->dev, "error probing PHY at address %i\n",
93 dev_dbg(&mdio->dev, "registered phy %s at address %i\n",