Home
last modified time | relevance | path

Searched refs:hash_value (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_hw.c20 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value);
412 u32 hash_value; in ixgb_mc_addr_list_update() local
448 hash_value = ixgb_hash_mc_addr(hw, mca); in ixgb_mc_addr_list_update()
450 pr_debug("Hash value = 0x%03X\n", hash_value); in ixgb_mc_addr_list_update()
452 ixgb_mta_set(hw, hash_value); in ixgb_mc_addr_list_update()
474 u32 hash_value = 0; in ixgb_hash_mc_addr() local
487 hash_value = in ixgb_hash_mc_addr()
491 hash_value = in ixgb_hash_mc_addr()
495 hash_value = in ixgb_hash_mc_addr()
499 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in ixgb_hash_mc_addr()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/igbvf/
Dvf.c170 u32 hash_value, hash_mask; in e1000_hash_mc_addr_vf() local
182 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
185 return hash_value; in e1000_hash_mc_addr_vf()
208 u32 hash_value; in e1000_update_mc_addr_list_vf() local
226 hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); in e1000_update_mc_addr_list_vf()
227 hash_list[i] = hash_value & 0x0FFFF; in e1000_update_mc_addr_list_vf()
/Linux-v5.10/drivers/net/ethernet/intel/igc/
Digc_mac.c790 u32 hash_value, hash_mask; in igc_hash_mc_addr() local
842 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igc_hash_mc_addr()
845 return hash_value; in igc_hash_mc_addr()
860 u32 hash_value, hash_bit, hash_reg; in igc_update_mc_addr_list() local
868 hash_value = igc_hash_mc_addr(hw, mc_addr_list); in igc_update_mc_addr_list()
870 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igc_update_mc_addr_list()
871 hash_bit = hash_value & 0x1F; in igc_update_mc_addr_list()
/Linux-v5.10/drivers/net/ethernet/ti/
Ddavinci_emac.c599 u32 hash_value = hash_get(mac_addr); in emac_hash_add() local
601 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in emac_hash_add()
605 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in emac_hash_add()
611 if (priv->multicast_hash_cnt[hash_value] == 0) { in emac_hash_add()
613 if (hash_value < 32) { in emac_hash_add()
614 hash_bit = BIT(hash_value); in emac_hash_add()
617 hash_bit = BIT((hash_value - 32)); in emac_hash_add()
623 ++priv->multicast_hash_cnt[hash_value]; in emac_hash_add()
638 u32 hash_value; in emac_hash_del() local
641 hash_value = hash_get(mac_addr); in emac_hash_del()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/igb/
De1000_mac.c393 void igb_mta_set(struct e1000_hw *hw, u32 hash_value) in igb_mta_set() argument
406 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
407 hash_bit = hash_value & 0x1F; in igb_mta_set()
428 u32 hash_value, hash_mask; in igb_hash_mc_addr() local
480 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
483 return hash_value; in igb_hash_mc_addr()
498 u32 hash_value, hash_bit, hash_reg; in igb_update_mc_addr_list() local
506 hash_value = igb_hash_mc_addr(hw, mc_addr_list); in igb_update_mc_addr_list()
508 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list()
509 hash_bit = hash_value & 0x1F; in igb_update_mc_addr_list()
De1000_mac.h44 void igb_mta_set(struct e1000_hw *hw, u32 hash_value);
/Linux-v5.10/drivers/net/ethernet/atheros/atlx/
Datlx.c119 u32 hash_value; in atlx_set_multi() local
139 hash_value = atlx_hash_mc_addr(hw, ha->addr); in atlx_set_multi()
140 atlx_hash_set(hw, hash_value); in atlx_set_multi()
Datl2.c121 u32 hash_value; in atl2_set_multi() local
142 hash_value = atl2_hash_mc_addr(hw, ha->addr); in atl2_set_multi()
143 atl2_hash_set(hw, hash_value); in atl2_set_multi()
2349 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value) in atl2_hash_set() argument
2362 hash_reg = (hash_value >> 31) & 0x1; in atl2_hash_set()
2363 hash_bit = (hash_value >> 26) & 0x1F; in atl2_hash_set()
Datl2.h73 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value);
Datl1.h47 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value);
Datl1.c560 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) in atl1_hash_set() argument
574 hash_reg = (hash_value >> 31) & 0x1; in atl1_hash_set()
575 hash_bit = (hash_value >> 26) & 0x1F; in atl1_hash_set()
/Linux-v5.10/drivers/net/ethernet/intel/e1000e/
Dmac.c248 u32 hash_value, hash_mask; in e1000_hash_mc_addr() local
300 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
303 return hash_value; in e1000_hash_mc_addr()
318 u32 hash_value, hash_bit, hash_reg; in e1000e_update_mc_addr_list_generic() local
326 hash_value = e1000_hash_mc_addr(hw, mc_addr_list); in e1000e_update_mc_addr_list_generic()
328 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in e1000e_update_mc_addr_list_generic()
329 hash_bit = hash_value & 0x1F; in e1000e_update_mc_addr_list_generic()
/Linux-v5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c172 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value) in atl1e_hash_set() argument
186 hash_reg = (hash_value >> 31) & 0x1; in atl1e_hash_set()
187 hash_bit = (hash_value >> 26) & 0x1F; in atl1e_hash_set()
Datl1e_hw.h26 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value);
Datl1e_main.c272 u32 hash_value; in atl1e_set_multi() local
294 hash_value = atl1e_hash_mc_addr(hw, ha->addr); in atl1e_set_multi()
295 atl1e_hash_set(hw, hash_value); in atl1e_set_multi()
/Linux-v5.10/include/uapi/linux/
Dvirtio_net.h162 __le32 hash_value; member
/Linux-v5.10/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c221 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value) in atl1c_hash_set() argument
235 hash_reg = (hash_value >> 31) & 0x1; in atl1c_hash_set()
236 hash_bit = (hash_value >> 26) & 0x1F; in atl1c_hash_set()
Datl1c_hw.h31 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value);
Datl1c_main.c374 u32 hash_value; in atl1c_set_multi() local
396 hash_value = atl1c_hash_mc_addr(hw, ha->addr); in atl1c_set_multi()
397 atl1c_hash_set(hw, hash_value); in atl1c_set_multi()
/Linux-v5.10/drivers/net/ethernet/intel/e1000/
De1000_hw.c4295 u32 hash_value = 0; in e1000_hash_mc_addr() local
4307 hash_value = ((mc_addr[4] >> 4) | (((u16)mc_addr[5]) << 4)); in e1000_hash_mc_addr()
4311 hash_value = ((mc_addr[4] >> 3) | (((u16)mc_addr[5]) << 5)); in e1000_hash_mc_addr()
4315 hash_value = ((mc_addr[4] >> 2) | (((u16)mc_addr[5]) << 6)); in e1000_hash_mc_addr()
4319 hash_value = ((mc_addr[4]) | (((u16)mc_addr[5]) << 8)); in e1000_hash_mc_addr()
4323 hash_value &= 0xFFF; in e1000_hash_mc_addr()
4324 return hash_value; in e1000_hash_mc_addr()
De1000_main.c2239 u32 hash_value; in e1000_set_rx_mode() local
2297 hash_value = e1000_hash_mc_addr(hw, ha->addr); in e1000_set_rx_mode()
2298 hash_reg = (hash_value >> 5) & 0x7F; in e1000_set_rx_mode()
2299 hash_bit = hash_value & 0x1F; in e1000_set_rx_mode()
De1000_hw.h355 void e1000_mta_set(struct e1000_hw *hw, u32 hash_value);