Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/igb/
De1000_mac.c179 s32 vlvf_index; in igb_vfta_set() local
217 vlvf_index = igb_find_vlvf_slot(hw, vlan, vlvf_bypass); in igb_vfta_set()
218 if (vlvf_index < 0) { in igb_vfta_set()
221 return vlvf_index; in igb_vfta_set()
224 bits = rd32(E1000_VLVF(vlvf_index)); in igb_vfta_set()
243 wr32(E1000_VLVF(vlvf_index), 0); in igb_vfta_set()
266 wr32(E1000_VLVF(vlvf_index), bits | vlan | E1000_VLVF_VLANID_ENABLE); in igb_vfta_set()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_common.c3122 s32 vlvf_index; in ixgbe_set_vfta_generic() local
3161 vlvf_index = ixgbe_find_vlvf_slot(hw, vlan, vlvf_bypass); in ixgbe_set_vfta_generic()
3162 if (vlvf_index < 0) { in ixgbe_set_vfta_generic()
3165 return vlvf_index; in ixgbe_set_vfta_generic()
3168 bits = IXGBE_READ_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32)); in ixgbe_set_vfta_generic()
3179 !IXGBE_READ_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + 1 - vind / 32))) { in ixgbe_set_vfta_generic()
3188 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), 0); in ixgbe_set_vfta_generic()
3189 IXGBE_WRITE_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32), 0); in ixgbe_set_vfta_generic()
3212 IXGBE_WRITE_REG(hw, IXGBE_VLVFB(vlvf_index * 2 + vind / 32), bits); in ixgbe_set_vfta_generic()
3213 IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), IXGBE_VLVF_VIEN | vlan); in ixgbe_set_vfta_generic()