Searched refs:mdiobus (Results 1 – 11 of 11) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/ |
A D | mlxbf_gige_mdio.c | 158 priv->mdiobus = devm_mdiobus_alloc(dev); in mlxbf_gige_mdio_probe() 159 if (!priv->mdiobus) { in mlxbf_gige_mdio_probe() 164 priv->mdiobus->name = "mlxbf-mdio"; in mlxbf_gige_mdio_probe() 165 priv->mdiobus->read = mlxbf_gige_mdio_read; in mlxbf_gige_mdio_probe() 166 priv->mdiobus->write = mlxbf_gige_mdio_write; in mlxbf_gige_mdio_probe() 167 priv->mdiobus->parent = dev; in mlxbf_gige_mdio_probe() 168 priv->mdiobus->priv = priv; in mlxbf_gige_mdio_probe() 169 snprintf(priv->mdiobus->id, MII_BUS_ID_SIZE, "%s", in mlxbf_gige_mdio_probe() 172 ret = mdiobus_register(priv->mdiobus); in mlxbf_gige_mdio_probe() 181 mdiobus_unregister(priv->mdiobus); in mlxbf_gige_mdio_remove()
|
A 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()
|
A D | mlxbf_gige.h | 78 struct mii_bus *mdiobus; member
|
/linux/drivers/net/ethernet/asix/ |
A 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()
|
A 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);
|
A D | ax88796c_main.c | 995 ax_local->mdiobus = devm_mdiobus_alloc(&spi->dev); in ax88796c_probe() 996 if (!ax_local->mdiobus) in ax88796c_probe() 999 ax_local->mdiobus->priv = ax_local; in ax88796c_probe() 1000 ax_local->mdiobus->read = ax88796c_mdio_read; in ax88796c_probe() 1001 ax_local->mdiobus->write = ax88796c_mdio_write; in ax88796c_probe() 1002 ax_local->mdiobus->name = "ax88976c-mdiobus"; in ax88796c_probe() 1003 ax_local->mdiobus->phy_mask = (u32)~BIT(AX88796C_PHY_ID); in ax88796c_probe() 1004 ax_local->mdiobus->parent = &spi->dev; in ax88796c_probe() 1006 snprintf(ax_local->mdiobus->id, MII_BUS_ID_SIZE, in ax88796c_probe() 1009 ret = devm_mdiobus_register(&spi->dev, ax_local->mdiobus); in ax88796c_probe() [all …]
|
A D | ax88796c_main.h | 105 struct mii_bus *mdiobus; member
|
/linux/drivers/net/usb/ |
A D | smsc95xx.c | 62 struct mii_bus *mdiobus; member 1106 pdata->mdiobus = mdiobus_alloc(); in smsc95xx_bind() 1107 if (!pdata->mdiobus) { in smsc95xx_bind() 1120 pdata->mdiobus->priv = dev; in smsc95xx_bind() 1124 pdata->mdiobus->parent = &dev->udev->dev; in smsc95xx_bind() 1126 snprintf(pdata->mdiobus->id, ARRAY_SIZE(pdata->mdiobus->id), in smsc95xx_bind() 1129 ret = mdiobus_register(pdata->mdiobus); in smsc95xx_bind() 1179 mdiobus_unregister(pdata->mdiobus); in smsc95xx_bind() 1182 mdiobus_free(pdata->mdiobus); in smsc95xx_bind() 1194 mdiobus_unregister(pdata->mdiobus); in smsc95xx_unbind() [all …]
|
A 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() 1921 dev->mdiobus->phy_mask = ~(1 << 1); in lan78xx_mdio_init() 1925 dev->mdiobus->phy_mask = ~(0xFF); in lan78xx_mdio_init() 1940 mdiobus_free(dev->mdiobus); in lan78xx_mdio_init() 1946 mdiobus_unregister(dev->mdiobus); in lan78xx_remove_mdio() 1947 mdiobus_free(dev->mdiobus); in lan78xx_remove_mdio() 2153 phydev = phy_find_first(dev->mdiobus); in lan7801_phy_init() [all …]
|
/linux/drivers/net/ethernet/microchip/ |
A D | lan743x_main.c | 1014 phydev = phy_find_first(adapter->mdiobus); in lan743x_phy_open() 2691 mdiobus_unregister(adapter->mdiobus); in lan743x_mdiobus_cleanup() 2751 adapter->mdiobus = devm_mdiobus_alloc(&adapter->pdev->dev); in lan743x_mdiobus_init() 2752 if (!(adapter->mdiobus)) { in lan743x_mdiobus_init() 2757 adapter->mdiobus->priv = (void *)adapter; in lan743x_mdiobus_init() 2758 adapter->mdiobus->read = lan743x_mdiobus_read; in lan743x_mdiobus_init() 2759 adapter->mdiobus->write = lan743x_mdiobus_write; in lan743x_mdiobus_init() 2760 adapter->mdiobus->name = "lan743x-mdiobus"; in lan743x_mdiobus_init() 2761 snprintf(adapter->mdiobus->id, MII_BUS_ID_SIZE, in lan743x_mdiobus_init() 2766 adapter->mdiobus->phy_mask = ~(u32)BIT(1); in lan743x_mdiobus_init() [all …]
|
A D | lan743x_main.h | 709 struct mii_bus *mdiobus; member
|
Completed in 41 milliseconds