Lines Matching refs:miibus
1626 struct mii_bus *miibus;
1640 miibus = mdiobus_alloc();
1641 if (miibus == NULL)
1643 miibus->read = bfin_mdiobus_read;
1644 miibus->write = bfin_mdiobus_write;
1645 miibus->reset = bfin_mdiobus_reset;
1647 miibus->parent = &pdev->dev;
1648 miibus->name = "bfin_mii_bus";
1649 snprintf(miibus->id, MII_BUS_ID_SIZE, "0");
1650 miibus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
1651 if (miibus->irq == NULL)
1654 miibus->irq[i] = PHY_POLL;
1656 rc = mdiobus_register(miibus);
1662 platform_set_drvdata(pdev, miibus);
1666 kfree(miibus->irq);
1667 mdiobus_free(miibus);
1676 struct mii_bus *miibus = platform_get_drvdata(pdev);
1678 mdiobus_unregister(miibus);
1679 kfree(miibus->irq);
1680 mdiobus_free(miibus);