Searched refs:hv2 (Results 1 – 2 of 2) sorted by relevance
361 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local367 hv2 = hwe->ipv4.orig_tuple.dest_ip; in airoha_ppe_foe_get_entry_hash()375 hv2 = hwe->ipv6.src_ip[2] ^ hwe->ipv6.dest_ip[2]; in airoha_ppe_foe_get_entry_hash()376 hv2 ^= hwe->ipv6.dest_ip[0]; in airoha_ppe_foe_get_entry_hash()388 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash()390 hash ^= hv1 ^ hv2 ^ hv3; in airoha_ppe_foe_get_entry_hash()
146 u32 hv1, hv2, hv3; in mtk_ppe_hash_entry() local153 hv2 = e->ipv4.orig.dest_ip; in mtk_ppe_hash_entry()161 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry()162 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry()174 hash = (hv1 & hv2) | ((~hv1) & hv3); in mtk_ppe_hash_entry()176 hash ^= hv1 ^ hv2 ^ hv3; in mtk_ppe_hash_entry()