Lines Matching refs:hash_value
599 u32 hash_value = hash_get(mac_addr); in emac_hash_add() local
601 if (hash_value >= EMAC_NUM_MULTICAST_BITS) { in emac_hash_add()
605 hash_value, (EMAC_NUM_MULTICAST_BITS - 1)); in emac_hash_add()
611 if (priv->multicast_hash_cnt[hash_value] == 0) { in emac_hash_add()
613 if (hash_value < 32) { in emac_hash_add()
614 hash_bit = BIT(hash_value); in emac_hash_add()
617 hash_bit = BIT((hash_value - 32)); in emac_hash_add()
623 ++priv->multicast_hash_cnt[hash_value]; in emac_hash_add()
638 u32 hash_value; in emac_hash_del() local
641 hash_value = hash_get(mac_addr); in emac_hash_del()
642 if (priv->multicast_hash_cnt[hash_value] > 0) { in emac_hash_del()
644 --priv->multicast_hash_cnt[hash_value]; in emac_hash_del()
649 if (priv->multicast_hash_cnt[hash_value] > 0) in emac_hash_del()
652 if (hash_value < 32) { in emac_hash_del()
653 hash_bit = BIT(hash_value); in emac_hash_del()
656 hash_bit = BIT((hash_value - 32)); in emac_hash_del()