Lines Matching refs:vid

141 static void cpsw_set_pvid(struct cpsw_priv *priv, u16 vid, bool cfi, u32 cos)  in cpsw_set_pvid()  argument
147 pvid = vid; in cpsw_set_pvid()
166 u16 vid, struct net_device *orig_dev) in cpsw_port_vlan_add() argument
192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
201 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_add()
205 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add()
208 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add()
212 static int cpsw_port_vlan_del(struct cpsw_priv *priv, u16 vid, in cpsw_port_vlan_del() argument
225 ret = cpsw_ale_vlan_del_modify(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
234 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_del()
236 if (vid == cpsw_get_pvid(priv)) in cpsw_port_vlan_del()
243 port_mask, ALE_VLAN, vid); in cpsw_port_vlan_del()
245 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_del()
258 priv->ndev->name, vlan->vid, vlan->flags); in cpsw_port_vlans_add()
260 return cpsw_port_vlan_add(priv, untag, pvid, vlan->vid, orig_dev); in cpsw_port_vlans_add()
279 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add()
281 priv->ndev->name, mdb->vid, mdb->addr, port_mask); in cpsw_port_mdb_add()
302 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del()
304 priv->ndev->name, mdb->vid, mdb->addr, del_mask); in cpsw_port_mdb_del()
350 err = cpsw_port_vlan_del(priv, vlan->vid, vlan->obj.orig_dev); in cpsw_port_obj_del()
370 info.vid = rcv->vid; in cpsw_fdb_offload_notify()
391 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
400 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()
407 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
416 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()