Home
last modified time | relevance | path

Searched refs:vlvf_index (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/intel/igb/
De1000_mac.c178 s32 vlvf_index; in igb_vfta_set() local
216 vlvf_index = igb_find_vlvf_slot(hw, vlan, vlvf_bypass); in igb_vfta_set()
217 if (vlvf_index < 0) { in igb_vfta_set()
220 return vlvf_index; in igb_vfta_set()
223 bits = rd32(E1000_VLVF(vlvf_index)); in igb_vfta_set()
242 wr32(E1000_VLVF(vlvf_index), 0); in igb_vfta_set()
265 wr32(E1000_VLVF(vlvf_index), bits | vlan | E1000_VLVF_VLANID_ENABLE); in igb_vfta_set()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3135 s32 vlvf_index; in ixgbe_set_vfta_generic() local
3174 vlvf_index = ixgbe_find_vlvf_slot(hw, vlan, vlvf_bypass); in ixgbe_set_vfta_generic()
3175 if (vlvf_index < 0) { in ixgbe_set_vfta_generic()
3178 return vlvf_index; in ixgbe_set_vfta_generic()
3181 bits = IXGBE_READ_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32)); in ixgbe_set_vfta_generic()
3192 !IXGBE_READ_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + 1 - vind / 32))) { in ixgbe_set_vfta_generic()
3201 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), 0); in ixgbe_set_vfta_generic()
3202 IXGBE_WRITE_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32), 0); in ixgbe_set_vfta_generic()
3225 IXGBE_WRITE_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32), bits); in ixgbe_set_vfta_generic()
3226 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), IXGBE_VLVF_VIEN | vlan); in ixgbe_set_vfta_generic()