Searched refs:mdio_np (Results 1 – 9 of 9) sorted by relevance
/drivers/net/ethernet/sunplus/ |
D | spl2sw_mdio.c | 87 struct device_node *mdio_np; in spl2sw_mdio_init() local 92 mdio_np = of_get_child_by_name(comm->pdev->dev.of_node, "mdio"); in spl2sw_mdio_init() 93 if (!mdio_np) { in spl2sw_mdio_init() 112 ret = of_mdiobus_register(mii_bus, mdio_np); in spl2sw_mdio_init() 121 of_node_put(mdio_np); in spl2sw_mdio_init()
|
/drivers/net/dsa/realtek/ |
D | realtek-smi.c | 373 struct device_node *mdio_np; in realtek_smi_setup_mdio() local 376 mdio_np = of_get_compatible_child(priv->dev->of_node, "realtek,smi-mdio"); in realtek_smi_setup_mdio() 377 if (!mdio_np) { in realtek_smi_setup_mdio() 393 priv->slave_mii_bus->dev.of_node = mdio_np; in realtek_smi_setup_mdio() 397 ret = devm_of_mdiobus_register(priv->dev, priv->slave_mii_bus, mdio_np); in realtek_smi_setup_mdio() 407 of_node_put(mdio_np); in realtek_smi_setup_mdio()
|
/drivers/net/dsa/ |
D | lantiq_gswip.c | 508 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()
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_hw.c | 901 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()
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 954 struct device_node *mdio_np; in enetc_mdiobus_create() local 957 mdio_np = of_get_child_by_name(node, "mdio"); in enetc_mdiobus_create() 958 if (mdio_np) { in enetc_mdiobus_create() 959 err = enetc_mdio_probe(pf, mdio_np); in enetc_mdiobus_create() 961 of_node_put(mdio_np); in enetc_mdiobus_create()
|
/drivers/net/dsa/microchip/ |
D | ksz_common.c | 1721 struct device_node *mdio_np; in ksz_mdio_register() local 1725 mdio_np = of_get_child_by_name(dev->dev->of_node, "mdio"); in ksz_mdio_register() 1726 if (!mdio_np) in ksz_mdio_register() 1731 of_node_put(mdio_np); in ksz_mdio_register() 1748 of_node_put(mdio_np); in ksz_mdio_register() 1753 ret = devm_of_mdiobus_register(ds->dev, bus, mdio_np); in ksz_mdio_register() 1761 of_node_put(mdio_np); in ksz_mdio_register()
|
/drivers/net/ethernet/socionext/ |
D | sni_ave.c | 1170 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()
|
/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 1389 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()
|
/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 1653 struct device_node *mdio_np; in ftgmac100_setup_mdio() local 1685 mdio_np = of_get_child_by_name(np, "mdio"); in ftgmac100_setup_mdio() 1687 err = of_mdiobus_register(priv->mii_bus, mdio_np); in ftgmac100_setup_mdio() 1693 of_node_put(mdio_np); in ftgmac100_setup_mdio()
|