Lines Matching refs:hash_value
741 u32 hash_value = hash_get(mac_addr); in hash_add() local
743 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in hash_add()
747 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in hash_add()
753 if (priv->multicast_hash_cnt[hash_value] == 0) { in hash_add()
755 if (hash_value < 32) { in hash_add()
756 hash_bit = BIT(hash_value); in hash_add()
759 hash_bit = BIT((hash_value - 32)); in hash_add()
765 ++priv->multicast_hash_cnt[hash_value]; in hash_add()
780 u32 hash_value; in hash_del() local
783 hash_value = hash_get(mac_addr); in hash_del()
784 if (priv->multicast_hash_cnt[hash_value] > 0) { in hash_del()
786 --priv->multicast_hash_cnt[hash_value]; in hash_del()
791 if (priv->multicast_hash_cnt[hash_value] > 0) in hash_del()
794 if (hash_value < 32) { in hash_del()
795 hash_bit = BIT(hash_value); in hash_del()
798 hash_bit = BIT((hash_value - 32)); in hash_del()