Home
last modified time | relevance | path

Searched refs:mdio_bus (Results 1 – 20 of 20) sorted by relevance

/drivers/net/ethernet/apm/xgene-v2/
Dmdio.c87 struct mii_bus *mdio_bus = pdata->mdio_bus; in xge_mdio_remove() local
92 if (mdio_bus->state == MDIOBUS_REGISTERED) in xge_mdio_remove()
93 mdiobus_unregister(mdio_bus); in xge_mdio_remove()
95 mdiobus_free(mdio_bus); in xge_mdio_remove()
103 struct mii_bus *mdio_bus; in xge_mdio_config() local
107 mdio_bus = mdiobus_alloc(); in xge_mdio_config()
108 if (!mdio_bus) in xge_mdio_config()
111 mdio_bus->name = "APM X-Gene Ethernet (v2) MDIO Bus"; in xge_mdio_config()
112 mdio_bus->read = xge_mdio_read; in xge_mdio_config()
113 mdio_bus->write = xge_mdio_write; in xge_mdio_config()
[all …]
Dmain.h56 struct mii_bus *mdio_bus; member
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_mdio.c142 struct mii_bus *mdio_bus; in sxgbe_mdio_register() local
151 mdio_bus = mdiobus_alloc(); in sxgbe_mdio_register()
152 if (!mdio_bus) { in sxgbe_mdio_register()
163 mdio_bus->name = "sxgbe"; in sxgbe_mdio_register()
164 mdio_bus->read = &sxgbe_mdio_read; in sxgbe_mdio_register()
165 mdio_bus->write = &sxgbe_mdio_write; in sxgbe_mdio_register()
166 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%x", in sxgbe_mdio_register()
167 mdio_bus->name, priv->plat->bus_id); in sxgbe_mdio_register()
168 mdio_bus->priv = ndev; in sxgbe_mdio_register()
169 mdio_bus->phy_mask = mdio_data->phy_mask; in sxgbe_mdio_register()
[all …]
/drivers/net/mdio/
Dmdio-xgene.c329 struct mii_bus *mdio_bus; in xgene_mdio_probe() local
379 mdio_bus = mdiobus_alloc(); in xgene_mdio_probe()
380 if (!mdio_bus) { in xgene_mdio_probe()
385 mdio_bus->name = "APM X-Gene MDIO bus"; in xgene_mdio_probe()
388 mdio_bus->read = xgene_mdio_rgmii_read; in xgene_mdio_probe()
389 mdio_bus->write = xgene_mdio_rgmii_write; in xgene_mdio_probe()
390 mdio_bus->priv = (void __force *)pdata; in xgene_mdio_probe()
391 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s", in xgene_mdio_probe()
394 mdio_bus->read = xgene_xfi_mdio_read; in xgene_mdio_probe()
395 mdio_bus->write = xgene_xfi_mdio_write; in xgene_mdio_probe()
[all …]
DKconfig19 reflects whether the mdio_bus/mdio_device code is built as a
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mdio.c129 struct mii_bus *mdio_bus; in hclge_mac_mdio_config() local
142 mdio_bus = devm_mdiobus_alloc(&hdev->pdev->dev); in hclge_mac_mdio_config()
143 if (!mdio_bus) in hclge_mac_mdio_config()
146 mdio_bus->name = "hisilicon MII bus"; in hclge_mac_mdio_config()
147 mdio_bus->read = hclge_mdio_read; in hclge_mac_mdio_config()
148 mdio_bus->write = hclge_mdio_write; in hclge_mac_mdio_config()
149 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%s", "mii", in hclge_mac_mdio_config()
152 mdio_bus->parent = &hdev->pdev->dev; in hclge_mac_mdio_config()
153 mdio_bus->priv = hdev; in hclge_mac_mdio_config()
154 mdio_bus->phy_mask = ~(1 << mac->phy_addr); in hclge_mac_mdio_config()
[all …]
Dhclge_main.h290 struct mii_bus *mdio_bus; member
Dhclge_main.c11841 mdiobus_unregister(hdev->hw.mac.mdio_bus); in hclge_init_ae_dev()
12227 mdiobus_unregister(mac->mdio_bus); in hclge_uninit_ae_dev()
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_hw.c946 struct mii_bus *mdio_bus; in xgene_enet_mdio_config() local
949 mdio_bus = mdiobus_alloc(); in xgene_enet_mdio_config()
950 if (!mdio_bus) in xgene_enet_mdio_config()
953 mdio_bus->name = "APM X-Gene MDIO bus"; in xgene_enet_mdio_config()
954 mdio_bus->read = xgene_mdio_rgmii_read; in xgene_enet_mdio_config()
955 mdio_bus->write = xgene_mdio_rgmii_write; in xgene_enet_mdio_config()
956 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%s", "xgene-mii", in xgene_enet_mdio_config()
959 mdio_bus->priv = (void __force *)pdata->mcx_mac_addr; in xgene_enet_mdio_config()
960 mdio_bus->parent = &pdata->pdev->dev; in xgene_enet_mdio_config()
962 ret = xgene_mdiobus_register(pdata, mdio_bus); in xgene_enet_mdio_config()
[all …]
Dxgene_enet_main.h185 struct mii_bus *mdio_bus; member
/drivers/net/ethernet/sfc/
Dmcdi_port.c29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read()
55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_write()
Dnet_driver.h1108 unsigned int mdio_bus; member
Dmcdi_port_common.c453 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
/drivers/net/ethernet/xscale/
Dixp4xx_eth.c255 static struct mii_bus *mdio_bus; variable
535 if (!(mdio_bus = mdiobus_alloc())) in ixp4xx_mdio_register()
540 mdio_bus->name = "IXP4xx MII Bus"; in ixp4xx_mdio_register()
541 mdio_bus->read = &ixp4xx_mdio_read; in ixp4xx_mdio_register()
542 mdio_bus->write = &ixp4xx_mdio_write; in ixp4xx_mdio_register()
543 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0"); in ixp4xx_mdio_register()
545 err = of_mdiobus_register(mdio_bus, mdio_bus_np); in ixp4xx_mdio_register()
547 mdiobus_free(mdio_bus); in ixp4xx_mdio_register()
553 mdiobus_unregister(mdio_bus); in ixp4xx_mdio_remove()
554 mdiobus_free(mdio_bus); in ixp4xx_mdio_remove()
[all …]
/drivers/net/dsa/mv88e6xxx/
Dglobal2.c794 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_read() local
795 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_read()
808 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_write() local
809 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_write()
Dchip.c118 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_default_mdio_bus() local
120 mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, in mv88e6xxx_default_mdio_bus()
122 if (!mdio_bus) in mv88e6xxx_default_mdio_bus()
125 return mdio_bus->bus; in mv88e6xxx_default_mdio_bus()
3384 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read() local
3385 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read()
3410 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write() local
3411 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write()
3429 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_mdio_register() local
3442 bus = mdiobus_alloc_size(sizeof(*mdio_bus)); in mv88e6xxx_mdio_register()
[all …]
/drivers/net/phy/
DMakefile6 mdio-bus-y += mdio_bus.o mdio_device.o
/drivers/net/ethernet/broadcom/
Dtg3.c1416 phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr); in tg3_mdio_config_5785()
1536 tp->mdio_bus = mdiobus_alloc(); in tg3_mdio_init()
1537 if (tp->mdio_bus == NULL) in tg3_mdio_init()
1540 tp->mdio_bus->name = "tg3 mdio bus"; in tg3_mdio_init()
1541 snprintf(tp->mdio_bus->id, MII_BUS_ID_SIZE, "%x", in tg3_mdio_init()
1543 tp->mdio_bus->priv = tp; in tg3_mdio_init()
1544 tp->mdio_bus->parent = &tp->pdev->dev; in tg3_mdio_init()
1545 tp->mdio_bus->read = &tg3_mdio_read; in tg3_mdio_init()
1546 tp->mdio_bus->write = &tg3_mdio_write; in tg3_mdio_init()
1547 tp->mdio_bus->phy_mask = ~(1 << tp->phy_addr); in tg3_mdio_init()
[all …]
Dtg3.h3274 struct mii_bus *mdio_bus; member
/drivers/net/dsa/
Dlantiq_gswip.c2157 goto mdio_bus; in gswip_probe()
2176 mdio_bus: in gswip_probe()