Lines Matching refs:new_bus
427 struct mii_bus *new_bus; in hns_mdio_probe() local
440 new_bus = devm_mdiobus_alloc(&pdev->dev); in hns_mdio_probe()
441 if (!new_bus) { in hns_mdio_probe()
446 new_bus->name = MDIO_BUS_NAME; in hns_mdio_probe()
447 new_bus->read = hns_mdio_read; in hns_mdio_probe()
448 new_bus->write = hns_mdio_write; in hns_mdio_probe()
449 new_bus->reset = hns_mdio_reset; in hns_mdio_probe()
450 new_bus->priv = mdio_dev; in hns_mdio_probe()
451 new_bus->parent = &pdev->dev; in hns_mdio_probe()
460 platform_set_drvdata(pdev, new_bus); in hns_mdio_probe()
461 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%s", "Mii", in hns_mdio_probe()
512 ret = of_mdiobus_register(new_bus, pdev->dev.of_node); in hns_mdio_probe()
515 memset(new_bus->irq, PHY_POLL, 4 * PHY_MAX_ADDR); in hns_mdio_probe()
518 new_bus->phy_mask = ~0; in hns_mdio_probe()
521 ret = mdiobus_register(new_bus); in hns_mdio_probe()