Lines Matching full:vlans
287 struct gswip_vlan vlans[64]; member
912 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
913 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
937 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
938 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
939 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
955 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
972 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
973 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
1035 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
1036 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_aware()
1037 if (fid != -1 && fid != priv->vlans[i].fid) in gswip_vlan_add_aware()
1039 fid = priv->vlans[i].fid; in gswip_vlan_add_aware()
1040 if (priv->vlans[i].vid == vid) { in gswip_vlan_add_aware()
1108 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_remove()
1109 if (priv->vlans[i].bridge == bridge && in gswip_vlan_remove()
1110 (!vlan_aware || priv->vlans[i].vid == vid)) { in gswip_vlan_remove()
1207 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_port_vlan_prepare()
1208 if (priv->vlans[i].bridge == bridge && in gswip_port_vlan_prepare()
1209 priv->vlans[i].vid == vlan->vid) { in gswip_port_vlan_prepare()
1221 for (; pos < ARRAY_SIZE(priv->vlans); pos++) { in gswip_port_vlan_prepare()
1222 if (!priv->vlans[pos].bridge) { in gswip_port_vlan_prepare()
1365 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_port_fdb()
1366 if (priv->vlans[i].bridge == bridge) { in gswip_port_fdb()
1367 fid = priv->vlans[i].fid; in gswip_port_fdb()