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