Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/sunplus/
H A Dspl2sw_mdio.c81 struct device_node *mdio_np; in spl2sw_mdio_init() local
86 mdio_np = of_get_child_by_name(comm->pdev->dev.of_node, "mdio"); in spl2sw_mdio_init()
87 if (!mdio_np) { in spl2sw_mdio_init()
106 ret = of_mdiobus_register(mii_bus, mdio_np); in spl2sw_mdio_init()
115 of_node_put(mdio_np); in spl2sw_mdio_init()
/openbmc/linux/drivers/net/dsa/realtek/
H A Drealtek-smi.c372 struct device_node *mdio_np; in realtek_smi_setup_mdio() local
375 mdio_np = of_get_compatible_child(priv->dev->of_node, "realtek,smi-mdio"); in realtek_smi_setup_mdio()
376 if (!mdio_np) { in realtek_smi_setup_mdio()
392 priv->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio()
396 ret = devm_of_mdiobus_register(priv->dev, priv->slave_mii_bus, mdio_np); in realtek_smi_setup_mdio()
406 of_node_put(mdio_np); in realtek_smi_setup_mdio()
/openbmc/linux/include/linux/
H A Dof_mdio.h46 struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
123 static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np) in of_mdio_find_bus() argument
/openbmc/linux/drivers/net/dsa/
H A Dlantiq_gswip.c508 static int gswip_mdio(struct gswip_priv *priv, struct device_node *mdio_np) in gswip_mdio() argument
526 err = of_mdiobus_register(ds->slave_mii_bus, mdio_np); in gswip_mdio()
2099 struct device_node *np, *mdio_np, *gphy_fw_np; in gswip_probe() local
2167 mdio_np = of_get_compatible_child(dev->of_node, "lantiq,xrx200-mdio"); in gswip_probe()
2168 if (mdio_np) { in gswip_probe()
2169 err = gswip_mdio(priv, mdio_np); in gswip_probe()
2199 if (mdio_np) { in gswip_probe()
2204 of_node_put(mdio_np); in gswip_probe()
/openbmc/linux/drivers/net/ethernet/apm/xgene/
H A 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()
/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.c920 struct device_node *mdio_np; in enetc_mdiobus_create() local
923 mdio_np = of_get_child_by_name(node, "mdio"); in enetc_mdiobus_create()
924 if (mdio_np) { in enetc_mdiobus_create()
925 err = enetc_mdio_probe(pf, mdio_np); in enetc_mdiobus_create()
927 of_node_put(mdio_np); in enetc_mdiobus_create()
/openbmc/linux/drivers/net/ethernet/socionext/
H A Dsni_ave.c1171 struct device_node *mdio_np; in ave_init() local
1199 mdio_np = of_get_child_by_name(np, "mdio"); in ave_init()
1200 if (!mdio_np) { in ave_init()
1205 ret = of_mdiobus_register(priv->mdio, mdio_np); in ave_init()
1206 of_node_put(mdio_np); in ave_init()
/openbmc/linux/drivers/net/ethernet/xscale/
H A Dixp4xx_eth.c1389 struct device_node *mdio_np; in ixp4xx_of_get_platdata() local
1408 mdio_np = of_get_child_by_name(np, "mdio"); in ixp4xx_of_get_platdata()
1409 if (mdio_np) { in ixp4xx_of_get_platdata()
1411 mdio_bus_np = mdio_np; in ixp4xx_of_get_platdata()
/openbmc/linux/drivers/net/ethernet/faraday/
H A Dftgmac100.c1669 struct device_node *mdio_np; in ftgmac100_setup_mdio() local
1701 mdio_np = of_get_child_by_name(np, "mdio"); in ftgmac100_setup_mdio()
1703 err = of_mdiobus_register(priv->mii_bus, mdio_np); in ftgmac100_setup_mdio()
1709 of_node_put(mdio_np); in ftgmac100_setup_mdio()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_common.c1904 struct device_node *mdio_np; in ksz_mdio_register() local
1908 mdio_np = of_get_child_by_name(dev->dev->of_node, "mdio"); in ksz_mdio_register()
1909 if (!mdio_np) in ksz_mdio_register()
1914 of_node_put(mdio_np); in ksz_mdio_register()
1931 of_node_put(mdio_np); in ksz_mdio_register()
1936 ret = devm_of_mdiobus_register(ds->dev, bus, mdio_np); in ksz_mdio_register()
1944 of_node_put(mdio_np); in ksz_mdio_register()
/openbmc/linux/drivers/net/ethernet/renesas/
H A Drswitch.c1209 struct device_node *mdio_np; in rswitch_mii_register() local
1224 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()
1225 err = of_mdiobus_register(mii_bus, mdio_np); in rswitch_mii_register()
1234 of_node_put(mdio_np); in rswitch_mii_register()