Searched refs:portnp (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_main.c | 732 struct device_node *ports, *portnp; in mchp_sparx5_probe() local 772 for_each_available_child_of_node(ports, portnp) { in mchp_sparx5_probe() 777 err = of_property_read_u32(portnp, "reg", &portno); in mchp_sparx5_probe() 786 err = of_get_phy_mode(portnp, &conf->phy_mode); in mchp_sparx5_probe() 792 err = of_property_read_u32(portnp, "microchip,bandwidth", in mchp_sparx5_probe() 799 err = of_property_read_u32(portnp, "microchip,sd-sgpio", &conf->sd_sgpio); in mchp_sparx5_probe() 804 serdes = devm_of_phy_get(sparx5->dev, portnp, NULL); in mchp_sparx5_probe() 809 of_node_put(portnp); in mchp_sparx5_probe() 813 config->node = portnp; in mchp_sparx5_probe()
|
/linux-6.1.9/drivers/net/ethernet/mscc/ |
D | ocelot_vsc7514.c | 363 struct device_node *portnp; in mscc_ocelot_init_ports() local 379 for_each_available_child_of_node(ports, portnp) { in mscc_ocelot_init_ports() 387 if (of_property_read_u32(portnp, "reg", ®)) in mscc_ocelot_init_ports() 405 of_node_put(portnp); in mscc_ocelot_init_ports() 412 of_node_put(portnp); in mscc_ocelot_init_ports() 416 err = ocelot_probe_port(ocelot, port, target, portnp); in mscc_ocelot_init_ports()
|
D | ocelot.h | 92 struct device_node *portnp);
|
D | ocelot_net.c | 1747 struct device_node *portnp) in ocelot_port_phylink_create() argument 1756 of_get_phy_mode(portnp, &phy_mode); in ocelot_port_phylink_create() 1781 struct phy *serdes = of_phy_get(portnp, NULL); in ocelot_port_phylink_create() 1811 of_fwnode_handle(portnp), in ocelot_port_phylink_create() 1821 err = phylink_of_phy_connect(phylink, portnp, 0); in ocelot_port_phylink_create() 1833 struct device_node *portnp) in ocelot_probe_port() argument 1860 err = of_get_ethdev_address(portnp, dev); in ocelot_probe_port() 1869 err = ocelot_port_phylink_create(ocelot, port, portnp); in ocelot_probe_port()
|
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 732 struct fwnode_handle *portnp) in lan966x_probe_port() argument 795 portnp, in lan966x_probe_port() 1005 struct fwnode_handle *ports, *portnp; in lan966x_probe() local 1112 fwnode_for_each_available_child_node(ports, portnp) { in lan966x_probe() 1117 if (fwnode_property_read_u32(portnp, "reg", &p)) in lan966x_probe() 1120 phy_mode = fwnode_get_phy_mode(portnp); in lan966x_probe() 1121 err = lan966x_probe_port(lan966x, p, phy_mode, portnp); in lan966x_probe() 1127 lan966x->ports[p]->fwnode = fwnode_handle_get(portnp); in lan966x_probe() 1129 serdes = devm_of_phy_get(lan966x->dev, to_of_node(portnp), NULL); in lan966x_probe() 1166 fwnode_handle_put(portnp); in lan966x_probe()
|