Searched refs:hv2 (Results 1 – 2 of 2) sorted by relevance
462 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local468 hv2 = hwe->ipv4.orig_tuple.dest_ip; in airoha_ppe_foe_get_entry_hash()476 hv2 = hwe->ipv6.src_ip[2] ^ hwe->ipv6.dest_ip[2]; in airoha_ppe_foe_get_entry_hash()477 hv2 ^= hwe->ipv6.dest_ip[0]; in airoha_ppe_foe_get_entry_hash()488 hv2 = l2->common.dest_mac_lo; in airoha_ppe_foe_get_entry_hash()489 hv2 = hv2 << 16; in airoha_ppe_foe_get_entry_hash()490 hv2 = hv2 | ((l2->common.src_mac_hi & 0xffff0000) >> 16); in airoha_ppe_foe_get_entry_hash()502 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash()504 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()