Lines Matching refs:port_np
1476 static int am65_cpsw_init_serdes_phy(struct device *dev, struct device_node *port_np, in am65_cpsw_init_serdes_phy() argument
1483 phy = devm_of_phy_optional_get(dev, port_np, name); in am65_cpsw_init_serdes_phy()
2006 struct device_node *node, *port_np; in am65_cpsw_nuss_init_slave_ports() local
2014 for_each_child_of_node(node, port_np) { in am65_cpsw_nuss_init_slave_ports()
2019 if (strcmp(port_np->name, "port")) in am65_cpsw_nuss_init_slave_ports()
2022 ret = of_property_read_u32(port_np, "reg", &port_id); in am65_cpsw_nuss_init_slave_ports()
2025 port_np, ret); in am65_cpsw_nuss_init_slave_ports()
2031 port_np, port_id, port_np->name); in am65_cpsw_nuss_init_slave_ports()
2045 port->name = of_get_property(port_np, "label", NULL); in am65_cpsw_nuss_init_slave_ports()
2056 port->disabled = !of_device_is_available(port_np); in am65_cpsw_nuss_init_slave_ports()
2062 port->slave.ifphy = devm_of_phy_get(dev, port_np, NULL); in am65_cpsw_nuss_init_slave_ports()
2066 port_np, ret); in am65_cpsw_nuss_init_slave_ports()
2071 ret = am65_cpsw_init_serdes_phy(dev, port_np, port); in am65_cpsw_nuss_init_slave_ports()
2076 of_property_read_bool(port_np, "ti,mac-only"); in am65_cpsw_nuss_init_slave_ports()
2079 port->slave.phy_node = port_np; in am65_cpsw_nuss_init_slave_ports()
2080 ret = of_get_phy_mode(port_np, &port->slave.phy_if); in am65_cpsw_nuss_init_slave_ports()
2083 port_np, ret); in am65_cpsw_nuss_init_slave_ports()
2091 ret = of_get_mac_address(port_np, port->slave.mac_addr); in am65_cpsw_nuss_init_slave_ports()
2093 am65_cpsw_am654_get_efuse_macid(port_np, in am65_cpsw_nuss_init_slave_ports()
2113 of_node_put(port_np); in am65_cpsw_nuss_init_slave_ports()