Searched refs:slave_mii_bus (Results 1 – 13 of 13) sorted by relevance
/linux-6.1.9/drivers/net/dsa/realtek/ |
D | realtek-smi.c | 382 priv->slave_mii_bus = devm_mdiobus_alloc(priv->dev); in realtek_smi_setup_mdio() 383 if (!priv->slave_mii_bus) { in realtek_smi_setup_mdio() 387 priv->slave_mii_bus->priv = priv; in realtek_smi_setup_mdio() 388 priv->slave_mii_bus->name = "SMI slave MII"; in realtek_smi_setup_mdio() 389 priv->slave_mii_bus->read = realtek_smi_mdio_read; in realtek_smi_setup_mdio() 390 priv->slave_mii_bus->write = realtek_smi_mdio_write; in realtek_smi_setup_mdio() 391 snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "SMI-%d", in realtek_smi_setup_mdio() 393 priv->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio() 394 priv->slave_mii_bus->parent = priv->dev; in realtek_smi_setup_mdio() 395 ds->slave_mii_bus = priv->slave_mii_bus; in realtek_smi_setup_mdio() [all …]
|
D | realtek.h | 57 struct mii_bus *slave_mii_bus; member
|
/linux-6.1.9/drivers/net/dsa/ |
D | bcm_sf2.c | 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() [all …]
|
D | lantiq_gswip.c | 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() [all …]
|
D | bcm_sf2.h | 111 struct mii_bus *slave_mii_bus; member
|
D | mt7530.c | 1998 ds->slave_mii_bus->irq[p] = irq; in mt7530_setup_mdio_irq() 2085 ds->slave_mii_bus = bus; in mt7530_setup_mdio()
|
/linux-6.1.9/net/dsa/ |
D | dsa2.c | 915 if (!ds->slave_mii_bus && ds->ops->phy_read) { in dsa_switch_setup() 916 ds->slave_mii_bus = mdiobus_alloc(); in dsa_switch_setup() 917 if (!ds->slave_mii_bus) { in dsa_switch_setup() 926 err = of_mdiobus_register(ds->slave_mii_bus, dn); in dsa_switch_setup() 937 if (ds->slave_mii_bus && ds->ops->phy_read) in dsa_switch_setup() 938 mdiobus_free(ds->slave_mii_bus); in dsa_switch_setup() 958 if (ds->slave_mii_bus && ds->ops->phy_read) { in dsa_switch_teardown() 959 mdiobus_unregister(ds->slave_mii_bus); in dsa_switch_teardown() 960 mdiobus_free(ds->slave_mii_bus); in dsa_switch_teardown() 961 ds->slave_mii_bus = NULL; in dsa_switch_teardown()
|
D | slave.c | 232 ds->slave_mii_bus->priv = (void *)ds; in dsa_slave_mii_bus_init() 233 ds->slave_mii_bus->name = "dsa slave smi"; in dsa_slave_mii_bus_init() 234 ds->slave_mii_bus->read = dsa_slave_phy_read; in dsa_slave_mii_bus_init() 235 ds->slave_mii_bus->write = dsa_slave_phy_write; in dsa_slave_mii_bus_init() 236 snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", in dsa_slave_mii_bus_init() 238 ds->slave_mii_bus->parent = ds->dev; in dsa_slave_mii_bus_init() 239 ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; in dsa_slave_mii_bus_init() 2259 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect() 2298 if (ret == -ENODEV && ds->slave_mii_bus) { in dsa_slave_phy_setup()
|
/linux-6.1.9/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1701 ds->slave_mii_bus->irq[phy] = irq; in ksz_irq_phy_setup() 1708 irq_dispose_mapping(ds->slave_mii_bus->irq[phy]); in ksz_irq_phy_setup() 1720 irq_dispose_mapping(ds->slave_mii_bus->irq[phy]); in ksz_irq_phy_free() 1748 ds->slave_mii_bus = bus; in ksz_mdio_register()
|
/linux-6.1.9/include/net/ |
D | dsa.h | 468 struct mii_bus *slave_mii_bus; member
|
/linux-6.1.9/drivers/net/dsa/qca/ |
D | qca8k-8xxx.c | 841 ds->slave_mii_bus = bus; in qca8k_mdio_register()
|
/linux-6.1.9/drivers/net/dsa/b53/ |
D | b53_common.c | 961 return mdiobus_get_phy(ds->slave_mii_bus, port); in b53_get_phy_device()
|
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 3690 ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_setup()
|