Lines Matching refs:vc_vlan
2909 static bool ice_vc_is_valid_vlan(struct virtchnl_vlan *vc_vlan) in ice_vc_is_valid_vlan() argument
2911 if (!vc_vlan->tci || !vc_vlan->tpid) in ice_vc_is_valid_vlan()
2975 static struct ice_vlan ice_vc_to_vlan(struct virtchnl_vlan *vc_vlan) in ice_vc_to_vlan() argument
2979 vlan.prio = (vc_vlan->tci & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in ice_vc_to_vlan()
2980 vlan.vid = vc_vlan->tci & VLAN_VID_MASK; in ice_vc_to_vlan()
2981 vlan.tpid = vc_vlan->tpid; in ice_vc_to_vlan()
3022 struct virtchnl_vlan *vc_vlan; in ice_vc_del_vlans() local
3024 vc_vlan = &vlan_fltr->outer; in ice_vc_del_vlans()
3025 if (ice_vc_is_valid_vlan(vc_vlan)) { in ice_vc_del_vlans()
3026 struct ice_vlan vlan = ice_vc_to_vlan(vc_vlan); in ice_vc_del_vlans()
3045 vc_vlan = &vlan_fltr->inner; in ice_vc_del_vlans()
3046 if (ice_vc_is_valid_vlan(vc_vlan)) { in ice_vc_del_vlans()
3047 struct ice_vlan vlan = ice_vc_to_vlan(vc_vlan); in ice_vc_del_vlans()
3128 struct virtchnl_vlan *vc_vlan; in ice_vc_add_vlans() local
3130 vc_vlan = &vlan_fltr->outer; in ice_vc_add_vlans()
3131 if (ice_vc_is_valid_vlan(vc_vlan)) { in ice_vc_add_vlans()
3132 struct ice_vlan vlan = ice_vc_to_vlan(vc_vlan); in ice_vc_add_vlans()
3154 vc_vlan = &vlan_fltr->inner; in ice_vc_add_vlans()
3155 if (ice_vc_is_valid_vlan(vc_vlan)) { in ice_vc_add_vlans()
3156 struct ice_vlan vlan = ice_vc_to_vlan(vc_vlan); in ice_vc_add_vlans()