Lines Matching refs:vid
195 static s32 fm10k_update_vlan_pf(struct fm10k_hw *hw, u32 vid, u8 vsi, bool set) in fm10k_update_vlan_pf() argument
216 len = vid >> 16; in fm10k_update_vlan_pf()
217 vid = (vid << 17) >> 17; in fm10k_update_vlan_pf()
220 if (len >= FM10K_VLAN_TABLE_VID_MAX || vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_vlan_pf()
224 for (reg = FM10K_VLAN_TABLE(vsi, vid / 32), bit = vid % 32; in fm10k_update_vlan_pf()
306 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_xc_addr_pf() argument
313 vid &= ~FM10K_VLAN_CLEAR; in fm10k_update_xc_addr_pf()
316 if (!fm10k_glort_valid_pf(hw, glort) || vid >= FM10K_VLAN_TABLE_VID_MAX) in fm10k_update_xc_addr_pf()
326 mac_update.vlan = cpu_to_le16(vid); in fm10k_update_xc_addr_pf()
353 const u8 *mac, u16 vid, bool add, u8 flags) in fm10k_update_uc_addr_pf() argument
359 return fm10k_update_xc_addr_pf(hw, glort, mac, vid, add, flags); in fm10k_update_uc_addr_pf()
374 const u8 *mac, u16 vid, bool add) in fm10k_update_mc_addr_pf() argument
380 return fm10k_update_xc_addr_pf(hw, glort, mac, vid, add, 0); in fm10k_update_mc_addr_pf()
624 u32 vid = hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT; in fm10k_iov_assign_resources_pf() local
668 FM10K_TXQCTL_UNLIMITED_BW | vid); in fm10k_iov_assign_resources_pf()
696 FM10K_TXQCTL_VF | vid); in fm10k_iov_assign_resources_pf()
1173 s32 fm10k_iov_select_vid(struct fm10k_vf_info *vf_info, u16 vid) in fm10k_iov_select_vid() argument
1175 if (!vid) in fm10k_iov_select_vid()
1177 else if (vf_info->pf_vid && vid != vf_info->pf_vid) in fm10k_iov_select_vid()
1180 return vid; in fm10k_iov_select_vid()
1202 u32 vid; in fm10k_iov_msg_mac_vlan_pf() local
1212 err = fm10k_tlv_attr_get_u32(result, &vid); in fm10k_iov_msg_mac_vlan_pf()
1216 set = !(vid & FM10K_VLAN_CLEAR); in fm10k_iov_msg_mac_vlan_pf()
1217 vid &= ~FM10K_VLAN_CLEAR; in fm10k_iov_msg_mac_vlan_pf()
1229 if (vid >> 16) { in fm10k_iov_msg_mac_vlan_pf()
1236 err = fm10k_iov_select_vid(vf_info, (u16)vid); in fm10k_iov_msg_mac_vlan_pf()
1240 vid = err; in fm10k_iov_msg_mac_vlan_pf()
1244 err = hw->mac.ops.update_vlan(hw, vid, vf_info->vsi, set); in fm10k_iov_msg_mac_vlan_pf()