Searched refs:slave_mii_bus (Results 1 – 14 of 14) sorted by relevance
/linux-6.6.21/drivers/net/dsa/realtek/ |
D | realtek-smi.c | 381 priv->slave_mii_bus = devm_mdiobus_alloc(priv->dev); in realtek_smi_setup_mdio() 382 if (!priv->slave_mii_bus) { in realtek_smi_setup_mdio() 386 priv->slave_mii_bus->priv = priv; in realtek_smi_setup_mdio() 387 priv->slave_mii_bus->name = "SMI slave MII"; in realtek_smi_setup_mdio() 388 priv->slave_mii_bus->read = realtek_smi_mdio_read; in realtek_smi_setup_mdio() 389 priv->slave_mii_bus->write = realtek_smi_mdio_write; in realtek_smi_setup_mdio() 390 snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "SMI-%d", in realtek_smi_setup_mdio() 392 priv->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio() 393 priv->slave_mii_bus->parent = priv->dev; in realtek_smi_setup_mdio() 394 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.6.21/drivers/net/dsa/ |
D | bcm_sf2.c | 626 priv->slave_mii_bus = mdiobus_alloc(); in bcm_sf2_mdio_register() 627 if (!priv->slave_mii_bus) { in bcm_sf2_mdio_register() 632 priv->slave_mii_bus->priv = priv; in bcm_sf2_mdio_register() 633 priv->slave_mii_bus->name = "sf2 slave mii"; in bcm_sf2_mdio_register() 634 priv->slave_mii_bus->read = bcm_sf2_sw_mdio_read; in bcm_sf2_mdio_register() 635 priv->slave_mii_bus->write = bcm_sf2_sw_mdio_write; in bcm_sf2_mdio_register() 636 snprintf(priv->slave_mii_bus->id, MII_BUS_ID_SIZE, "sf2-%d", in bcm_sf2_mdio_register() 638 priv->slave_mii_bus->dev.of_node = dn; in bcm_sf2_mdio_register() 656 ds->slave_mii_bus = priv->slave_mii_bus; in bcm_sf2_mdio_register() 657 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 | 2073 ds->slave_mii_bus->irq[p] = irq; in mt7530_setup_mdio_irq() 2167 ds->slave_mii_bus = bus; in mt7530_setup_mdio()
|
/linux-6.6.21/net/dsa/ |
D | dsa.c | 660 if (!ds->slave_mii_bus && ds->ops->phy_read) { in dsa_switch_setup() 661 ds->slave_mii_bus = mdiobus_alloc(); in dsa_switch_setup() 662 if (!ds->slave_mii_bus) { in dsa_switch_setup() 671 err = of_mdiobus_register(ds->slave_mii_bus, dn); in dsa_switch_setup() 683 if (ds->slave_mii_bus && ds->ops->phy_read) in dsa_switch_setup() 684 mdiobus_free(ds->slave_mii_bus); in dsa_switch_setup() 702 if (ds->slave_mii_bus && ds->ops->phy_read) { in dsa_switch_teardown() 703 mdiobus_unregister(ds->slave_mii_bus); in dsa_switch_teardown() 704 mdiobus_free(ds->slave_mii_bus); in dsa_switch_teardown() 705 ds->slave_mii_bus = NULL; in dsa_switch_teardown()
|
D | slave.c | 341 ds->slave_mii_bus->priv = (void *)ds; in dsa_slave_mii_bus_init() 342 ds->slave_mii_bus->name = "dsa slave smi"; in dsa_slave_mii_bus_init() 343 ds->slave_mii_bus->read = dsa_slave_phy_read; in dsa_slave_mii_bus_init() 344 ds->slave_mii_bus->write = dsa_slave_phy_write; in dsa_slave_mii_bus_init() 345 snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", in dsa_slave_mii_bus_init() 347 ds->slave_mii_bus->parent = ds->dev; in dsa_slave_mii_bus_init() 348 ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; in dsa_slave_mii_bus_init() 2480 slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); in dsa_slave_phy_connect() 2519 if (ret == -ENODEV && ds->slave_mii_bus) { in dsa_slave_phy_setup()
|
/linux-6.6.21/drivers/net/dsa/qca/ |
D | qca8k-leds.c | 432 init_data.devicename = kasprintf(GFP_KERNEL, "%s:0%d", ds->slave_mii_bus->id, in qca8k_parse_port_leds()
|
D | qca8k-8xxx.c | 967 ds->slave_mii_bus = bus; in qca8k_mdio_register()
|
/linux-6.6.21/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1879 ds->slave_mii_bus->irq[phy] = irq; in ksz_irq_phy_setup() 1886 irq_dispose_mapping(ds->slave_mii_bus->irq[phy]); in ksz_irq_phy_setup() 1898 irq_dispose_mapping(ds->slave_mii_bus->irq[phy]); in ksz_irq_phy_free() 1926 ds->slave_mii_bus = bus; in ksz_mdio_register()
|
/linux-6.6.21/include/net/ |
D | dsa.h | 458 struct mii_bus *slave_mii_bus; member
|
/linux-6.6.21/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.6.21/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 3734 ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_setup()
|