/Linux-v5.10/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 | 56 struct mii_bus *mdio_bus; member
|
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_mdio.c | 142 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 …]
|
/Linux-v5.10/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 | 273 struct mii_bus *mdio_bus; member
|
D | hclge_main.c | 10205 mdiobus_unregister(hdev->hw.mac.mdio_bus); in hclge_init_ae_dev() 10582 mdiobus_unregister(mac->mdio_bus); in hclge_uninit_ae_dev()
|
/Linux-v5.10/drivers/net/mdio/ |
D | mdio-xgene.c | 329 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 …]
|
D | Kconfig | 19 reflects whether the mdio_bus/mdio_device code is built as a
|
/Linux-v5.10/Documentation/ABI/testing/ |
D | sysfs-bus-mdio | 1 What: /sys/bus/mdio_bus/devices/.../statistics/ 9 What: /sys/bus/mdio_bus/devices/.../statistics/transfers 16 What: /sys/bus/mdio_bus/devices/.../statistics/errors 23 What: /sys/bus/mdio_bus/devices/.../statistics/writes 30 What: /sys/bus/mdio_bus/devices/.../statistics/reads 37 What: /sys/bus/mdio_bus/devices/.../statistics/transfers_<addr> 44 What: /sys/bus/mdio_bus/devices/.../statistics/errors_<addr> 51 What: /sys/bus/mdio_bus/devices/.../statistics/writes_<addr> 58 What: /sys/bus/mdio_bus/devices/.../statistics/reads_<addr>
|
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
|
/Linux-v5.10/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-v5.10/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 | 1058 unsigned int mdio_bus; member
|
D | mcdi_port_common.c | 438 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
|
/Linux-v5.10/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 252 static struct mii_bus *mdio_bus; variable 526 if (!(mdio_bus = mdiobus_alloc())) in ixp4xx_mdio_register() 532 mdio_bus->name = "IXP4xx MII Bus"; in ixp4xx_mdio_register() 533 mdio_bus->read = &ixp4xx_mdio_read; in ixp4xx_mdio_register() 534 mdio_bus->write = &ixp4xx_mdio_write; in ixp4xx_mdio_register() 535 snprintf(mdio_bus->id, MII_BUS_ID_SIZE, "ixp4xx-eth-0"); in ixp4xx_mdio_register() 537 if ((err = mdiobus_register(mdio_bus))) in ixp4xx_mdio_register() 538 mdiobus_free(mdio_bus); in ixp4xx_mdio_register() 544 mdiobus_unregister(mdio_bus); in ixp4xx_mdio_remove() 545 mdiobus_free(mdio_bus); in ixp4xx_mdio_remove() [all …]
|
/Linux-v5.10/Documentation/networking/ |
D | kapi.rst | 152 .. kernel-doc:: drivers/net/phy/mdio_bus.c 155 .. kernel-doc:: drivers/net/phy/mdio_bus.c
|
/Linux-v5.10/include/linux/mdio/ |
D | mdio-xgene.h | 91 struct mii_bus *mdio_bus; member
|
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 117 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_default_mdio_bus() local 119 mdio_bus = list_first_entry(&chip->mdios, struct mv88e6xxx_mdio_bus, in mv88e6xxx_default_mdio_bus() 121 if (!mdio_bus) in mv88e6xxx_default_mdio_bus() 124 return mdio_bus->bus; in mv88e6xxx_default_mdio_bus() 2995 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_read() local 2996 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_read() 3031 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_mdio_write() local 3032 struct mv88e6xxx_chip *chip = mdio_bus->chip; in mv88e6xxx_mdio_write() 3050 struct mv88e6xxx_mdio_bus *mdio_bus; in mv88e6xxx_mdio_register() local 3063 bus = devm_mdiobus_alloc_size(chip->dev, sizeof(*mdio_bus)); in mv88e6xxx_mdio_register() [all …]
|
D | global2.c | 777 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_read() local 778 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_read() 791 struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; in mv88e6xxx_g2_smi_phy_write() local 792 bool external = mdio_bus->external; in mv88e6xxx_g2_smi_phy_write()
|
/Linux-v5.10/drivers/net/phy/ |
D | Makefile | 6 mdio-bus-y += mdio_bus.o mdio_device.o
|
/Linux-v5.10/drivers/net/ethernet/broadcom/ |
D | tg3.c | 1415 phydev = mdiobus_get_phy(tp->mdio_bus, tp->phy_addr); in tg3_mdio_config_5785() 1535 tp->mdio_bus = mdiobus_alloc(); in tg3_mdio_init() 1536 if (tp->mdio_bus == NULL) in tg3_mdio_init() 1539 tp->mdio_bus->name = "tg3 mdio bus"; in tg3_mdio_init() 1540 snprintf(tp->mdio_bus->id, MII_BUS_ID_SIZE, "%x", in tg3_mdio_init() 1542 tp->mdio_bus->priv = tp; in tg3_mdio_init() 1543 tp->mdio_bus->parent = &tp->pdev->dev; in tg3_mdio_init() 1544 tp->mdio_bus->read = &tg3_mdio_read; in tg3_mdio_init() 1545 tp->mdio_bus->write = &tg3_mdio_write; in tg3_mdio_init() 1546 tp->mdio_bus->phy_mask = ~(1 << tp->phy_addr); in tg3_mdio_init() [all …]
|
D | tg3.h | 3274 struct mii_bus *mdio_bus; member
|
/Linux-v5.10/drivers/net/dsa/ |
D | lantiq_gswip.c | 1923 goto mdio_bus; in gswip_probe() 1942 mdio_bus: in gswip_probe()
|
/Linux-v5.10/Documentation/networking/dsa/ |
D | dsa.rst | 285 - MDIO/PHY library: ``drivers/net/phy/phy.c``, ``mdio_bus.c``
|