Home
last modified time | relevance | path

Searched refs:mii_np (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/ibm/emac/
Dcore.c2594 struct device_node *mii_np; in emac_dt_mdio_probe() local
2597 mii_np = of_get_child_by_name(dev->ofdev->dev.of_node, "mdio"); in emac_dt_mdio_probe()
2598 if (!mii_np) { in emac_dt_mdio_probe()
2603 if (!of_device_is_available(mii_np)) { in emac_dt_mdio_probe()
2621 res = of_mdiobus_register(dev->mii_bus, mii_np); in emac_dt_mdio_probe()
2628 of_node_put(mii_np); in emac_dt_mdio_probe()
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c668 struct device_node *mii_np; in mtk_mdio_init() local
671 mii_np = of_get_child_by_name(eth->dev->of_node, "mdio-bus"); in mtk_mdio_init()
672 if (!mii_np) { in mtk_mdio_init()
677 if (!of_device_is_available(mii_np)) { in mtk_mdio_init()
695 snprintf(eth->mii_bus->id, MII_BUS_ID_SIZE, "%pOFn", mii_np); in mtk_mdio_init()
696 ret = of_mdiobus_register(eth->mii_bus, mii_np); in mtk_mdio_init()
699 of_node_put(mii_np); in mtk_mdio_init()