Lines Matching refs:ports

268 		struct ocelot_port *ocelot_port = ocelot->ports[port];
386 struct ocelot_port *ocelot_port = ocelot->ports[port];
429 struct ocelot_port *ocelot_port = ocelot->ports[port];
444 /* Standalone ports use VID 0 */
460 struct ocelot_port *ocelot_port = ocelot->ports[port];
595 struct ocelot_port *ocelot_port = ocelot->ports[port];
700 struct ocelot_port *ocelot_port = ocelot->ports[port];
730 /* Clear VLAN table, by default all ports are members of all VLANs */
739 /* We need VID 0 to get traffic on standalone ports.
745 /* Set vlan ingress filter mask to all ports but the CPU port by
817 struct ocelot_port *ocelot_port = ocelot->ports[port];
857 struct ocelot_port *ocelot_port = ocelot->ports[port];
884 struct ocelot_port *ocelot_port = ocelot->ports[port];
925 struct ocelot_port *ocelot_port = ocelot->ports[port];
1168 if (ocelot->ports[src_port]->bridge)
1482 struct ocelot_port *ocelot_port = ocelot->ports[port];
1508 /* Returns the mask of user ports assigned to this DSA tag_8021q CPU port.
1509 * Note that when CPU ports are in a LAG, the user ports are assigned to the
1525 struct ocelot_port *ocelot_port = ocelot->ports[port];
1541 * or the bit mask of CPU ports if said CPU port is in a LAG.
1545 struct ocelot_port *ocelot_port = ocelot->ports[port];
1560 struct ocelot_port *ocelot_port = ocelot->ports[src_port];
1573 ocelot_port = ocelot->ports[port];
1601 * a source for the other ports.
1604 struct ocelot_port *ocelot_port = ocelot->ports[port];
1608 /* Unused ports can't send anywhere */
1611 /* The DSA tag_8021q CPU ports need to be able to
1612 * forward packets to all ports assigned to them.
1628 /* Standalone ports forward only to DSA tag_8021q CPU
1629 * ports (if those exist), or to the hardware CPU port
1640 * is a chance that cut-through was disabled on the other ports due to
1642 * update the cut-through masks of the remaining ports no earlier than
1653 * tag_8021q mode, it is a bit mask of all active CPU ports.
1663 struct ocelot_port *ocelot_port = ocelot->ports[port];
1679 struct ocelot_port *cpu_port = ocelot->ports[cpu];
1697 struct ocelot_port *cpu_port = ocelot->ports[cpu];
1716 struct ocelot_port *cpu_port = ocelot->ports[cpu];
1720 ocelot->ports[port]->dsa_8021q_cpu = cpu_port;
1731 ocelot->ports[port]->dsa_8021q_cpu = NULL;
1740 struct ocelot_port *ocelot_port = ocelot->ports[port];
1798 unsigned long ports)
1806 pgid->ports = ports;
1836 return ocelot_pgid_alloc(ocelot, 0, mc->ports);
1842 if (pgid->index && pgid->ports == mc->ports) {
1860 return ocelot_pgid_alloc(ocelot, index, mc->ports);
1873 addr[1] = mc->ports >> 8;
1874 addr[2] = mc->ports & 0xff;
1876 addr[0] = mc->ports >> 8;
1877 addr[1] = mc->ports & 0xff;
1914 mc->ports |= BIT(port);
1930 ocelot_write_rix(ocelot, pgid->ports, ANA_PGID_PGID,
1958 mc->ports &= ~BIT(port);
1959 if (!mc->ports) {
1965 /* We have a PGID with fewer ports now */
1975 ocelot_write_rix(ocelot, pgid->ports, ANA_PGID_PGID,
1987 struct ocelot_port *ocelot_port = ocelot->ports[port];
2013 struct ocelot_port *ocelot_port = ocelot->ports[port];
2044 /* The visited ports bitmask holds the list of ports offloading any
2045 * bonding interface. Initially we mark all these ports as unvisited,
2048 * port ID == LAG ID. So we mark as visited all further ports in the
2053 struct ocelot_port *ocelot_port = ocelot->ports[port];
2063 struct net_device *bond = ocelot->ports[lag]->bond;
2074 struct ocelot_port *ocelot_port = ocelot->ports[port];
2097 /* Mark all ports in the same LAG as visited to avoid applying
2101 struct ocelot_port *ocelot_port = ocelot->ports[port];
2112 /* When offloading a bonding interface, the switch ports configured under the
2122 struct ocelot_port *ocelot_port = ocelot->ports[port];
2163 mc->ports &= ~from_mask;
2164 mc->ports |= to_mask;
2180 ocelot_write_rix(ocelot, pgid->ports, ANA_PGID_PGID,
2194 if (!(mc->ports & from_mask))
2210 * PORTID_VAL used for all member ports of the LLAG.
2211 * The value must not exceed the number of physical ports on the device.
2259 ocelot->ports[port]->bond = bond;
2280 ocelot->ports[port]->bond = NULL;
2297 struct ocelot_port *ocelot_port = ocelot->ports[port];
2384 struct ocelot_port *ocelot_port = ocelot->ports[port];
2437 struct ocelot_port *ocelot_port = ocelot->ports[port];
2762 struct ocelot_port *ocelot_port = ocelot->ports[port];
3008 /* Do not forward BPDU frames to the front ports. */
3075 struct ocelot_port *ocelot_port = ocelot->ports[port];