Lines Matching refs:ports
100 /* Disable learning and I/O on user ports by default -
159 struct sja1105_dt_port *ports)
188 switch (ports[i].phy_mode) {
208 phy_modes(ports[i].phy_mode));
216 if (ports[i].phy_mode == PHY_INTERFACE_MODE_SGMII)
219 mii->phy_mac[i] = ports[i].role;
300 * All DT-defined ports are members of this VLAN, and there are no
495 * mac_fltres0 on all ports except host_port. Such traffic
507 * and overwrite this if we find any DSA (cascaded) ports.
677 struct sja1105_dt_port *ports)
692 rc = sja1105_init_mii_settings(priv, ports);
725 const struct sja1105_dt_port *ports)
730 if (ports[i].role == XMII_MAC)
733 if (ports[i].phy_mode == PHY_INTERFACE_MODE_RGMII_RXID ||
734 ports[i].phy_mode == PHY_INTERFACE_MODE_RGMII_ID)
737 if (ports[i].phy_mode == PHY_INTERFACE_MODE_RGMII_TXID ||
738 ports[i].phy_mode == PHY_INTERFACE_MODE_RGMII_ID)
749 struct sja1105_dt_port *ports,
778 ports[index].phy_mode = phy_mode;
791 ports[index].role = XMII_PHY;
794 ports[index].role = XMII_MAC;
800 ports[index].role = XMII_MAC;
802 ports[index].role = XMII_PHY;
809 struct sja1105_dt_port *ports)
816 ports_node = of_get_child_by_name(switch_node, "ports");
818 dev_err(dev, "Incorrect bindings: absent \"ports\" node\n");
822 rc = sja1105_parse_ports_node(priv, ports, ports_node);
1606 * other ports in the same bridge, and viceversa.
1610 /* For the ports already under the bridge, only one thing needs
1614 * that is new to the bridge), we need to add all other ports
1617 * the domain contains all other bridge ports.
2060 struct sja1105_port *sp = &priv->ports[port];
2076 struct sja1105_port *sp = &priv->ports[port];
2313 /* Only sub-VLANs on user ports need to be applied.
2409 /* Crosschip links are also added to the CPU ports.
2503 * rule for @rx_vid and install @rx_vid on our ports.
2526 * ports. So we have an opportunity to create composite rules
2754 struct sja1105_port *sp = &priv->ports[port];
2978 struct sja1105_dt_port ports[SJA1105_NUM_PORTS];
2982 rc = sja1105_parse_dt(priv, ports);
2991 rc = sja1105_parse_rgmii_delays(priv, ports);
3003 rc = sja1105_static_config_load(priv, ports);
3035 /* The DSA/switchdev model brings up switch ports in standalone mode by
3064 struct sja1105_port *sp = &priv->ports[port];
3108 struct sja1105_port *sp = &priv->ports[port];
3189 int port = sp - priv->ports;
3271 * mirroring on all other (@from) ports.
3575 struct sja1105_port *sp = &priv->ports[port];
3608 struct sja1105_port *sp = &priv->ports[port];