Lines Matching refs:hash_value
619 u32 hash_value = hash_get(mac_addr); in emac_hash_add() local
621 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in emac_hash_add()
625 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in emac_hash_add()
631 if (priv->multicast_hash_cnt[hash_value] == 0) { in emac_hash_add()
633 if (hash_value < 32) { in emac_hash_add()
634 hash_bit = BIT(hash_value); in emac_hash_add()
637 hash_bit = BIT((hash_value - 32)); in emac_hash_add()
643 ++priv->multicast_hash_cnt[hash_value]; in emac_hash_add()
658 u32 hash_value; in emac_hash_del() local
661 hash_value = hash_get(mac_addr); in emac_hash_del()
662 if (priv->multicast_hash_cnt[hash_value] > 0) { in emac_hash_del()
664 --priv->multicast_hash_cnt[hash_value]; in emac_hash_del()
669 if (priv->multicast_hash_cnt[hash_value] > 0) in emac_hash_del()
672 if (hash_value < 32) { in emac_hash_del()
673 hash_bit = BIT(hash_value); in emac_hash_del()
676 hash_bit = BIT((hash_value - 32)); in emac_hash_del()