/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 45 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/ |
D | vf.c | 191 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/ |
D | e1000_mac.c | 343 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()
|
D | e1000_mac.h | 67 void igb_mta_set(struct e1000_hw *hw, u32 hash_value);
|
/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 738 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/ |
D | atlx.c | 132 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()
|
D | atl2.c | 141 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()
|
D | atl2.h | 86 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value);
|
D | atl1.h | 60 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value);
|
D | atl1.c | 579 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/ |
D | mac.c | 266 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/ |
D | atl1e_hw.c | 185 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()
|
D | atl1e_hw.h | 39 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value);
|
D | atl1e_main.c | 289 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/ |
D | atl1c_hw.c | 234 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()
|
D | atl1c_hw.h | 44 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value);
|
D | atl1c_main.c | 391 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/ |
D | e1000_hw.c | 4423 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()
|
D | e1000_main.c | 2227 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()
|
D | e1000_hw.h | 380 void e1000_mta_set(struct e1000_hw *hw, u32 hash_value);
|