Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.h57 struct mii_bus *mdio_bus; member
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-mdio1 What: /sys/bus/mdio_bus/devices/.../statistics/
2 What: /sys/class/mdio_bus/.../statistics/
10 What: /sys/bus/mdio_bus/devices/.../statistics/transfers
11 What: /sys/class/mdio_bus/.../transfers
18 What: /sys/bus/mdio_bus/devices/.../statistics/errors
19 What: /sys/class/mdio_bus/.../statistics/errors
26 What: /sys/bus/mdio_bus/devices/.../statistics/writes
27 What: /sys/class/mdio_bus/.../statistics/writes
34 What: /sys/bus/mdio_bus/devices/.../statistics/reads
35 What: /sys/class/mdio_bus/.../statistics/reads
[all …]
Dsysfs-class-net-phydev1 What: /sys/class/mdio_bus/<bus>/<device>/attached_dev
9 What: /sys/class/mdio_bus/<bus>/<device>/phy_has_fixups
19 What: /sys/class/mdio_bus/<bus>/<device>/phy_id
29 What: /sys/class/mdio_bus/<bus>/<device>/phy_interface
46 What: /sys/class/mdio_bus/<bus>/<device>/phy_standalone
55 What: /sys/class/mdio_bus/<bus>/<device>/phy_dev_flags
/linux-6.6.21/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_mdio.c197 struct mii_bus *mdio_bus; in sxgbe_mdio_register() local
206 mdio_bus = mdiobus_alloc(); in sxgbe_mdio_register()
207 if (!mdio_bus) { in sxgbe_mdio_register()
218 mdio_bus->name = "sxgbe"; in sxgbe_mdio_register()
219 mdio_bus->read = sxgbe_mdio_read_c22; in sxgbe_mdio_register()
220 mdio_bus->write = sxgbe_mdio_write_c22; in sxgbe_mdio_register()
221 mdio_bus->read_c45 = sxgbe_mdio_read_c45; in sxgbe_mdio_register()
222 mdio_bus->write_c45 = sxgbe_mdio_write_c45; in sxgbe_mdio_register()
223 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s-%x", in sxgbe_mdio_register()
224 mdio_bus->name, priv->plat->bus_id); in sxgbe_mdio_register()
[all …]
/linux-6.6.21/drivers/net/mdio/
Dmdio-xgene.c328 struct mii_bus *mdio_bus; in xgene_mdio_probe() local
378 mdio_bus = mdiobus_alloc(); in xgene_mdio_probe()
379 if (!mdio_bus) { in xgene_mdio_probe()
384 mdio_bus->name = "APM X-Gene MDIO bus"; in xgene_mdio_probe()
387 mdio_bus->read = xgene_mdio_rgmii_read; in xgene_mdio_probe()
388 mdio_bus->write = xgene_mdio_rgmii_write; in xgene_mdio_probe()
389 mdio_bus->priv = (void __force *)pdata; in xgene_mdio_probe()
390 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "%s", in xgene_mdio_probe()
393 mdio_bus->read = xgene_xfi_mdio_read; in xgene_mdio_probe()
394 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
/linux-6.6.21/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.h280 struct mii_bus *mdio_bus; member
/linux-6.6.21/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
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
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.h1060 unsigned int mdio_bus; member
Dmcdi_port_common.c452 efx->mdio_bus = phy_data->channel; in efx_siena_mcdi_phy_probe()
/linux-6.6.21/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.h1094 unsigned int mdio_bus; member
Dmcdi_port_common.c451 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
Dglobal2.c791 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_read_c22() local
792 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_read_c22()
802 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_read_c45() local
803 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_read_c45()
813 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_write_c22() local
814 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_write_c22()
824 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_write_c45() local
825 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_write_c45()
Dchip.c132 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_default_mdio_bus() local
134 mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, in mv88e6xxx_default_mdio_bus()
136 if (!mdio_bus) in mv88e6xxx_default_mdio_bus()
139 return mdio_bus->bus; in mv88e6xxx_default_mdio_bus()
3515 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read() local
3516 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read()
3542 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read_c45() local
3543 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read_c45()
3559 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write() local
3560 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write()
[all …]
/linux-6.6.21/drivers/net/ethernet/xscale/
Dixp4xx_eth.c270 static struct mii_bus *mdio_bus; variable
547 if (!(mdio_bus = mdiobus_alloc())) in ixp4xx_mdio_register()
552 mdio_bus->name = "IXP4xx MII Bus"; in ixp4xx_mdio_register()
553 mdio_bus->read = &ixp4xx_mdio_read; in ixp4xx_mdio_register()
554 mdio_bus->write = &ixp4xx_mdio_write; in ixp4xx_mdio_register()
555 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0"); in ixp4xx_mdio_register()
557 err = of_mdiobus_register(mdio_bus, mdio_bus_np); in ixp4xx_mdio_register()
559 mdiobus_free(mdio_bus); in ixp4xx_mdio_register()
565 mdiobus_unregister(mdio_bus); in ixp4xx_mdio_remove()
566 mdiobus_free(mdio_bus); in ixp4xx_mdio_remove()
[all …]
/linux-6.6.21/Documentation/networking/
Dkapi.rst131 .. kernel-doc:: drivers/net/phy/mdio_bus.c
134 .. kernel-doc:: drivers/net/phy/mdio_bus.c
/linux-6.6.21/include/linux/mdio/
Dmdio-xgene.h95 struct mii_bus *mdio_bus; member
/linux-6.6.21/drivers/net/phy/
DMakefile6 mdio-bus-y += mdio_bus.o mdio_device.o
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dtg3.c1417 phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr); in tg3_mdio_config_5785()
1537 tp->mdio_bus = mdiobus_alloc(); in tg3_mdio_init()
1538 if (tp->mdio_bus == NULL) in tg3_mdio_init()
1541 tp->mdio_bus->name = "tg3 mdio bus"; in tg3_mdio_init()
1542 snprintf(tp->mdio_bus->id, MII_BUS_ID_SIZE, "%x", pci_dev_id(tp->pdev)); 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 …]
/linux-6.6.21/drivers/net/dsa/
Dlantiq_gswip.c2179 goto mdio_bus; in gswip_probe()
2198 mdio_bus: in gswip_probe()

12