Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/ibm/emac/
Dcore.c2595 struct device_node *mii_np; in emac_dt_mdio_probe() local
2598 mii_np = of_get_child_by_name(dev->ofdev->dev.of_node, "mdio"); in emac_dt_mdio_probe()
2599 if (!mii_np) { in emac_dt_mdio_probe()
2604 if (!of_device_is_available(mii_np)) { in emac_dt_mdio_probe()
2622 res = of_mdiobus_register(dev->mii_bus, mii_np); in emac_dt_mdio_probe()
2629 of_node_put(mii_np); in emac_dt_mdio_probe()
/Linux-v6.6/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c820 struct device_node *mii_np; in mtk_mdio_init() local
824 mii_np = of_get_child_by_name(eth->dev->of_node, "mdio-bus"); in mtk_mdio_init()
825 if (!mii_np) { in mtk_mdio_init()
830 if (!of_device_is_available(mii_np)) { in mtk_mdio_init()
849 snprintf(eth->mii_bus->id, MII_BUS_ID_SIZE, "%pOFn", mii_np); in mtk_mdio_init()
851 if (!of_property_read_u32(mii_np, "clock-frequency", &val)) { in mtk_mdio_init()
873 ret = of_mdiobus_register(eth->mii_bus, mii_np); in mtk_mdio_init()
876 of_node_put(mii_np); in mtk_mdio_init()