/linux-6.6.21/drivers/net/ethernet/apm/xgene-v2/ |
D | mdio.c | 87 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 …]
|
D | main.h | 57 struct mii_bus *mdio_bus; member
|
/linux-6.6.21/Documentation/ABI/testing/ |
D | sysfs-bus-mdio | 1 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 …]
|
D | sysfs-class-net-phydev | 1 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/ |
D | sxgbe_mdio.c | 197 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/ |
D | mdio-xgene.c | 328 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 …]
|
D | Kconfig | 19 reflects whether the mdio_bus/mdio_device code is built as a
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mdio.c | 129 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 …]
|
D | hclge_main.h | 280 struct mii_bus *mdio_bus; member
|
/linux-6.6.21/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_hw.c | 946 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 …]
|
D | xgene_enet_main.h | 185 struct mii_bus *mdio_bus; member
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
D | mcdi_port.c | 29 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()
|
D | net_driver.h | 1060 unsigned int mdio_bus; member
|
D | mcdi_port_common.c | 452 efx->mdio_bus = phy_data->channel; in efx_siena_mcdi_phy_probe()
|
/linux-6.6.21/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 29 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()
|
D | net_driver.h | 1094 unsigned int mdio_bus; member
|
D | mcdi_port_common.c | 451 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
|
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/ |
D | global2.c | 791 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()
|
D | chip.c | 132 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/ |
D | ixp4xx_eth.c | 270 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/ |
D | kapi.rst | 131 .. kernel-doc:: drivers/net/phy/mdio_bus.c 134 .. kernel-doc:: drivers/net/phy/mdio_bus.c
|
/linux-6.6.21/include/linux/mdio/ |
D | mdio-xgene.h | 95 struct mii_bus *mdio_bus; member
|
/linux-6.6.21/drivers/net/phy/ |
D | Makefile | 6 mdio-bus-y += mdio_bus.o mdio_device.o
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | tg3.c | 1417 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/ |
D | lantiq_gswip.c | 2179 goto mdio_bus; in gswip_probe() 2198 mdio_bus: in gswip_probe()
|