Home
last modified time | relevance | path

Searched refs:portnp (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/
Dsparx5_main.c684 struct device_node *ports, *portnp; in mchp_sparx5_probe() local
724 for_each_available_child_of_node(ports, portnp) { in mchp_sparx5_probe()
729 err = of_property_read_u32(portnp, "reg", &portno); in mchp_sparx5_probe()
738 err = of_get_phy_mode(portnp, &conf->phy_mode); in mchp_sparx5_probe()
744 err = of_property_read_u32(portnp, "microchip,bandwidth", in mchp_sparx5_probe()
751 err = of_property_read_u32(portnp, "microchip,sd-sgpio", &conf->sd_sgpio); in mchp_sparx5_probe()
756 serdes = devm_of_phy_get(sparx5->dev, portnp, NULL); in mchp_sparx5_probe()
761 of_node_put(portnp); in mchp_sparx5_probe()
765 config->node = portnp; in mchp_sparx5_probe()
/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_vsc7514.c930 struct device_node *portnp; in mscc_ocelot_init_ports() local
946 for_each_available_child_of_node(ports, portnp) { in mscc_ocelot_init_ports()
954 if (of_property_read_u32(portnp, "reg", &reg)) in mscc_ocelot_init_ports()
972 of_node_put(portnp); in mscc_ocelot_init_ports()
979 of_node_put(portnp); in mscc_ocelot_init_ports()
983 err = ocelot_probe_port(ocelot, port, target, portnp); in mscc_ocelot_init_ports()
Docelot.h107 struct device_node *portnp);
Docelot_net.c1601 struct device_node *portnp) in ocelot_port_phylink_create() argument
1610 of_get_phy_mode(portnp, &phy_mode); in ocelot_port_phylink_create()
1635 struct phy *serdes = of_phy_get(portnp, NULL); in ocelot_port_phylink_create()
1660 of_fwnode_handle(portnp), in ocelot_port_phylink_create()
1670 err = phylink_of_phy_connect(phylink, portnp, 0); in ocelot_port_phylink_create()
1682 struct device_node *portnp) in ocelot_probe_port() argument
1715 err = ocelot_port_phylink_create(ocelot, port, portnp); in ocelot_probe_port()