Lines Matching defs:vlan
3940 * @vlan: VLAN id to write to VLAN filter
3948 s32 ixgbe_find_vlvf_slot(struct ixgbe_hw *hw, u32 vlan, bool vlvf_bypass)
3954 if (vlan == 0)
3964 vlan |= IXGBE_VLVF_VIEN;
3966 /* Search for the vlan id in the VLVF entries. Save off the first empty
3973 if (bits == vlan)
3991 * @vlan: VLAN id to write to VLAN filter
3998 s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
4006 if (vlan > 4095 || vind > 63)
4021 regidx = vlan / 32;
4022 vfta_delta = (u32)1 << (vlan % 32);
4036 ret_val = ixgbe_set_vlvf_generic(hw, vlan, vind, vlan_on, &vfta_delta,
4055 * @vlan: VLAN id to write to VLAN filter
4065 s32 ixgbe_set_vlvf_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
4074 if (vlan > 4095 || vind > 63)
4079 * make sure the vlan is in VLVF
4087 vlvf_index = ixgbe_find_vlvf_slot(hw, vlan, vlvf_bypass);
4108 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vlan / 32), vfta);
4136 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), IXGBE_VLVF_VIEN | vlan);