/linux-6.3-rc2/drivers/net/ethernet/sunplus/ |
A D | spl2sw_mdio.c | 81 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()
|
/linux-6.3-rc2/drivers/net/dsa/realtek/ |
A 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()
|
/linux-6.3-rc2/include/linux/ |
A D | of_mdio.h | 30 struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); 107 static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np) in of_mdio_find_bus() argument
|
/linux-6.3-rc2/drivers/net/dsa/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/apm/xgene/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_pf.c | 943 struct device_node *mdio_np; in enetc_mdiobus_create() local 946 mdio_np = of_get_child_by_name(node, "mdio"); in enetc_mdiobus_create() 947 if (mdio_np) { in enetc_mdiobus_create() 948 err = enetc_mdio_probe(pf, mdio_np); in enetc_mdiobus_create() 950 of_node_put(mdio_np); in enetc_mdiobus_create()
|
/linux-6.3-rc2/drivers/net/ethernet/socionext/ |
A 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()
|
/linux-6.3-rc2/drivers/net/dsa/microchip/ |
A D | ksz_common.c | 1867 struct device_node *mdio_np; in ksz_mdio_register() local 1871 mdio_np = of_get_child_by_name(dev->dev->of_node, "mdio"); in ksz_mdio_register() 1872 if (!mdio_np) in ksz_mdio_register() 1877 of_node_put(mdio_np); in ksz_mdio_register() 1894 of_node_put(mdio_np); in ksz_mdio_register() 1899 ret = devm_of_mdiobus_register(ds->dev, bus, mdio_np); in ksz_mdio_register() 1907 of_node_put(mdio_np); in ksz_mdio_register()
|
/linux-6.3-rc2/drivers/net/ethernet/xscale/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/faraday/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/renesas/ |
A D | rswitch.c | 1199 struct device_node *mdio_np; in rswitch_mii_register() local 1214 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register() 1215 err = of_mdiobus_register(mii_bus, mdio_np); in rswitch_mii_register() 1224 of_node_put(mdio_np); in rswitch_mii_register()
|