Lines Matching refs:vlans
275 struct gswip_vlan vlans[64]; member
894 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_active_create()
895 if (!priv->vlans[i].bridge) { in gswip_vlan_active_create()
919 priv->vlans[idx].bridge = bridge; in gswip_vlan_active_create()
920 priv->vlans[idx].vid = vid; in gswip_vlan_active_create()
921 priv->vlans[idx].fid = fid; in gswip_vlan_active_create()
937 priv->vlans[idx].bridge = NULL; in gswip_vlan_active_remove()
954 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_unaware()
955 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_unaware()
1017 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_add_aware()
1018 if (priv->vlans[i].bridge == bridge) { in gswip_vlan_add_aware()
1019 if (fid != -1 && fid != priv->vlans[i].fid) in gswip_vlan_add_aware()
1021 fid = priv->vlans[i].fid; in gswip_vlan_add_aware()
1022 if (priv->vlans[i].vid == vid) { in gswip_vlan_add_aware()
1090 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_vlan_remove()
1091 if (priv->vlans[i].bridge == bridge && in gswip_vlan_remove()
1092 (!vlan_aware || priv->vlans[i].vid == vid)) { in gswip_vlan_remove()
1185 for (i = max_ports; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_port_vlan_prepare()
1186 if (priv->vlans[i].bridge == bridge && in gswip_port_vlan_prepare()
1187 priv->vlans[i].vid == vlan->vid) { in gswip_port_vlan_prepare()
1199 for (; pos < ARRAY_SIZE(priv->vlans); pos++) { in gswip_port_vlan_prepare()
1200 if (!priv->vlans[pos].bridge) { in gswip_port_vlan_prepare()
1342 for (i = cpu_port; i < ARRAY_SIZE(priv->vlans); i++) { in gswip_port_fdb()
1343 if (priv->vlans[i].bridge == bridge) { in gswip_port_fdb()
1344 fid = priv->vlans[i].fid; in gswip_port_fdb()