Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/sunplus/
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()
/linux-6.12.1/drivers/net/dsa/realtek/
Drtl83xx.c75 struct device_node *mdio_np; in rtl83xx_setup_user_mdio() local
79 mdio_np = of_get_child_by_name(priv->dev->of_node, "mdio"); in rtl83xx_setup_user_mdio()
80 if (!mdio_np) { in rtl83xx_setup_user_mdio()
98 ret = devm_of_mdiobus_register(priv->dev, bus, mdio_np); in rtl83xx_setup_user_mdio()
108 of_node_put(mdio_np); in rtl83xx_setup_user_mdio()
/linux-6.12.1/include/linux/
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
/linux-6.12.1/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()
/linux-6.12.1/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c921 struct device_node *mdio_np; in enetc_mdiobus_create() local
924 mdio_np = of_get_child_by_name(node, "mdio"); in enetc_mdiobus_create()
925 if (mdio_np) { in enetc_mdiobus_create()
926 err = enetc_mdio_probe(pf, mdio_np); in enetc_mdiobus_create()
928 of_node_put(mdio_np); in enetc_mdiobus_create()
/linux-6.12.1/drivers/net/ethernet/socionext/
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()
/linux-6.12.1/drivers/net/dsa/
Dlantiq_gswip.c512 struct device_node *mdio_np, *switch_np = priv->dev->of_node; in gswip_mdio() local
517 mdio_np = of_get_compatible_child(switch_np, "lantiq,xrx200-mdio"); in gswip_mdio()
518 if (!of_device_is_available(mdio_np)) in gswip_mdio()
534 err = devm_of_mdiobus_register(dev, bus, mdio_np); in gswip_mdio()
537 of_node_put(mdio_np); in gswip_mdio()
/linux-6.12.1/drivers/net/ethernet/faraday/
Dftgmac100.c1681 struct device_node *mdio_np; in ftgmac100_setup_mdio() local
1713 mdio_np = of_get_child_by_name(np, "mdio"); in ftgmac100_setup_mdio()
1715 err = of_mdiobus_register(priv->mii_bus, mdio_np); in ftgmac100_setup_mdio()
1721 of_node_put(mdio_np); in ftgmac100_setup_mdio()
/linux-6.12.1/drivers/net/ethernet/xscale/
Dixp4xx_eth.c1446 struct device_node *mdio_np; in ixp4xx_of_get_platdata() local
1465 mdio_np = of_get_child_by_name(np, "mdio"); in ixp4xx_of_get_platdata()
1466 if (mdio_np) { in ixp4xx_of_get_platdata()
1468 mdio_bus_np = mdio_np; in ixp4xx_of_get_platdata()
/linux-6.12.1/drivers/net/dsa/microchip/
Dksz_common.c2281 struct device_node *mdio_np; in ksz_mdio_register() local
2285 mdio_np = of_get_child_by_name(dev->dev->of_node, "mdio"); in ksz_mdio_register()
2286 if (!mdio_np) in ksz_mdio_register()
2291 of_node_put(mdio_np); in ksz_mdio_register()
2308 of_node_put(mdio_np); in ksz_mdio_register()
2313 ret = devm_of_mdiobus_register(ds->dev, bus, mdio_np); in ksz_mdio_register()
2321 of_node_put(mdio_np); in ksz_mdio_register()
/linux-6.12.1/drivers/net/ethernet/renesas/
Drswitch.c1297 struct device_node *mdio_np; in rswitch_mii_register() local
1312 mdio_np = of_get_child_by_name(rdev->np_port, "mdio"); in rswitch_mii_register()
1313 err = of_mdiobus_register(mii_bus, mdio_np); in rswitch_mii_register()
1322 of_node_put(mdio_np); in rswitch_mii_register()