Lines Matching refs:vid
133 static void am65_cpsw_set_pvid(struct am65_cpsw_port *port, u16 vid, bool cfi, u32 cos) in am65_cpsw_set_pvid() argument
139 pvid = vid; in am65_cpsw_set_pvid()
150 u16 vid, struct net_device *orig_dev) in am65_cpsw_port_vlan_add() argument
176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add()
185 HOST_PORT_NUM, ALE_VLAN | ALE_SECURE, vid); in am65_cpsw_port_vlan_add()
189 am65_cpsw_set_pvid(port, vid, 0, 0); in am65_cpsw_port_vlan_add()
192 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_add()
197 static int am65_cpsw_port_vlan_del(struct am65_cpsw_port *port, u16 vid, in am65_cpsw_port_vlan_del() argument
210 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in am65_cpsw_port_vlan_del()
219 HOST_PORT_NUM, ALE_VLAN, vid); in am65_cpsw_port_vlan_del()
221 if (vid == am65_cpsw_get_pvid(port)) in am65_cpsw_port_vlan_del()
228 ALE_VLAN, vid); in am65_cpsw_port_vlan_del()
230 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_del()
244 port->ndev->name, vlan->vid, vlan->flags); in am65_cpsw_port_vlans_add()
249 return am65_cpsw_port_vlan_add(port, untag, pvid, vlan->vid, orig_dev); in am65_cpsw_port_vlans_add()
256 return am65_cpsw_port_vlan_del(port, vlan->vid, vlan->obj.orig_dev); in am65_cpsw_port_vlans_del()
275 ALE_VLAN, mdb->vid, 0); in am65_cpsw_port_mdb_add()
277 port->ndev->name, mdb->vid, mdb->addr, port_mask); in am65_cpsw_port_mdb_add()
298 ALE_VLAN, mdb->vid); in am65_cpsw_port_mdb_del()
300 port->ndev->name, mdb->vid, mdb->addr, del_mask); in am65_cpsw_port_mdb_del()
364 info.vid = rcv->vid; in am65_cpsw_fdb_offload_notify()
385 fdb->addr, fdb->vid, fdb->added_by_user, in am65_cpsw_switchdev_event_work()
394 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work()
401 fdb->addr, fdb->vid, fdb->added_by_user, in am65_cpsw_switchdev_event_work()
410 fdb->vid ? ALE_VLAN : 0, fdb->vid); in am65_cpsw_switchdev_event_work()