Lines Matching refs:new_bus
422 struct mii_bus *new_bus; in hns_mdio_probe() local
434 new_bus = devm_mdiobus_alloc(&pdev->dev); in hns_mdio_probe()
435 if (!new_bus) { in hns_mdio_probe()
440 new_bus->name = MDIO_BUS_NAME; in hns_mdio_probe()
441 new_bus->read = hns_mdio_read; in hns_mdio_probe()
442 new_bus->write = hns_mdio_write; in hns_mdio_probe()
443 new_bus->reset = hns_mdio_reset; in hns_mdio_probe()
444 new_bus->priv = mdio_dev; in hns_mdio_probe()
445 new_bus->parent = &pdev->dev; in hns_mdio_probe()
453 platform_set_drvdata(pdev, new_bus); in hns_mdio_probe()
454 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%s", "Mii", in hns_mdio_probe()
505 ret = of_mdiobus_register(new_bus, pdev->dev.of_node); in hns_mdio_probe()
508 memset(new_bus->irq, PHY_POLL, 4 * PHY_MAX_ADDR); in hns_mdio_probe()
511 new_bus->phy_mask = ~0; in hns_mdio_probe()
514 ret = mdiobus_register(new_bus); in hns_mdio_probe()