Lines Matching defs:port
145 int port;
149 /* For port based vlans the vlanid is the same as the port index. */
150 port = vid & ETHERSWITCH_VID_MASK;
151 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port));
160 int err, port;
163 /* For port based vlans the vlanid is the same as the port index. */
164 port = vid & ETHERSWITCH_VID_MASK;
165 err = arswitch_modifyreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port),
206 * Reset the port based vlan settings and turn on the
233 /* Initialize the port based vlans. */
369 ar8xxx_get_pvid(struct arswitch_softc *sc, int port, int *pvid)
374 reg = arswitch_readreg(sc->sc_dev, AR8X16_REG_PORT_VLAN(port));
380 ar8xxx_set_pvid(struct arswitch_softc *sc, int port, int pvid)
385 AR8X16_REG_PORT_VLAN(port), 0xfff, pvid));