Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/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()
/Linux-v6.6/drivers/net/ethernet/wangxun/libwx/
Dwx_hw.c1751 int vlvf_index; in wx_set_vlvf() local
1765 vlvf_index = wx_find_vlvf_slot(wx, vlan); in wx_set_vlvf()
1766 if (vlvf_index < 0) in wx_set_vlvf()
1767 return vlvf_index; in wx_set_vlvf()
1769 wr32(wx, WX_PSR_VLAN_SWC_IDX, vlvf_index); in wx_set_vlvf()