Searched refs:mdiobus (Results 1 – 7 of 7) sorted by relevance
/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_mdio.c | 252 priv->mdiobus = devm_mdiobus_alloc(dev); in mlxbf_gige_mdio_probe() 253 if (!priv->mdiobus) { in mlxbf_gige_mdio_probe() 258 priv->mdiobus->name = "mlxbf-mdio"; in mlxbf_gige_mdio_probe() 259 priv->mdiobus->read = mlxbf_gige_mdio_read; in mlxbf_gige_mdio_probe() 260 priv->mdiobus->write = mlxbf_gige_mdio_write; in mlxbf_gige_mdio_probe() 261 priv->mdiobus->parent = dev; in mlxbf_gige_mdio_probe() 262 priv->mdiobus->priv = priv; in mlxbf_gige_mdio_probe() 263 snprintf(priv->mdiobus->id, MII_BUS_ID_SIZE, "%s", in mlxbf_gige_mdio_probe() 266 ret = mdiobus_register(priv->mdiobus); in mlxbf_gige_mdio_probe() 275 mdiobus_unregister(priv->mdiobus); in mlxbf_gige_mdio_remove()
|
D | mlxbf_gige_main.c | 351 phydev = phy_find_first(priv->mdiobus); in mlxbf_gige_probe() 358 priv->mdiobus->irq[addr] = phy_irq; in mlxbf_gige_probe()
|
D | mlxbf_gige.h | 79 struct mii_bus *mdiobus; member
|
/drivers/net/usb/ |
D | smsc95xx.c | 62 struct mii_bus *mdiobus; member 1118 pdata->mdiobus = mdiobus_alloc(); in smsc95xx_bind() 1119 if (!pdata->mdiobus) { in smsc95xx_bind() 1130 pdata->mdiobus->phy_mask = ~(1u << SMSC95XX_INTERNAL_PHY_ID); in smsc95xx_bind() 1132 pdata->mdiobus->priv = dev; in smsc95xx_bind() 1133 pdata->mdiobus->read = smsc95xx_mdiobus_read; in smsc95xx_bind() 1134 pdata->mdiobus->write = smsc95xx_mdiobus_write; in smsc95xx_bind() 1135 pdata->mdiobus->name = "smsc95xx-mdiobus"; in smsc95xx_bind() 1136 pdata->mdiobus->parent = &dev->udev->dev; in smsc95xx_bind() 1138 snprintf(pdata->mdiobus->id, ARRAY_SIZE(pdata->mdiobus->id), in smsc95xx_bind() [all …]
|
D | lan78xx.c | 427 struct mii_bus *mdiobus; member 1902 dev->mdiobus = mdiobus_alloc(); in lan78xx_mdio_init() 1903 if (!dev->mdiobus) { in lan78xx_mdio_init() 1908 dev->mdiobus->priv = (void *)dev; in lan78xx_mdio_init() 1909 dev->mdiobus->read = lan78xx_mdiobus_read; in lan78xx_mdio_init() 1910 dev->mdiobus->write = lan78xx_mdiobus_write; in lan78xx_mdio_init() 1911 dev->mdiobus->name = "lan78xx-mdiobus"; in lan78xx_mdio_init() 1912 dev->mdiobus->parent = &dev->udev->dev; in lan78xx_mdio_init() 1914 snprintf(dev->mdiobus->id, MII_BUS_ID_SIZE, "usb-%03d:%03d", in lan78xx_mdio_init() 1921 dev->mdiobus->phy_mask = ~(1 << 1); in lan78xx_mdio_init() [all …]
|
/drivers/net/ethernet/microchip/ |
D | lan743x_main.c | 1027 phydev = phy_find_first(adapter->mdiobus); in lan743x_phy_open() 2704 mdiobus_unregister(adapter->mdiobus); in lan743x_mdiobus_cleanup() 2764 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in lan743x_mdiobus_init() 2765 if (!(adapter->mdiobus)) { in lan743x_mdiobus_init() 2770 adapter->mdiobus->priv = (void *)adapter; in lan743x_mdiobus_init() 2771 adapter->mdiobus->read = lan743x_mdiobus_read; in lan743x_mdiobus_init() 2772 adapter->mdiobus->write = lan743x_mdiobus_write; in lan743x_mdiobus_init() 2773 adapter->mdiobus->name = "lan743x-mdiobus"; in lan743x_mdiobus_init() 2774 snprintf(adapter->mdiobus->id, MII_BUS_ID_SIZE, in lan743x_mdiobus_init() 2779 adapter->mdiobus->phy_mask = ~(u32)BIT(1); in lan743x_mdiobus_init() [all …]
|
D | lan743x_main.h | 708 struct mii_bus *mdiobus; member
|