Lines Matching defs:hash_value
386 * @hash_value: determines the MTA register and bit to set
389 * The hash_value is used to determine what register the bit is in, the
393 void igb_mta_set(struct e1000_hw *hw, u32 hash_value)
399 * set bit BitArray[hash_value]. So we figure out what register
406 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1);
407 hash_bit = hash_value & 0x1F;
428 u32 hash_value, hash_mask;
460 * case 0: hash_value = ((0x34 >> 4) | (0x56 << 4)) & 0xFFF = 0x563
461 * case 1: hash_value = ((0x34 >> 3) | (0x56 << 5)) & 0xFFF = 0xAC6
462 * case 2: hash_value = ((0x34 >> 2) | (0x56 << 6)) & 0xFFF = 0x163
463 * case 3: hash_value = ((0x34 >> 0) | (0x56 << 8)) & 0xFFF = 0x634
480 hash_value = hash_mask & (((mc_addr[4] >> (8 - bit_shift)) |
483 return hash_value;
527 u32 hash_value, hash_bit, hash_reg;
535 hash_value = igb_hash_mc_addr(hw, mc_addr_list);
537 hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1);
538 hash_bit = hash_value & 0x1F;