Lines Matching full:vid

146 static void cpsw_set_pvid(struct cpsw_priv *priv, u16 vid, bool cfi, u32 cos)  in cpsw_set_pvid()  argument
152 pvid = vid; in cpsw_set_pvid()
171 u16 vid, struct net_device *orig_dev) in cpsw_port_vlan_add() argument
197 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
206 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_add()
210 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add()
212 dev_dbg(priv->dev, "VID add: %s: vid:%u ports:%X\n", in cpsw_port_vlan_add()
213 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add()
217 static int cpsw_port_vlan_del(struct cpsw_priv *priv, u16 vid, in cpsw_port_vlan_del() argument
230 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
239 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_del()
241 if (vid == cpsw_get_pvid(priv)) in cpsw_port_vlan_del()
248 port_mask, ALE_VLAN, vid); in cpsw_port_vlan_del()
249 dev_dbg(priv->dev, "VID del: %s: vid:%u ports:%X\n", in cpsw_port_vlan_del()
250 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_del()
263 u16 vid; in cpsw_port_vlans_add() local
265 dev_dbg(priv->dev, "VID add: %s: vid:%u flags:%X\n", in cpsw_port_vlans_add()
274 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in cpsw_port_vlans_add()
277 err = cpsw_port_vlan_add(priv, untag, pvid, vid, orig_dev); in cpsw_port_vlans_add()
290 u16 vid; in cpsw_port_vlans_del() local
292 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in cpsw_port_vlans_del()
295 err = cpsw_port_vlan_del(priv, vid, orig_dev); in cpsw_port_vlans_del()
323 ALE_VLAN, mdb->vid, 0); in cpsw_port_mdb_add()
324 dev_dbg(priv->dev, "MDB add: %s: vid %u:%pM ports: %X\n", in cpsw_port_mdb_add()
325 priv->ndev->name, mdb->vid, mdb->addr, port_mask); in cpsw_port_mdb_add()
346 ALE_VLAN, mdb->vid); in cpsw_port_mdb_del()
347 dev_dbg(priv->dev, "MDB del: %s: vid %u:%pM ports: %X\n", in cpsw_port_mdb_del()
348 priv->ndev->name, mdb->vid, mdb->addr, del_mask); in cpsw_port_mdb_del()
415 info.vid = rcv->vid; in cpsw_fdb_offload_notify()
435 dev_dbg(cpsw->dev, "cpsw_fdb_add: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
436 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
445 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()
451 dev_dbg(cpsw->dev, "cpsw_fdb_del: MACID = %pM vid = %u flags = %u %u -- port %d\n", in cpsw_switchdev_event_work()
452 fdb->addr, fdb->vid, fdb->added_by_user, in cpsw_switchdev_event_work()
461 fdb->vid ? ALE_VLAN : 0, fdb->vid); in cpsw_switchdev_event_work()