Home
last modified time | relevance | path

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

/linux-6.1.9/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()
/linux-6.1.9/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()