Lines Matching defs:new_bus
135 struct mii_bus *new_bus;
140 new_bus = mdiobus_alloc();
141 if (new_bus == NULL)
154 new_bus->name = "STMMAC MII Bus";
155 new_bus->read = &stmmac_mdio_read;
156 new_bus->write = &stmmac_mdio_write;
157 new_bus->reset = &stmmac_mdio_reset;
158 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", priv->bus_id);
159 new_bus->priv = ndev;
160 new_bus->irq = irqlist;
161 new_bus->phy_mask = priv->phy_mask;
162 new_bus->parent = priv->device;
163 err = mdiobus_register(new_bus);
165 pr_err("%s: Cannot register as MDIO bus\n", new_bus->name);
169 priv->mii = new_bus;
173 struct phy_device *phydev = new_bus->phy_map[addr];
195 kfree(new_bus);