Searched refs:slave_mii_bus (Results 1 – 9 of 9) sorted by relevance
/drivers/net/dsa/ |
D | realtek-smi-core.c | 356 smi->slave_mii_bus = devm_mdiobus_alloc(smi->dev); in realtek_smi_setup_mdio() 357 if (!smi->slave_mii_bus) { in realtek_smi_setup_mdio() 361 smi->slave_mii_bus->priv = smi; in realtek_smi_setup_mdio() 362 smi->slave_mii_bus->name = "SMI slave MII"; in realtek_smi_setup_mdio() 363 smi->slave_mii_bus->read = realtek_smi_mdio_read; in realtek_smi_setup_mdio() 364 smi->slave_mii_bus->write = realtek_smi_mdio_write; in realtek_smi_setup_mdio() 365 snprintf(smi->slave_mii_bus->id, MII_BUS_ID_SIZE, "SMI-%d", in realtek_smi_setup_mdio() 367 smi->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio() 368 smi->slave_mii_bus->parent = smi->dev; in realtek_smi_setup_mdio() 369 smi->ds->slave_mii_bus = smi->slave_mii_bus; in realtek_smi_setup_mdio() [all …]
|
D | bcm_sf2.c | 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() [all …]
|
D | lantiq_gswip.c | 502 ds->slave_mii_bus = mdiobus_alloc(); in gswip_mdio() 503 if (!ds->slave_mii_bus) in gswip_mdio() 506 ds->slave_mii_bus->priv = priv; in gswip_mdio() 507 ds->slave_mii_bus->read = gswip_mdio_rd; in gswip_mdio() 508 ds->slave_mii_bus->write = gswip_mdio_wr; in gswip_mdio() 509 ds->slave_mii_bus->name = "lantiq,xrx200-mdio"; in gswip_mdio() 510 snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", in gswip_mdio() 512 ds->slave_mii_bus->parent = priv->dev; in gswip_mdio() 513 ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; in gswip_mdio() 515 err = of_mdiobus_register(ds->slave_mii_bus, mdio_np); in gswip_mdio() [all …]
|
D | realtek-smi-core.h | 52 struct mii_bus *slave_mii_bus; member
|
D | bcm_sf2.h | 111 struct mii_bus *slave_mii_bus; member
|
D | mt7530.c | 1992 ds->slave_mii_bus->irq[p] = irq; in mt7530_setup_mdio_irq() 2079 ds->slave_mii_bus = bus; in mt7530_setup_mdio()
|
D | qca8k.c | 800 ds->slave_mii_bus = bus; in qca8k_mdio_register()
|
/drivers/net/dsa/b53/ |
D | b53_common.c | 961 return mdiobus_get_phy(ds->slave_mii_bus, port); in b53_get_phy_device()
|
/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 3218 ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_setup()
|