Home
last modified time | relevance | path

Searched refs:vfta (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/intel/igb/
De1000_mac.c178 u32 regidx, vfta_delta, vfta, bits; in igb_vfta_set() local
197 vfta = adapter->shadow_vfta[regidx]; in igb_vfta_set()
203 vfta_delta &= vlan_on ? ~vfta : vfta; in igb_vfta_set()
204 vfta ^= vfta_delta; in igb_vfta_set()
240 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
271 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
Digb_main.c5115 u32 vfta[VFTA_BLOCK_SIZE] = { 0 }; in igb_scrub_vfta() local
5123 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in igb_scrub_vfta()
5142 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in igb_scrub_vfta()
5162 vfta[i] |= adapter->active_vlans[word] >> bits; in igb_scrub_vfta()
5164 hw->mac.ops.write_vfta(hw, vfta_offset + i, vfta[i]); in igb_scrub_vfta()
7278 u32 vfta_mask, vid, vfta; in igb_clear_vf_vfta() local
7299 vfta = adapter->shadow_vfta[vid / 32]; in igb_clear_vf_vfta()
7300 if (vfta & vfta_mask) in igb_clear_vf_vfta()
7301 hw->mac.ops.write_vfta(hw, vid / 32, vfta ^ vfta_mask); in igb_clear_vf_vfta()
/linux-6.1.9/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c2142 u32 vfta, index; in ixgb_vlan_rx_add_vid() local
2147 vfta = IXGB_READ_REG_ARRAY(&adapter->hw, VFTA, index); in ixgb_vlan_rx_add_vid()
2148 vfta |= (1 << (vid & 0x1F)); in ixgb_vlan_rx_add_vid()
2149 ixgb_write_vfta(&adapter->hw, index, vfta); in ixgb_vlan_rx_add_vid()
2159 u32 vfta, index; in ixgb_vlan_rx_kill_vid() local
2164 vfta = IXGB_READ_REG_ARRAY(&adapter->hw, VFTA, index); in ixgb_vlan_rx_kill_vid()
2165 vfta &= ~(1 << (vid & 0x1F)); in ixgb_vlan_rx_kill_vid()
2166 ixgb_write_vfta(&adapter->hw, index, vfta); in ixgb_vlan_rx_kill_vid()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c588 u32 bits[2], vlvfb, vid, vfta, vlvf; in ixgbe_clear_vf_vlans() local
623 vfta = IXGBE_READ_REG(hw, IXGBE_VFTA(vid / 32)); in ixgbe_clear_vf_vlans()
624 if (vfta & mask) in ixgbe_clear_vf_vlans()
625 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vid / 32), vfta ^ mask); in ixgbe_clear_vf_vlans()
Dixgbe_common.c3134 u32 regidx, vfta_delta, vfta, bits; in ixgbe_set_vfta_generic() local
3154 vfta = IXGBE_READ_REG(hw, IXGBE_VFTA(regidx)); in ixgbe_set_vfta_generic()
3160 vfta_delta &= vlan_on ? ~vfta : vfta; in ixgbe_set_vfta_generic()
3161 vfta ^= vfta_delta; in ixgbe_set_vfta_generic()
3198 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic()
3231 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic()
Dixgbe_main.c4610 u32 vfta[VFTA_BLOCK_SIZE] = { 0 }; in ixgbe_scrub_vfta() local
4627 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in ixgbe_scrub_vfta()
4647 vfta[i] |= adapter->active_vlans[word] >> bits; in ixgbe_scrub_vfta()
4649 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vfta_offset + i), vfta[i]); in ixgbe_scrub_vfta()
/linux-6.1.9/drivers/net/ethernet/intel/e1000/
De1000_main.c4952 u32 vfta, index; in e1000_vlan_rx_add_vid() local
4964 vfta = E1000_READ_REG_ARRAY(hw, VFTA, index); in e1000_vlan_rx_add_vid()
4965 vfta |= (1 << (vid & 0x1F)); in e1000_vlan_rx_add_vid()
4966 e1000_write_vfta(hw, index, vfta); in e1000_vlan_rx_add_vid()
4978 u32 vfta, index; in e1000_vlan_rx_kill_vid() local
4987 vfta = E1000_READ_REG_ARRAY(hw, VFTA, index); in e1000_vlan_rx_kill_vid()
4988 vfta &= ~(1 << (vid & 0x1F)); in e1000_vlan_rx_kill_vid()
4989 e1000_write_vfta(hw, index, vfta); in e1000_vlan_rx_kill_vid()
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dnetdev.c2709 u32 vfta, index; in e1000_vlan_rx_add_vid() local
2720 vfta = E1000_READ_REG_ARRAY(hw, E1000_VFTA, index); in e1000_vlan_rx_add_vid()
2721 vfta |= BIT((vid & 0x1F)); in e1000_vlan_rx_add_vid()
2722 hw->mac.ops.write_vfta(hw, index, vfta); in e1000_vlan_rx_add_vid()
2735 u32 vfta, index; in e1000_vlan_rx_kill_vid() local
2748 vfta = E1000_READ_REG_ARRAY(hw, E1000_VFTA, index); in e1000_vlan_rx_kill_vid()
2749 vfta &= ~BIT((vid & 0x1F)); in e1000_vlan_rx_kill_vid()
2750 hw->mac.ops.write_vfta(hw, index, vfta); in e1000_vlan_rx_kill_vid()