Lines Matching refs:vid

92 				    __be16 proto, u16 vid);
175 * @vid: vlan id, if vid < 0 set/unset address for real device
179 int vid, int add)
185 if (vid < 0) {
187 vid = cpsw->slaves[priv->emac_port].port_vlan;
189 vid = 0;
193 flags = vid ? ALE_VLAN : 0;
196 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0);
198 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid);
203 static int cpsw_update_vlan_mc(struct net_device *vdev, int vid, void *ctx)
225 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0);
230 ret = cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 1);
268 static int cpsw_purge_vlan_mc(struct net_device *vdev, int vid, void *ctx)
289 cpsw_set_mc(sync_ctx->ndev, sync_ctx->addr, vid, 0);
736 static int cpsw_restore_vlans(struct net_device *vdev, int vid, void *arg)
743 cpsw_ndo_vlan_rx_add_vid(priv->ndev, 0, vid);
975 u16 vid = 0;
988 vid = cpsw->slaves[priv->emac_port].port_vlan;
993 flags, vid);
995 flags, vid);
1007 unsigned short vid)
1031 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask,
1037 HOST_PORT_NUM, ALE_VLAN, vid);
1042 mcast_mask, ALE_VLAN, vid, 0);
1049 HOST_PORT_NUM, ALE_VLAN, vid);
1051 cpsw_ale_del_vlan(cpsw->ale, vid, 0);
1056 __be16 proto, u16 vid)
1062 if (vid == cpsw->data.default_vlan)
1079 if (vid == cpsw->slaves[i].port_vlan) {
1086 dev_info(priv->dev, "Adding vlanid %d to vlan filter\n", vid);
1087 ret = cpsw_add_vlan_ale_entry(priv, vid);
1094 __be16 proto, u16 vid)
1100 if (vid == cpsw->data.default_vlan)
1113 if (vid == cpsw->slaves[i].port_vlan)
1118 dev_info(priv->dev, "removing vlanid %d from vlan filter\n", vid);
1119 ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0);
1121 HOST_PORT_NUM, ALE_VLAN, vid);
1123 0, ALE_VLAN, vid);
1124 ret |= cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid);