Lines Matching refs:vid
167 static s32 fm10k_update_vlan_vf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) in fm10k_update_vlan_vf() argument
177 if ((vid << 16 | vid) >> 28) in fm10k_update_vlan_vf()
182 vid |= FM10K_VLAN_CLEAR; in fm10k_update_vlan_vf()
186 fm10k_tlv_attr_put_u32(msg, FM10K_MAC_VLAN_MSG_VLAN, vid); in fm10k_update_vlan_vf()
204 u16 vid; in fm10k_msg_mac_vlan_vf() local
210 perm_addr, &vid); in fm10k_msg_mac_vlan_vf()
215 hw->mac.default_vid = vid & (FM10K_VLAN_TABLE_VID_MAX - 1); in fm10k_msg_mac_vlan_vf()
216 hw->mac.vlan_override = !!(vid & FM10K_VLAN_OVERRIDE); in fm10k_msg_mac_vlan_vf()
272 const u8 *mac, u16 vid, bool add, in fm10k_update_uc_addr_vf() argument
279 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_uc_addr_vf()
293 vid |= FM10K_VLAN_CLEAR; in fm10k_update_uc_addr_vf()
297 fm10k_tlv_attr_put_mac_vlan(msg, FM10K_MAC_VLAN_MSG_MAC, mac, vid); in fm10k_update_uc_addr_vf()
316 const u8 *mac, u16 vid, bool add) in fm10k_update_mc_addr_vf() argument
322 if (vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_mc_addr_vf()
331 vid |= FM10K_VLAN_CLEAR; in fm10k_update_mc_addr_vf()
336 mac, vid); in fm10k_update_mc_addr_vf()