Home
last modified time | relevance | path

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

/drivers/net/ethernet/intel/ixgb/
Dixgb_hw.c45 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value);
439 u32 hash_value; in ixgb_mc_addr_list_update() local
475 hash_value = ixgb_hash_mc_addr(hw, mca); in ixgb_mc_addr_list_update()
477 pr_debug("Hash value = 0x%03X\n", hash_value); in ixgb_mc_addr_list_update()
479 ixgb_mta_set(hw, hash_value); in ixgb_mc_addr_list_update()
501 u32 hash_value = 0; in ixgb_hash_mc_addr() local
514 hash_value = in ixgb_hash_mc_addr()
518 hash_value = in ixgb_hash_mc_addr()
522 hash_value = in ixgb_hash_mc_addr()
526 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in ixgb_hash_mc_addr()
[all …]
/drivers/net/ethernet/intel/igbvf/
Dvf.c191 u32 hash_value, hash_mask; in e1000_hash_mc_addr_vf() local
204 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr_vf()
207 return hash_value; in e1000_hash_mc_addr_vf()
230 u32 hash_value; in e1000_update_mc_addr_list_vf() local
247 hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); in e1000_update_mc_addr_list_vf()
248 hash_list[i] = hash_value & 0x0FFFF; in e1000_update_mc_addr_list_vf()
/drivers/net/ethernet/intel/igb/
De1000_mac.c343 void igb_mta_set(struct e1000_hw *hw, u32 hash_value) in igb_mta_set() argument
356 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set()
357 hash_bit = hash_value & 0x1F; in igb_mta_set()
378 u32 hash_value, hash_mask; in igb_hash_mc_addr() local
430 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr()
433 return hash_value; in igb_hash_mc_addr()
448 u32 hash_value, hash_bit, hash_reg; in igb_update_mc_addr_list() local
456 hash_value = igb_hash_mc_addr(hw, mc_addr_list); in igb_update_mc_addr_list()
458 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list()
459 hash_bit = hash_value & 0x1F; in igb_update_mc_addr_list()
De1000_mac.h67 void igb_mta_set(struct e1000_hw *hw, u32 hash_value);
/drivers/net/ethernet/ti/
Ddavinci_emac.c738 u32 hash_value = hash_get(mac_addr); in hash_add() local
740 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in hash_add()
744 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in hash_add()
750 if (priv->multicast_hash_cnt[hash_value] == 0) { in hash_add()
752 if (hash_value < 32) { in hash_add()
753 hash_bit = BIT(hash_value); in hash_add()
756 hash_bit = BIT((hash_value - 32)); in hash_add()
762 ++priv->multicast_hash_cnt[hash_value]; in hash_add()
777 u32 hash_value; in hash_del() local
780 hash_value = hash_get(mac_addr); in hash_del()
[all …]
/drivers/net/ethernet/atheros/atlx/
Datlx.c132 u32 hash_value; in atlx_set_multi() local
152 hash_value = atlx_hash_mc_addr(hw, ha->addr); in atlx_set_multi()
153 atlx_hash_set(hw, hash_value); in atlx_set_multi()
Datl2.c141 u32 hash_value; in atl2_set_multi() local
162 hash_value = atl2_hash_mc_addr(hw, ha->addr); in atl2_set_multi()
163 atl2_hash_set(hw, hash_value); in atl2_set_multi()
2385 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value) in atl2_hash_set() argument
2398 hash_reg = (hash_value >> 31) & 0x1; in atl2_hash_set()
2399 hash_bit = (hash_value >> 26) & 0x1F; in atl2_hash_set()
Datl2.h86 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value);
Datl1.h60 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value);
Datl1.c579 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) in atl1_hash_set() argument
593 hash_reg = (hash_value >> 31) & 0x1; in atl1_hash_set()
594 hash_bit = (hash_value >> 26) & 0x1F; in atl1_hash_set()
/drivers/net/ethernet/intel/e1000e/
Dmac.c266 u32 hash_value, hash_mask; in e1000_hash_mc_addr() local
318 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in e1000_hash_mc_addr()
321 return hash_value; in e1000_hash_mc_addr()
336 u32 hash_value, hash_bit, hash_reg; in e1000e_update_mc_addr_list_generic() local
344 hash_value = e1000_hash_mc_addr(hw, mc_addr_list); in e1000e_update_mc_addr_list_generic()
346 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in e1000e_update_mc_addr_list_generic()
347 hash_bit = hash_value & 0x1F; in e1000e_update_mc_addr_list_generic()
/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c185 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value) in atl1e_hash_set() argument
199 hash_reg = (hash_value >> 31) & 0x1; in atl1e_hash_set()
200 hash_bit = (hash_value >> 26) & 0x1F; in atl1e_hash_set()
Datl1e_hw.h39 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value);
Datl1e_main.c289 u32 hash_value; in atl1e_set_multi() local
311 hash_value = atl1e_hash_mc_addr(hw, ha->addr); in atl1e_set_multi()
312 atl1e_hash_set(hw, hash_value); in atl1e_set_multi()
/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c234 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value) in atl1c_hash_set() argument
248 hash_reg = (hash_value >> 31) & 0x1; in atl1c_hash_set()
249 hash_bit = (hash_value >> 26) & 0x1F; in atl1c_hash_set()
Datl1c_hw.h44 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value);
Datl1c_main.c391 u32 hash_value; in atl1c_set_multi() local
413 hash_value = atl1c_hash_mc_addr(hw, ha->addr); in atl1c_set_multi()
414 atl1c_hash_set(hw, hash_value); in atl1c_set_multi()
/drivers/net/ethernet/intel/e1000/
De1000_hw.c4423 u32 hash_value = 0; in e1000_hash_mc_addr() local
4435 hash_value = ((mc_addr[4] >> 4) | (((u16) mc_addr[5]) << 4)); in e1000_hash_mc_addr()
4439 hash_value = ((mc_addr[4] >> 3) | (((u16) mc_addr[5]) << 5)); in e1000_hash_mc_addr()
4443 hash_value = ((mc_addr[4] >> 2) | (((u16) mc_addr[5]) << 6)); in e1000_hash_mc_addr()
4447 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in e1000_hash_mc_addr()
4451 hash_value &= 0xFFF; in e1000_hash_mc_addr()
4452 return hash_value; in e1000_hash_mc_addr()
De1000_main.c2227 u32 hash_value; in e1000_set_rx_mode() local
2285 hash_value = e1000_hash_mc_addr(hw, ha->addr); in e1000_set_rx_mode()
2286 hash_reg = (hash_value >> 5) & 0x7F; in e1000_set_rx_mode()
2287 hash_bit = hash_value & 0x1F; in e1000_set_rx_mode()
De1000_hw.h380 void e1000_mta_set(struct e1000_hw *hw, u32 hash_value);