Lines Matching defs:hash
580 * hash_get - Calculate hash value from mac address
581 * @addr: mac address to delete from hash table
583 * Calculates hash value from mac address
588 u32 hash;
591 hash = 0;
595 hash ^= (tmpval >> 2) ^ (tmpval << 4);
597 hash ^= (tmpval >> 4) ^ (tmpval << 2);
599 hash ^= (tmpval >> 6) ^ (tmpval);
602 return hash & 0x3F;
606 * emac_hash_add - Hash function to add mac addr from hash table
608 * @mac_addr: mac address to delete from hash table
610 * Adds mac address to the internal hash table
629 /* set the hash bit only if not previously set */
631 rc = 1; /* hash value changed */
641 /* incr counter for num of mcast addr's mapped to "this" hash bit */
648 * emac_hash_del - Hash function to delete mac addr from hash table
650 * @mac_addr: mac address to delete from hash table
652 * Removes mac address from the internal hash table
662 /* dec cntr for num of mcast addr's mapped to this hash bit */
667 * to this hash bit. so return 0 */