Lines Matching refs:mdiobus
188 priv->mdiobus = mdio_alloc(); in lan7x_phylib_register()
189 if (!priv->mdiobus) { in lan7x_phylib_register()
193 priv->mdiobus->read = lan7x_phylib_mdio_read; in lan7x_phylib_register()
194 priv->mdiobus->write = lan7x_phylib_mdio_write; in lan7x_phylib_register()
195 sprintf(priv->mdiobus->name, in lan7x_phylib_register()
197 priv->mdiobus->priv = (void *)udev; in lan7x_phylib_register()
199 ret = mdio_register(priv->mdiobus); in lan7x_phylib_register()
202 free(priv->mdiobus); in lan7x_phylib_register()
213 priv->phydev = phy_connect(priv->mdiobus, dev->phy_id, in lan7x_eth_phylib_connect()
495 mdio_unregister(priv->mdiobus); in lan7x_eth_remove()
496 mdio_free(priv->mdiobus); in lan7x_eth_remove()