/linux-6.12.1/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_mdio.c | 320 priv->mdiobus = devm_mdiobus_alloc(dev); in mlxbf_gige_mdio_probe() 321 if (!priv->mdiobus) { in mlxbf_gige_mdio_probe() 326 priv->mdiobus->name = "mlxbf-mdio"; in mlxbf_gige_mdio_probe() 327 priv->mdiobus->read = mlxbf_gige_mdio_read; in mlxbf_gige_mdio_probe() 328 priv->mdiobus->write = mlxbf_gige_mdio_write; in mlxbf_gige_mdio_probe() 329 priv->mdiobus->parent = dev; in mlxbf_gige_mdio_probe() 330 priv->mdiobus->priv = priv; in mlxbf_gige_mdio_probe() 331 snprintf(priv->mdiobus->id, MII_BUS_ID_SIZE, "%s", in mlxbf_gige_mdio_probe() 334 ret = mdiobus_register(priv->mdiobus); in mlxbf_gige_mdio_probe() 343 mdiobus_unregister(priv->mdiobus); in mlxbf_gige_mdio_remove()
|
D | mlxbf_gige.h | 104 struct mii_bus *mdiobus; member
|
D | mlxbf_gige_main.c | 455 phydev = phy_find_first(priv->mdiobus); in mlxbf_gige_probe() 462 priv->mdiobus->irq[addr] = phy_irq; in mlxbf_gige_probe()
|
/linux-6.12.1/drivers/net/ethernet/ |
D | oa_tc6.c | 113 struct mii_bus *mdiobus; member 498 tc6->mdiobus = mdiobus_alloc(); in oa_tc6_mdiobus_register() 499 if (!tc6->mdiobus) { in oa_tc6_mdiobus_register() 504 tc6->mdiobus->priv = tc6; in oa_tc6_mdiobus_register() 505 tc6->mdiobus->read = oa_tc6_mdiobus_read; in oa_tc6_mdiobus_register() 506 tc6->mdiobus->write = oa_tc6_mdiobus_write; in oa_tc6_mdiobus_register() 517 tc6->mdiobus->read_c45 = oa_tc6_mdiobus_read_c45; in oa_tc6_mdiobus_register() 518 tc6->mdiobus->write_c45 = oa_tc6_mdiobus_write_c45; in oa_tc6_mdiobus_register() 519 tc6->mdiobus->name = "oa-tc6-mdiobus"; in oa_tc6_mdiobus_register() 520 tc6->mdiobus->parent = tc6->dev; in oa_tc6_mdiobus_register() [all …]
|
/linux-6.12.1/drivers/net/ethernet/asix/ |
D | ax88796c_ioctl.h | 22 int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc); 23 int ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val);
|
D | ax88796c_ioctl.c | 171 int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc) in ax88796c_mdio_read() argument 173 struct ax88796c_device *ax_local = mdiobus->priv; in ax88796c_mdio_read() 193 ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val) in ax88796c_mdio_write() argument 195 struct ax88796c_device *ax_local = mdiobus->priv; in ax88796c_mdio_write()
|
D | ax88796c_main.c | 997 ax_local->mdiobus = devm_mdiobus_alloc(&spi->dev); in ax88796c_probe() 998 if (!ax_local->mdiobus) in ax88796c_probe() 1001 ax_local->mdiobus->priv = ax_local; in ax88796c_probe() 1002 ax_local->mdiobus->read = ax88796c_mdio_read; in ax88796c_probe() 1003 ax_local->mdiobus->write = ax88796c_mdio_write; in ax88796c_probe() 1004 ax_local->mdiobus->name = "ax88976c-mdiobus"; in ax88796c_probe() 1005 ax_local->mdiobus->phy_mask = (u32)~BIT(AX88796C_PHY_ID); in ax88796c_probe() 1006 ax_local->mdiobus->parent = &spi->dev; in ax88796c_probe() 1008 snprintf(ax_local->mdiobus->id, MII_BUS_ID_SIZE, in ax88796c_probe() 1011 ret = devm_mdiobus_register(&spi->dev, ax_local->mdiobus); in ax88796c_probe() [all …]
|
D | ax88796c_main.h | 105 struct mii_bus *mdiobus; member
|
/linux-6.12.1/drivers/net/ethernet/davicom/ |
D | dm9051.c | 102 struct mii_bus *mdiobus; member 1112 db->mdiobus = devm_mdiobus_alloc(&spi->dev); in dm9051_mdio_register() 1113 if (!db->mdiobus) in dm9051_mdio_register() 1116 db->mdiobus->priv = db; in dm9051_mdio_register() 1117 db->mdiobus->read = dm9051_mdio_read; in dm9051_mdio_register() 1118 db->mdiobus->write = dm9051_mdio_write; in dm9051_mdio_register() 1119 db->mdiobus->name = "dm9051-mdiobus"; in dm9051_mdio_register() 1120 db->mdiobus->phy_mask = (u32)~BIT(1); in dm9051_mdio_register() 1121 db->mdiobus->parent = &spi->dev; in dm9051_mdio_register() 1122 snprintf(db->mdiobus->id, MII_BUS_ID_SIZE, in dm9051_mdio_register() [all …]
|
/linux-6.12.1/drivers/net/usb/ |
D | smsc95xx.c | 73 struct mii_bus *mdiobus; member 1168 pdata->mdiobus = mdiobus_alloc(); in smsc95xx_bind() 1169 if (!pdata->mdiobus) { in smsc95xx_bind() 1180 pdata->mdiobus->phy_mask = ~(1u << SMSC95XX_INTERNAL_PHY_ID); in smsc95xx_bind() 1182 pdata->mdiobus->priv = dev; in smsc95xx_bind() 1183 pdata->mdiobus->read = smsc95xx_mdiobus_read; in smsc95xx_bind() 1184 pdata->mdiobus->write = smsc95xx_mdiobus_write; in smsc95xx_bind() 1185 pdata->mdiobus->reset = smsc95xx_mdiobus_reset; in smsc95xx_bind() 1186 pdata->mdiobus->name = "smsc95xx-mdiobus"; in smsc95xx_bind() 1187 pdata->mdiobus->parent = &dev->udev->dev; in smsc95xx_bind() [all …]
|
D | lan78xx.c | 463 struct mii_bus *mdiobus; member 2049 dev->mdiobus = mdiobus_alloc(); in lan78xx_mdio_init() 2050 if (!dev->mdiobus) { in lan78xx_mdio_init() 2055 dev->mdiobus->priv = (void *)dev; in lan78xx_mdio_init() 2056 dev->mdiobus->read = lan78xx_mdiobus_read; in lan78xx_mdio_init() 2057 dev->mdiobus->write = lan78xx_mdiobus_write; in lan78xx_mdio_init() 2058 dev->mdiobus->name = "lan78xx-mdiobus"; in lan78xx_mdio_init() 2059 dev->mdiobus->parent = &dev->udev->dev; in lan78xx_mdio_init() 2061 snprintf(dev->mdiobus->id, MII_BUS_ID_SIZE, "usb-%03d:%03d", in lan78xx_mdio_init() 2068 dev->mdiobus->phy_mask = ~(1 << 1); in lan78xx_mdio_init() [all …]
|
/linux-6.12.1/drivers/net/ethernet/engleder/ |
D | tsnep_main.c | 2422 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in tsnep_mdio_init() 2423 if (!adapter->mdiobus) { in tsnep_mdio_init() 2429 adapter->mdiobus->priv = (void *)adapter; in tsnep_mdio_init() 2430 adapter->mdiobus->parent = &adapter->pdev->dev; in tsnep_mdio_init() 2431 adapter->mdiobus->read = tsnep_mdiobus_read; in tsnep_mdio_init() 2432 adapter->mdiobus->write = tsnep_mdiobus_write; in tsnep_mdio_init() 2433 adapter->mdiobus->name = TSNEP "-mdiobus"; in tsnep_mdio_init() 2434 snprintf(adapter->mdiobus->id, MII_BUS_ID_SIZE, "%s", in tsnep_mdio_init() 2438 adapter->mdiobus->phy_mask = 0x0000001; in tsnep_mdio_init() 2440 retval = of_mdiobus_register(adapter->mdiobus, np); in tsnep_mdio_init() [all …]
|
D | tsnep.h | 162 struct mii_bus *mdiobus; member
|
/linux-6.12.1/drivers/net/ethernet/microchip/ |
D | lan743x_main.c | 3155 phydev = phy_find_first(adapter->mdiobus); in lan743x_phylink_connect() 3427 mdiobus_unregister(adapter->mdiobus); in lan743x_mdiobus_cleanup() 3528 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in lan743x_mdiobus_init() 3529 if (!(adapter->mdiobus)) { in lan743x_mdiobus_init() 3534 adapter->mdiobus->priv = (void *)adapter; in lan743x_mdiobus_init() 3543 adapter->mdiobus->read = lan743x_mdiobus_read_c22; in lan743x_mdiobus_init() 3544 adapter->mdiobus->write = lan743x_mdiobus_write_c22; in lan743x_mdiobus_init() 3545 adapter->mdiobus->read_c45 = lan743x_mdiobus_read_c45; in lan743x_mdiobus_init() 3546 adapter->mdiobus->write_c45 = lan743x_mdiobus_write_c45; in lan743x_mdiobus_init() 3547 adapter->mdiobus->name = "lan743x-mdiobus-c45"; in lan743x_mdiobus_init() [all …]
|
D | lan743x_main.h | 1050 struct mii_bus *mdiobus; member
|