Home
last modified time | relevance | path

Searched refs:mdio_np (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/dsa/
Drealtek-smi-core.c347 struct device_node *mdio_np; in realtek_smi_setup_mdio() local
350 mdio_np = of_get_compatible_child(smi->dev->of_node, "realtek,smi-mdio"); in realtek_smi_setup_mdio()
351 if (!mdio_np) { in realtek_smi_setup_mdio()
367 smi->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio()
371 ret = devm_of_mdiobus_register(smi->dev, smi->slave_mii_bus, mdio_np); in realtek_smi_setup_mdio()
381 of_node_put(mdio_np); in realtek_smi_setup_mdio()
Dlantiq_gswip.c495 static int gswip_mdio(struct gswip_priv *priv, struct device_node *mdio_np) in gswip_mdio() argument
512 return of_mdiobus_register(ds->slave_mii_bus, mdio_np); in gswip_mdio()
2007 struct device_node *mdio_np, *gphy_fw_np; in gswip_probe() local
2056 mdio_np = of_get_compatible_child(dev->of_node, "lantiq,xrx200-mdio"); in gswip_probe()
2057 if (mdio_np) { in gswip_probe()
2058 err = gswip_mdio(priv, mdio_np); in gswip_probe()
2088 if (mdio_np) in gswip_probe()
2091 of_node_put(mdio_np); in gswip_probe()
/kernel/linux/linux-5.10/include/linux/
Dof_mdio.h33 struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
117 static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np) in of_mdio_find_bus() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c875 struct device_node *mdio_np; in enetc_mdiobus_create() local
878 mdio_np = of_get_child_by_name(node, "mdio"); in enetc_mdiobus_create()
879 if (mdio_np) { in enetc_mdiobus_create()
880 err = enetc_mdio_probe(pf, mdio_np); in enetc_mdiobus_create()
882 of_node_put(mdio_np); in enetc_mdiobus_create()
/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene/
Dxgene_enet_hw.c901 struct device_node *mdio_np = NULL; in xgene_mdiobus_register() local
909 mdio_np = child_np; in xgene_mdiobus_register()
914 if (!mdio_np) { in xgene_mdiobus_register()
919 return of_mdiobus_register(mdio, mdio_np); in xgene_mdiobus_register()
/kernel/linux/linux-5.10/drivers/net/ethernet/socionext/
Dsni_ave.c1170 struct device_node *mdio_np; in ave_init() local
1198 mdio_np = of_get_child_by_name(np, "mdio"); in ave_init()
1199 if (!mdio_np) { in ave_init()
1204 ret = of_mdiobus_register(priv->mdio, mdio_np); in ave_init()
1205 of_node_put(mdio_np); in ave_init()