Lines Matching refs:slave_mii_bus
586 priv->slave_mii_bus = mdiobus_alloc(); in bcm_sf2_mdio_register()
587 if (!priv->slave_mii_bus) { in bcm_sf2_mdio_register()
592 priv->slave_mii_bus->priv = priv; in bcm_sf2_mdio_register()
593 priv->slave_mii_bus->name = "sf2 slave mii"; in bcm_sf2_mdio_register()
594 priv->slave_mii_bus->read = bcm_sf2_sw_mdio_read; in bcm_sf2_mdio_register()
595 priv->slave_mii_bus->write = bcm_sf2_sw_mdio_write; in bcm_sf2_mdio_register()
596 snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "sf2-%d", in bcm_sf2_mdio_register()
598 priv->slave_mii_bus->dev.of_node = dn; in bcm_sf2_mdio_register()
616 ds->slave_mii_bus = priv->slave_mii_bus; in bcm_sf2_mdio_register()
617 priv->slave_mii_bus->parent = ds->dev->parent; in bcm_sf2_mdio_register()
618 priv->slave_mii_bus->phy_mask = ~priv->indir_phy_mask; in bcm_sf2_mdio_register()
645 err = mdiobus_register(priv->slave_mii_bus); in bcm_sf2_mdio_register()
652 mdiobus_free(priv->slave_mii_bus); in bcm_sf2_mdio_register()
662 mdiobus_unregister(priv->slave_mii_bus); in bcm_sf2_mdio_unregister()
663 mdiobus_free(priv->slave_mii_bus); in bcm_sf2_mdio_unregister()