Lines Matching refs:slave_mii_bus
627 priv->slave_mii_bus = mdiobus_alloc(); in bcm_sf2_mdio_register()
628 if (!priv->slave_mii_bus) { in bcm_sf2_mdio_register()
633 priv->slave_mii_bus->priv = priv; in bcm_sf2_mdio_register()
634 priv->slave_mii_bus->name = "sf2 slave mii"; in bcm_sf2_mdio_register()
635 priv->slave_mii_bus->read = bcm_sf2_sw_mdio_read; in bcm_sf2_mdio_register()
636 priv->slave_mii_bus->write = bcm_sf2_sw_mdio_write; in bcm_sf2_mdio_register()
637 snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "sf2-%d", in bcm_sf2_mdio_register()
639 priv->slave_mii_bus->dev.of_node = dn; in bcm_sf2_mdio_register()
657 ds->slave_mii_bus = priv->slave_mii_bus; in bcm_sf2_mdio_register()
658 priv->slave_mii_bus->parent = ds->dev->parent; in bcm_sf2_mdio_register()
659 priv->slave_mii_bus->phy_mask = ~priv->indir_phy_mask; in bcm_sf2_mdio_register()
686 err = mdiobus_register(priv->slave_mii_bus); in bcm_sf2_mdio_register()
688 mdiobus_free(priv->slave_mii_bus); in bcm_sf2_mdio_register()
697 mdiobus_unregister(priv->slave_mii_bus); in bcm_sf2_mdio_unregister()
698 mdiobus_free(priv->slave_mii_bus); in bcm_sf2_mdio_unregister()