Lines Matching refs:slave_mii_bus
513 ds->slave_mii_bus = mdiobus_alloc(); in gswip_mdio()
514 if (!ds->slave_mii_bus) in gswip_mdio()
517 ds->slave_mii_bus->priv = priv; in gswip_mdio()
518 ds->slave_mii_bus->read = gswip_mdio_rd; in gswip_mdio()
519 ds->slave_mii_bus->write = gswip_mdio_wr; in gswip_mdio()
520 ds->slave_mii_bus->name = "lantiq,xrx200-mdio"; in gswip_mdio()
521 snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", in gswip_mdio()
523 ds->slave_mii_bus->parent = priv->dev; in gswip_mdio()
524 ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; in gswip_mdio()
526 err = of_mdiobus_register(ds->slave_mii_bus, mdio_np); in gswip_mdio()
528 mdiobus_free(ds->slave_mii_bus); in gswip_mdio()
2200 mdiobus_unregister(priv->ds->slave_mii_bus); in gswip_probe()
2201 mdiobus_free(priv->ds->slave_mii_bus); in gswip_probe()
2223 if (priv->ds->slave_mii_bus) { in gswip_remove()
2224 mdiobus_unregister(priv->ds->slave_mii_bus); in gswip_remove()
2225 of_node_put(priv->ds->slave_mii_bus->dev.of_node); in gswip_remove()
2226 mdiobus_free(priv->ds->slave_mii_bus); in gswip_remove()