/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 20 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value); 414 u32 hash_value; in ixgb_mc_addr_list_update() local 450 hash_value = ixgb_hash_mc_addr(hw, mca); in ixgb_mc_addr_list_update() 452 pr_debug("Hash value = 0x%03X\n", hash_value); in ixgb_mc_addr_list_update() 454 ixgb_mta_set(hw, hash_value); in ixgb_mc_addr_list_update() 476 u32 hash_value = 0; in ixgb_hash_mc_addr() local 489 hash_value = in ixgb_hash_mc_addr() 493 hash_value = in ixgb_hash_mc_addr() 497 hash_value = in ixgb_hash_mc_addr() 501 hash_value = ((mc_addr[4]) | (((u16) mc_addr[5]) << 8)); in ixgb_hash_mc_addr() [all …]
|
/drivers/net/ethernet/intel/igbvf/ |
D | vf.c | 170 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()
|
/drivers/net/ethernet/ti/ |
D | davinci_emac.c | 598 u32 hash_value = hash_get(mac_addr); in emac_hash_add() local 600 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in emac_hash_add() 604 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in emac_hash_add() 610 if (priv->multicast_hash_cnt[hash_value] == 0) { in emac_hash_add() 612 if (hash_value < 32) { in emac_hash_add() 613 hash_bit = BIT(hash_value); in emac_hash_add() 616 hash_bit = BIT((hash_value - 32)); in emac_hash_add() 622 ++priv->multicast_hash_cnt[hash_value]; in emac_hash_add() 637 u32 hash_value; in emac_hash_del() local 640 hash_value = hash_get(mac_addr); in emac_hash_del() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_mac.c | 392 void igb_mta_set(struct e1000_hw *hw, u32 hash_value) in igb_mta_set() argument 405 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_mta_set() 406 hash_bit = hash_value & 0x1F; in igb_mta_set() 427 u32 hash_value, hash_mask; in igb_hash_mc_addr() local 479 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) | in igb_hash_mc_addr() 482 return hash_value; in igb_hash_mc_addr() 497 u32 hash_value, hash_bit, hash_reg; in igb_update_mc_addr_list() local 505 hash_value = igb_hash_mc_addr(hw, mc_addr_list); in igb_update_mc_addr_list() 507 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1); in igb_update_mc_addr_list() 508 hash_bit = hash_value & 0x1F; in igb_update_mc_addr_list()
|
D | e1000_mac.h | 44 void igb_mta_set(struct e1000_hw *hw, u32 hash_value);
|
/drivers/net/ethernet/atheros/atlx/ |
D | atlx.c | 119 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()
|
D | atl2.c | 127 u32 hash_value; in atl2_set_multi() local 148 hash_value = atl2_hash_mc_addr(hw, ha->addr); in atl2_set_multi() 149 atl2_hash_set(hw, hash_value); in atl2_set_multi() 2359 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value) in atl2_hash_set() argument 2372 hash_reg = (hash_value >> 31) & 0x1; in atl2_hash_set() 2373 hash_bit = (hash_value >> 26) & 0x1F; in atl2_hash_set()
|
D | atl2.h | 73 static void atl2_hash_set(struct atl2_hw *hw, u32 hash_value);
|
D | atl1.h | 47 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value);
|
D | atl1.c | 562 static void atl1_hash_set(struct atl1_hw *hw, u32 hash_value) in atl1_hash_set() argument 576 hash_reg = (hash_value >> 31) & 0x1; in atl1_hash_set() 577 hash_bit = (hash_value >> 26) & 0x1F; in atl1_hash_set()
|
/drivers/net/ethernet/intel/e1000e/ |
D | mac.c | 248 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()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 172 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()
|
D | atl1e_hw.h | 26 void atl1e_hash_set(struct atl1e_hw *hw, u32 hash_value);
|
D | atl1e_main.c | 277 u32 hash_value; in atl1e_set_multi() local 299 hash_value = atl1e_hash_mc_addr(hw, ha->addr); in atl1e_set_multi() 300 atl1e_hash_set(hw, hash_value); in atl1e_set_multi()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_hw.c | 221 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()
|
D | atl1c_hw.h | 31 void atl1c_hash_set(struct atl1c_hw *hw, u32 hash_value);
|
D | atl1c_main.c | 377 u32 hash_value; in atl1c_set_multi() local 399 hash_value = atl1c_hash_mc_addr(hw, ha->addr); in atl1c_set_multi() 400 atl1c_hash_set(hw, hash_value); in atl1c_set_multi()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 4304 u32 hash_value = 0; in e1000_hash_mc_addr() local 4316 hash_value = ((mc_addr[4] >> 4) | (((u16)mc_addr[5]) << 4)); in e1000_hash_mc_addr() 4320 hash_value = ((mc_addr[4] >> 3) | (((u16)mc_addr[5]) << 5)); in e1000_hash_mc_addr() 4324 hash_value = ((mc_addr[4] >> 2) | (((u16)mc_addr[5]) << 6)); in e1000_hash_mc_addr() 4328 hash_value = ((mc_addr[4]) | (((u16)mc_addr[5]) << 8)); in e1000_hash_mc_addr() 4332 hash_value &= 0xFFF; in e1000_hash_mc_addr() 4333 return hash_value; in e1000_hash_mc_addr()
|
D | e1000_main.c | 2233 u32 hash_value; in e1000_set_rx_mode() local 2291 hash_value = e1000_hash_mc_addr(hw, ha->addr); in e1000_set_rx_mode() 2292 hash_reg = (hash_value >> 5) & 0x7F; in e1000_set_rx_mode() 2293 hash_bit = hash_value & 0x1F; in e1000_set_rx_mode()
|
D | e1000_hw.h | 355 void e1000_mta_set(struct e1000_hw *hw, u32 hash_value);
|