Lines Matching refs:mdio
19 struct mii_bus *mdio; member
66 priv->mdio = mdiobus_alloc(); in ax88172a_init_mdio()
67 if (!priv->mdio) { in ax88172a_init_mdio()
72 priv->mdio->priv = (void *)dev; in ax88172a_init_mdio()
73 priv->mdio->read = &asix_mdio_bus_read; in ax88172a_init_mdio()
74 priv->mdio->write = &asix_mdio_bus_write; in ax88172a_init_mdio()
75 priv->mdio->name = "Asix MDIO Bus"; in ax88172a_init_mdio()
77 snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "usb-%03d:%03d", in ax88172a_init_mdio()
80 ret = mdiobus_register(priv->mdio); in ax88172a_init_mdio()
86 netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id); in ax88172a_init_mdio()
90 mdiobus_free(priv->mdio); in ax88172a_init_mdio()
98 netdev_info(dev->net, "deregistering mdio bus %s\n", priv->mdio->id); in ax88172a_remove_mdio()
99 mdiobus_unregister(priv->mdio); in ax88172a_remove_mdio()
100 mdiobus_free(priv->mdio); in ax88172a_remove_mdio()
310 priv->mdio->id, priv->phy_addr); in ax88172a_reset()