Lines Matching defs:new_bus
89 struct mii_bus *new_bus;
101 new_bus = alloc_mdio_bitbang(&bitbang->ctrl);
102 if (!new_bus)
105 new_bus->name = "GPIO Bitbanged MDIO",
107 new_bus->phy_mask = pdata->phy_mask;
108 new_bus->irq = pdata->irqs;
109 new_bus->parent = dev;
111 if (new_bus->phy_mask == ~0)
115 if (!new_bus->irq[i])
116 new_bus->irq[i] = PHY_POLL;
118 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", bus_id);
128 dev_set_drvdata(dev, new_bus);
130 return new_bus;
135 free_mdio_bitbang(new_bus);
165 struct mii_bus *new_bus;
171 new_bus = mdio_gpio_bus_init(&pdev->dev, pdata, pdev->id);
172 if (!new_bus)
175 ret = mdiobus_register(new_bus);
195 struct mii_bus *new_bus;
212 new_bus = mdio_gpio_bus_init(&ofdev->dev, pdata, pdata->mdc);
213 if (!new_bus)
216 ret = of_mdiobus_register(new_bus, ofdev->dev.of_node);