Home
last modified time | relevance | path

Searched refs:mdiobus (Results 1 – 14 of 14) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_mdio.c254 priv->mdiobus = devm_mdiobus_alloc(dev); in mlxbf_gige_mdio_probe()
255 if (!priv->mdiobus) { in mlxbf_gige_mdio_probe()
260 priv->mdiobus->name = "mlxbf-mdio"; in mlxbf_gige_mdio_probe()
261 priv->mdiobus->read = mlxbf_gige_mdio_read; in mlxbf_gige_mdio_probe()
262 priv->mdiobus->write = mlxbf_gige_mdio_write; in mlxbf_gige_mdio_probe()
263 priv->mdiobus->parent = dev; in mlxbf_gige_mdio_probe()
264 priv->mdiobus->priv = priv; in mlxbf_gige_mdio_probe()
265 snprintf(priv->mdiobus->id, MII_BUS_ID_SIZE, "%s", in mlxbf_gige_mdio_probe()
268 ret = mdiobus_register(priv->mdiobus); in mlxbf_gige_mdio_probe()
277 mdiobus_unregister(priv->mdiobus); in mlxbf_gige_mdio_remove()
Dmlxbf_gige_main.c349 phydev = phy_find_first(priv->mdiobus); in mlxbf_gige_probe()
356 priv->mdiobus->irq[addr] = phy_irq; in mlxbf_gige_probe()
Dmlxbf_gige.h79 struct mii_bus *mdiobus; member
/Linux-v6.1/drivers/net/ethernet/asix/
Dax88796c_ioctl.h22 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);
Dax88796c_ioctl.c171 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()
Dax88796c_main.c997 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 …]
Dax88796c_main.h105 struct mii_bus *mdiobus; member
/Linux-v6.1/drivers/net/ethernet/davicom/
Ddm9051.c102 struct mii_bus *mdiobus; member
1115 db->mdiobus = devm_mdiobus_alloc(&spi->dev); in dm9051_mdio_register()
1116 if (!db->mdiobus) in dm9051_mdio_register()
1119 db->mdiobus->priv = db; in dm9051_mdio_register()
1120 db->mdiobus->read = dm9051_mdio_read; in dm9051_mdio_register()
1121 db->mdiobus->write = dm9051_mdio_write; in dm9051_mdio_register()
1122 db->mdiobus->name = "dm9051-mdiobus"; in dm9051_mdio_register()
1123 db->mdiobus->phy_mask = (u32)~BIT(1); in dm9051_mdio_register()
1124 db->mdiobus->parent = &spi->dev; in dm9051_mdio_register()
1125 snprintf(db->mdiobus->id, MII_BUS_ID_SIZE, in dm9051_mdio_register()
[all …]
/Linux-v6.1/drivers/net/usb/
Dsmsc95xx.c73 struct mii_bus *mdiobus; member
1163 pdata->mdiobus = mdiobus_alloc(); in smsc95xx_bind()
1164 if (!pdata->mdiobus) { in smsc95xx_bind()
1175 pdata->mdiobus->phy_mask = ~(1u << SMSC95XX_INTERNAL_PHY_ID); in smsc95xx_bind()
1177 pdata->mdiobus->priv = dev; in smsc95xx_bind()
1178 pdata->mdiobus->read = smsc95xx_mdiobus_read; in smsc95xx_bind()
1179 pdata->mdiobus->write = smsc95xx_mdiobus_write; in smsc95xx_bind()
1180 pdata->mdiobus->reset = smsc95xx_mdiobus_reset; in smsc95xx_bind()
1181 pdata->mdiobus->name = "smsc95xx-mdiobus"; in smsc95xx_bind()
1182 pdata->mdiobus->parent = &dev->udev->dev; in smsc95xx_bind()
[all …]
Dlan78xx.c468 struct mii_bus *mdiobus; member
2067 dev->mdiobus = mdiobus_alloc(); in lan78xx_mdio_init()
2068 if (!dev->mdiobus) { in lan78xx_mdio_init()
2073 dev->mdiobus->priv = (void *)dev; in lan78xx_mdio_init()
2074 dev->mdiobus->read = lan78xx_mdiobus_read; in lan78xx_mdio_init()
2075 dev->mdiobus->write = lan78xx_mdiobus_write; in lan78xx_mdio_init()
2076 dev->mdiobus->name = "lan78xx-mdiobus"; in lan78xx_mdio_init()
2077 dev->mdiobus->parent = &dev->udev->dev; in lan78xx_mdio_init()
2079 snprintf(dev->mdiobus->id, MII_BUS_ID_SIZE, "usb-%03d:%03d", in lan78xx_mdio_init()
2086 dev->mdiobus->phy_mask = ~(1 << 1); in lan78xx_mdio_init()
[all …]
/Linux-v6.1/drivers/net/ethernet/engleder/
Dtsnep_main.c1305 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in tsnep_mdio_init()
1306 if (!adapter->mdiobus) { in tsnep_mdio_init()
1312 adapter->mdiobus->priv = (void *)adapter; in tsnep_mdio_init()
1313 adapter->mdiobus->parent = &adapter->pdev->dev; in tsnep_mdio_init()
1314 adapter->mdiobus->read = tsnep_mdiobus_read; in tsnep_mdio_init()
1315 adapter->mdiobus->write = tsnep_mdiobus_write; in tsnep_mdio_init()
1316 adapter->mdiobus->name = TSNEP "-mdiobus"; in tsnep_mdio_init()
1317 snprintf(adapter->mdiobus->id, MII_BUS_ID_SIZE, "%s", in tsnep_mdio_init()
1321 adapter->mdiobus->phy_mask = 0x0000001; in tsnep_mdio_init()
1323 retval = of_mdiobus_register(adapter->mdiobus, np); in tsnep_mdio_init()
[all …]
Dtsnep.h140 struct mii_bus *mdiobus; member
/Linux-v6.1/drivers/net/ethernet/microchip/
Dlan743x_main.c1499 phydev = phy_find_first(adapter->mdiobus); in lan743x_phy_open()
3195 mdiobus_unregister(adapter->mdiobus); in lan743x_mdiobus_cleanup()
3273 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in lan743x_mdiobus_init()
3274 if (!(adapter->mdiobus)) { in lan743x_mdiobus_init()
3279 adapter->mdiobus->priv = (void *)adapter; in lan743x_mdiobus_init()
3288 adapter->mdiobus->probe_capabilities = MDIOBUS_C22_C45; in lan743x_mdiobus_init()
3289 adapter->mdiobus->read = lan743x_mdiobus_c45_read; in lan743x_mdiobus_init()
3290 adapter->mdiobus->write = lan743x_mdiobus_c45_write; in lan743x_mdiobus_init()
3291 adapter->mdiobus->name = "lan743x-mdiobus-c45"; in lan743x_mdiobus_init()
3302 adapter->mdiobus->probe_capabilities = MDIOBUS_C22; in lan743x_mdiobus_init()
[all …]
Dlan743x_main.h1011 struct mii_bus *mdiobus; member