Lines Matching defs:new_bus
187 static int fsl_pq_mdio_find_free(struct mii_bus *new_bus)
194 if (get_phy_id(new_bus, i, &phy_id))
277 struct mii_bus *new_bus;
287 new_bus = mdiobus_alloc();
288 if (!new_bus) {
293 new_bus->name = "Freescale PowerQUICC MII Bus",
294 new_bus->read = &fsl_pq_mdio_read,
295 new_bus->write = &fsl_pq_mdio_write,
296 new_bus->reset = &fsl_pq_mdio_reset,
297 new_bus->priv = priv;
298 fsl_pq_mdio_bus_name(new_bus->id, np);
328 new_bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL);
330 if (NULL == new_bus->irq) {
335 new_bus->parent = &ofdev->dev;
336 dev_set_drvdata(&ofdev->dev, new_bus);
392 tbiaddr = fsl_pq_mdio_find_free(new_bus);
407 err = of_mdiobus_register(new_bus, np);
410 new_bus->name);
417 kfree(new_bus->irq);
421 kfree(new_bus);