Lines Matching full:vid
109 ar8327_vlan_op(struct arswitch_softc *sc, uint32_t op, uint32_t vid, in ar8327_vlan_op() argument
132 * Set the VID. in ar8327_vlan_op()
134 op |= ((vid & 0xfff) << AR8327_VTU_FUNC1_VID_S); in ar8327_vlan_op()
875 memset(sc->vid, 0, sizeof(sc->vid)); in ar8327_reset_vlans()
905 sc->vid[i] = i | ETHERSWITCH_VID_VALID; in ar8327_reset_vlans()
950 sc->vid[0] = 1; in ar8327_reset_vlans()
953 sc->hal.arswitch_vlan_set_pvid(sc, i, sc->vid[0]); in ar8327_reset_vlans()
956 sc->hal.arswitch_set_dot1q_vlan(sc, ports, ports, sc->vid[0]); in ar8327_reset_vlans()
957 sc->vid[0] |= ETHERSWITCH_VID_VALID; in ar8327_reset_vlans()
964 ar8327_vlan_get_port(struct arswitch_softc *sc, uint32_t *ports, int vid) in ar8327_vlan_get_port() argument
972 port = vid & ETHERSWITCH_VID_MASK; in ar8327_vlan_get_port()
979 ar8327_vlan_set_port(struct arswitch_softc *sc, uint32_t ports, int vid) in ar8327_vlan_set_port() argument
986 port = vid & ETHERSWITCH_VID_MASK; in ar8327_vlan_set_port()
1181 ar8327_purge_dot1q_vlan(struct arswitch_softc *sc, int vid) in ar8327_purge_dot1q_vlan() argument
1184 return (ar8327_vlan_op(sc, AR8327_VTU_FUNC1_OP_PURGE, vid, 0)); in ar8327_purge_dot1q_vlan()
1189 uint32_t *untagged_ports, int vid) in ar8327_get_dot1q_vlan() argument
1196 /* Filter out the vid flags; only grab the VLAN ID */ in ar8327_get_dot1q_vlan()
1197 vid &= 0xfff; in ar8327_get_dot1q_vlan()
1200 r = ar8327_vlan_op(sc, op, vid, 0); in ar8327_get_dot1q_vlan()
1202 device_printf(sc->sc_dev, "%s: %d: op failed\n", __func__, vid); in ar8327_get_dot1q_vlan()
1206 DPRINTF(sc, ARSWITCH_DBG_REGIO, "%s: %d: reg=0x%08x\n", __func__, vid, reg); in ar8327_get_dot1q_vlan()
1230 uint32_t untagged_ports, int vid) in ar8327_set_dot1q_vlan() argument
1236 vid &= 0xfff; in ar8327_set_dot1q_vlan()
1239 "%s: vid: %d, ports=0x%08x, untagged_ports=0x%08x\n", in ar8327_set_dot1q_vlan()
1241 vid, in ar8327_set_dot1q_vlan()
1247 * not VID=0 when doing MAC lookups in ar8327_set_dot1q_vlan()
1262 return (ar8327_vlan_op(sc, op, vid, val)); in ar8327_set_dot1q_vlan()