Lines Matching refs:port_id
116 u32 port_id; member
179 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_update_link()
199 priv->port_id, phy->speed, in am65_cpsw_update_link()
202 printf("link down on port %d\n", priv->port_id); in am65_cpsw_update_link()
276 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_start()
337 writel(BIT(0) | BIT(priv->port_id), in am65_cpsw_start()
370 common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(priv->port_id)); in am65_cpsw_start()
399 writel(0, common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(priv->port_id)); in am65_cpsw_start()
432 packet_data.dest_tag = priv->port_id; in am65_cpsw_send()
475 struct am65_cpsw_port *port = &common->ports[priv->port_id]; in am65_cpsw_stop()
482 writel(0, common->ale_base + AM65_CPSW_ALE_PN_CTL_REG(priv->port_id)); in am65_cpsw_stop()
600 phy_mode, priv->port_id); in am65_cpsw_ofdata_parse_phy()
609 priv->port_id, pdata->max_speed); in am65_cpsw_ofdata_parse_phy()
616 priv->port_id, ret); in am65_cpsw_ofdata_parse_phy()
626 priv->port_id, ret); in am65_cpsw_ofdata_parse_phy()
683 u32 port_id; in am65_cpsw_probe_cpsw() local
690 ret = ofnode_read_u32(node, "reg", &port_id); in am65_cpsw_probe_cpsw()
697 if (port_id >= AM65_CPSW_CPSWNU_MAX_PORTS) { in am65_cpsw_probe_cpsw()
699 node_name, port_id); in am65_cpsw_probe_cpsw()
705 if (!port_id) in am65_cpsw_probe_cpsw()
708 priv->port_id = port_id; in am65_cpsw_probe_cpsw()
709 cpsw_common->ports[port_id].disabled = disabled; in am65_cpsw_probe_cpsw()
752 am65_cpsw_gmii_sel_k3(priv, pdata->phy_interface, priv->port_id); in am65_cpsw_probe_cpsw()