/Linux-v5.10/drivers/net/ethernet/intel/igb/ |
D | e1000_mac.c | 178 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()
|
D | igb_main.c | 5085 u32 vfta[VFTA_BLOCK_SIZE] = { 0 }; in igb_scrub_vfta() local 5093 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in igb_scrub_vfta() 5112 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in igb_scrub_vfta() 5132 vfta[i] |= adapter->active_vlans[word] >> bits; in igb_scrub_vfta() 5134 hw->mac.ops.write_vfta(hw, vfta_offset + i, vfta[i]); in igb_scrub_vfta() 7147 u32 vfta_mask, vid, vfta; in igb_clear_vf_vfta() local 7168 vfta = adapter->shadow_vfta[vid / 32]; in igb_clear_vf_vfta() 7169 if (vfta & vfta_mask) in igb_clear_vf_vfta() 7170 hw->mac.ops.write_vfta(hw, vid / 32, vfta ^ vfta_mask); in igb_clear_vf_vfta()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 2150 u32 vfta, index; in ixgb_vlan_rx_add_vid() local 2155 vfta = IXGB_READ_REG_ARRAY(&adapter->hw, VFTA, index); in ixgb_vlan_rx_add_vid() 2156 vfta |= (1 << (vid & 0x1F)); in ixgb_vlan_rx_add_vid() 2157 ixgb_write_vfta(&adapter->hw, index, vfta); in ixgb_vlan_rx_add_vid() 2167 u32 vfta, index; in ixgb_vlan_rx_kill_vid() local 2172 vfta = IXGB_READ_REG_ARRAY(&adapter->hw, VFTA, index); in ixgb_vlan_rx_kill_vid() 2173 vfta &= ~(1 << (vid & 0x1F)); in ixgb_vlan_rx_kill_vid() 2174 ixgb_write_vfta(&adapter->hw, index, vfta); in ixgb_vlan_rx_kill_vid()
|
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 586 u32 bits[2], vlvfb, vid, vfta, vlvf; in ixgbe_clear_vf_vlans() local 621 vfta = IXGBE_READ_REG(hw, IXGBE_VFTA(vid / 32)); in ixgbe_clear_vf_vlans() 622 if (vfta & mask) in ixgbe_clear_vf_vlans() 623 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vid / 32), vfta ^ mask); in ixgbe_clear_vf_vlans()
|
D | ixgbe_common.c | 3133 u32 regidx, vfta_delta, vfta, bits; in ixgbe_set_vfta_generic() local 3153 vfta = IXGBE_READ_REG(hw, IXGBE_VFTA(regidx)); in ixgbe_set_vfta_generic() 3159 vfta_delta &= vlan_on ? ~vfta : vfta; in ixgbe_set_vfta_generic() 3160 vfta ^= vfta_delta; in ixgbe_set_vfta_generic() 3197 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic() 3230 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic()
|
D | ixgbe_main.c | 4609 u32 vfta[VFTA_BLOCK_SIZE] = { 0 }; in ixgbe_scrub_vfta() local 4626 vfta[(vid - vid_start) / 32] |= BIT(vid % 32); in ixgbe_scrub_vfta() 4646 vfta[i] |= adapter->active_vlans[word] >> bits; in ixgbe_scrub_vfta() 4648 IXGBE_WRITE_REG(hw, IXGBE_VFTA(vfta_offset + i), vfta[i]); in ixgbe_scrub_vfta()
|
/Linux-v5.10/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 4951 u32 vfta, index; in e1000_vlan_rx_add_vid() local 4963 vfta = E1000_READ_REG_ARRAY(hw, VFTA, index); in e1000_vlan_rx_add_vid() 4964 vfta |= (1 << (vid & 0x1F)); in e1000_vlan_rx_add_vid() 4965 e1000_write_vfta(hw, index, vfta); in e1000_vlan_rx_add_vid() 4977 u32 vfta, index; in e1000_vlan_rx_kill_vid() local 4986 vfta = E1000_READ_REG_ARRAY(hw, VFTA, index); in e1000_vlan_rx_kill_vid() 4987 vfta &= ~(1 << (vid & 0x1F)); in e1000_vlan_rx_kill_vid() 4988 e1000_write_vfta(hw, index, vfta); in e1000_vlan_rx_kill_vid()
|
/Linux-v5.10/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 2746 u32 vfta, index; in e1000_vlan_rx_add_vid() local 2757 vfta = E1000_READ_REG_ARRAY(hw, E1000_VFTA, index); in e1000_vlan_rx_add_vid() 2758 vfta |= BIT((vid & 0x1F)); in e1000_vlan_rx_add_vid() 2759 hw->mac.ops.write_vfta(hw, index, vfta); in e1000_vlan_rx_add_vid() 2772 u32 vfta, index; in e1000_vlan_rx_kill_vid() local 2785 vfta = E1000_READ_REG_ARRAY(hw, E1000_VFTA, index); in e1000_vlan_rx_kill_vid() 2786 vfta &= ~BIT((vid & 0x1F)); in e1000_vlan_rx_kill_vid() 2787 hw->mac.ops.write_vfta(hw, index, vfta); in e1000_vlan_rx_kill_vid()
|