Home
last modified time | relevance | path

Searched refs:hv3 (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.c146 u32 hv1, hv2, hv3; in mtk_ppe_hash_entry() local
154 hv3 = e->ipv4.orig.src_ip; in mtk_ppe_hash_entry()
164 hv3 = e->ipv6.src_ip[1] ^ e->ipv6.dest_ip[1]; in mtk_ppe_hash_entry()
165 hv3 ^= e->ipv6.src_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()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c464 u32 hash, hv1, hv2, hv3; in airoha_ppe_foe_get_entry_hash() local
471 hv3 = hwe->ipv4.orig_tuple.src_ip; in airoha_ppe_foe_get_entry_hash()
481 hv3 = hwe->ipv6.src_ip[1] ^ hwe->ipv6.dest_ip[1]; in airoha_ppe_foe_get_entry_hash()
482 hv3 ^= hwe->ipv6.src_ip[0]; in airoha_ppe_foe_get_entry_hash()
494 hv3 = l2->common.dest_mac_hi; in airoha_ppe_foe_get_entry_hash()
504 hash = (hv1 & hv2) | ((~hv1) & hv3); in airoha_ppe_foe_get_entry_hash()
506 hash ^= hv1 ^ hv2 ^ hv3; in airoha_ppe_foe_get_entry_hash()