Home
last modified time | relevance | path

Searched refs:mdiobus (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/eth/
H A Dlan7x.c188 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()
[all …]
H A Dlan7x.h114 struct mii_dev *mdiobus; member