Lines Matching refs:port

149 	unsigned port;
155 * Initialize port softcs.
157 for (port = 0; port < MV88E61XX_PORTS; port++) {
160 psc = &sc->sc_ports[port];
162 psc->sc_port = port;
164 psc->sc_vlan = port + 1; /* Tag VLANs by default. */
170 * Add per-port sysctl tree/handlers.
172 port_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "port",
175 for (port = 0; port < MV88E61XX_PORTS; port++) {
178 psc = &sc->sc_ports[port];
180 portbuf[0] = '0' + port;
213 "Tag packets from/for this port with a given VLAN.");
219 "Default packet priority for this port.");
230 unsigned port;
235 for (port = 0; port < MV88E61XX_PORTS; port++) {
238 psc = &sc->sc_ports[port];
263 /* Configure host port and send monitor frames to it. */
271 /* Send all specifically-addressed frames to the host port. */
280 for (port = 0; port < MV88E61XX_PORTS; port++) {
283 psc = &sc->sc_ports[port];
291 for (port = 0; port < MV88E61XX_PORTS; port++) {
294 psc = &sc->sc_ports[port];
315 /* Make CPU port 1G FDX. */
322 /* Set various port functions per Linux. */
386 unsigned port;
396 * Queue each port's VLAN to be programmed.
398 for (port = 0; port < MV88E61XX_PORTS; port++) {
401 psc = &sc->sc_ports[port];
411 for (port = 0; port < MV88E61XX_PORTS; port++) {
414 psc = &sc->sc_ports[port];
515 unsigned port;
531 for (port = 0; port < MV88E61XX_PORTS; port++) {
534 psc = &sc->sc_ports[port];
537 * Send this port its VLAN traffic untagged.
540 mv88e61xxphy_vtu_set_membership(sc, port, MV88E61XXPHY_VTU_UNTAGGED);
545 mv88e61xxphy_vtu_set_membership(sc, port, MV88E61XXPHY_VTU_TAGGED);
548 * This port isn't on this VLAN.
550 mv88e61xxphy_vtu_set_membership(sc, port, MV88E61XXPHY_VTU_DISCARDED);
563 mv88e61xxphy_vtu_set_membership(struct mv88e61xxphy_softc *sc, unsigned port,
587 if (port < 4) {
589 shift = port * 4;
592 shift = (port - 4) * 4;