slave_mii_bus 866 drivers/net/dsa/b53/b53_common.c return mdiobus_get_phy(ds->slave_mii_bus, port); slave_mii_bus 430 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus = devm_mdiobus_alloc(ds->dev); slave_mii_bus 431 drivers/net/dsa/bcm_sf2.c if (!priv->slave_mii_bus) slave_mii_bus 434 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->priv = priv; slave_mii_bus 435 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->name = "sf2 slave mii"; slave_mii_bus 436 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->read = bcm_sf2_sw_mdio_read; slave_mii_bus 437 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->write = bcm_sf2_sw_mdio_write; slave_mii_bus 438 drivers/net/dsa/bcm_sf2.c snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "sf2-%d", slave_mii_bus 440 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->dev.of_node = dn; slave_mii_bus 458 drivers/net/dsa/bcm_sf2.c ds->slave_mii_bus = priv->slave_mii_bus; slave_mii_bus 459 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->parent = ds->dev->parent; slave_mii_bus 460 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->phy_mask = ~priv->indir_phy_mask; slave_mii_bus 462 drivers/net/dsa/bcm_sf2.c err = mdiobus_register(priv->slave_mii_bus); slave_mii_bus 471 drivers/net/dsa/bcm_sf2.c mdiobus_unregister(priv->slave_mii_bus); slave_mii_bus 102 drivers/net/dsa/bcm_sf2.h struct mii_bus *slave_mii_bus; slave_mii_bus 487 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus = devm_mdiobus_alloc(priv->dev); slave_mii_bus 488 drivers/net/dsa/lantiq_gswip.c if (!ds->slave_mii_bus) slave_mii_bus 491 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->priv = priv; slave_mii_bus 492 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->read = gswip_mdio_rd; slave_mii_bus 493 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->write = gswip_mdio_wr; slave_mii_bus 494 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->name = "lantiq,xrx200-mdio"; slave_mii_bus 495 drivers/net/dsa/lantiq_gswip.c snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", slave_mii_bus 497 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->parent = priv->dev; slave_mii_bus 498 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; slave_mii_bus 500 drivers/net/dsa/lantiq_gswip.c return of_mdiobus_register(ds->slave_mii_bus, mdio_np); slave_mii_bus 1911 drivers/net/dsa/lantiq_gswip.c mdiobus_unregister(priv->ds->slave_mii_bus); slave_mii_bus 1929 drivers/net/dsa/lantiq_gswip.c if (priv->ds->slave_mii_bus) { slave_mii_bus 1930 drivers/net/dsa/lantiq_gswip.c mdiobus_unregister(priv->ds->slave_mii_bus); slave_mii_bus 1931 drivers/net/dsa/lantiq_gswip.c of_node_put(priv->ds->slave_mii_bus->dev.of_node); slave_mii_bus 2652 drivers/net/dsa/mv88e6xxx/chip.c ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip); slave_mii_bus 356 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus = devm_mdiobus_alloc(smi->dev); slave_mii_bus 357 drivers/net/dsa/realtek-smi-core.c if (!smi->slave_mii_bus) { slave_mii_bus 361 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->priv = smi; slave_mii_bus 362 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->name = "SMI slave MII"; slave_mii_bus 363 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->read = realtek_smi_mdio_read; slave_mii_bus 364 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->write = realtek_smi_mdio_write; slave_mii_bus 365 drivers/net/dsa/realtek-smi-core.c snprintf(smi->slave_mii_bus->id, MII_BUS_ID_SIZE, "SMI-%d", slave_mii_bus 367 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->dev.of_node = mdio_np; slave_mii_bus 368 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->parent = smi->dev; slave_mii_bus 369 drivers/net/dsa/realtek-smi-core.c smi->ds->slave_mii_bus = smi->slave_mii_bus; slave_mii_bus 371 drivers/net/dsa/realtek-smi-core.c ret = of_mdiobus_register(smi->slave_mii_bus, mdio_np); slave_mii_bus 374 drivers/net/dsa/realtek-smi-core.c smi->slave_mii_bus->id); slave_mii_bus 466 drivers/net/dsa/realtek-smi-core.c if (smi->slave_mii_bus) slave_mii_bus 467 drivers/net/dsa/realtek-smi-core.c of_node_put(smi->slave_mii_bus->dev.of_node); slave_mii_bus 49 drivers/net/dsa/realtek-smi-core.h struct mii_bus *slave_mii_bus; slave_mii_bus 256 include/net/dsa.h struct mii_bus *slave_mii_bus; slave_mii_bus 398 net/dsa/dsa2.c if (!ds->slave_mii_bus && ds->ops->phy_read) { slave_mii_bus 399 net/dsa/dsa2.c ds->slave_mii_bus = devm_mdiobus_alloc(ds->dev); slave_mii_bus 400 net/dsa/dsa2.c if (!ds->slave_mii_bus) { slave_mii_bus 407 net/dsa/dsa2.c err = mdiobus_register(ds->slave_mii_bus); slave_mii_bus 427 net/dsa/dsa2.c if (ds->slave_mii_bus && ds->ops->phy_read) slave_mii_bus 428 net/dsa/dsa2.c mdiobus_unregister(ds->slave_mii_bus); slave_mii_bus 50 net/dsa/slave.c ds->slave_mii_bus->priv = (void *)ds; slave_mii_bus 51 net/dsa/slave.c ds->slave_mii_bus->name = "dsa slave smi"; slave_mii_bus 52 net/dsa/slave.c ds->slave_mii_bus->read = dsa_slave_phy_read; slave_mii_bus 53 net/dsa/slave.c ds->slave_mii_bus->write = dsa_slave_phy_write; slave_mii_bus 54 net/dsa/slave.c snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", slave_mii_bus 56 net/dsa/slave.c ds->slave_mii_bus->parent = ds->dev; slave_mii_bus 57 net/dsa/slave.c ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; slave_mii_bus 1280 net/dsa/slave.c slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); slave_mii_bus 1323 net/dsa/slave.c if (ret == -ENODEV && ds->slave_mii_bus) {