Lines Matching refs:vlans
205 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan()
266 port_priv->vlans[port_priv->pvid] &= ~ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
267 port_priv->vlans[pvid] |= ETHSW_VLAN_PVID; in dpaa2_switch_port_set_pvid()
292 if (port_priv->vlans[vid]) { in dpaa2_switch_port_add_vlan()
310 port_priv->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_port_add_vlan()
321 port_priv->vlans[vid] |= ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_add_vlan()
362 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_set_stp_state()
385 if (!ethsw->vlans[vid]) in dpaa2_switch_dellink()
393 ethsw->vlans[vid] = 0; in dpaa2_switch_dellink()
397 ppriv_local->vlans[vid] = 0; in dpaa2_switch_dellink()
1755 if (port_priv->vlans[vlan->vid] & ETHSW_VLAN_MEMBER) in dpaa2_switch_port_vlans_add()
1778 if (!port_priv->ethsw_data->vlans[vlan->vid]) { in dpaa2_switch_port_vlans_add()
1784 port_priv->ethsw_data->vlans[vlan->vid] |= ETHSW_VLAN_GLOBAL; in dpaa2_switch_port_vlans_add()
1859 if (!port_priv->vlans[vid]) in dpaa2_switch_port_del_vlan()
1862 if (port_priv->vlans[vid] & ETHSW_VLAN_PVID) { in dpaa2_switch_port_del_vlan()
1874 if (port_priv->vlans[vid] & ETHSW_VLAN_UNTAGGED) { in dpaa2_switch_port_del_vlan()
1883 port_priv->vlans[vid] &= ~ETHSW_VLAN_UNTAGGED; in dpaa2_switch_port_del_vlan()
1886 if (port_priv->vlans[vid] & ETHSW_VLAN_MEMBER) { in dpaa2_switch_port_del_vlan()
1894 port_priv->vlans[vid] &= ~ETHSW_VLAN_MEMBER; in dpaa2_switch_port_del_vlan()
1900 if (ethsw->ports[i]->vlans[vid] & ETHSW_VLAN_MEMBER) in dpaa2_switch_port_del_vlan()
1903 ethsw->vlans[vid] &= ~ETHSW_VLAN_GLOBAL; in dpaa2_switch_port_del_vlan()