Lines Matching refs:port
135 int port;
139 /* For port based vlans the vlanid is the same as the port index. */
140 port = vid & ETHERSWITCH_VID_MASK;
141 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port));
150 int err, port;
153 /* For port based vlans the vlanid is the same as the port index. */
154 port = vid & ETHERSWITCH_VID_MASK;
155 err = arswitch_modifyreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port),
196 * Reset the port based vlan settings and turn on the
223 /* Initialize the port based vlans. */
358 arswitch_get_pvid(struct arswitch_softc *sc, int port, int *pvid)
363 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port));
369 arswitch_set_pvid(struct arswitch_softc *sc, int port, int pvid)
374 AR8X16_REG_PORT_VLAN(port), 0xfff, pvid));