• Home
  • Raw
  • Download

Lines Matching refs:hash

94 	u32 hash;  in mtk_ppe_hash_entry()  local
121 hash = (hv1 & hv2) | ((~hv1) & hv3); in mtk_ppe_hash_entry()
122 hash = (hash >> 24) | ((hash & 0xffffff) << 8); in mtk_ppe_hash_entry()
123 hash ^= hv1 ^ hv2 ^ hv3; in mtk_ppe_hash_entry()
124 hash ^= hash >> 16; in mtk_ppe_hash_entry()
125 hash <<= (ffs(eth->soc->hash_offset) - 1); in mtk_ppe_hash_entry()
126 hash &= MTK_PPE_ENTRIES - 1; in mtk_ppe_hash_entry()
128 return hash; in mtk_ppe_hash_entry()
435 if (entry->hash != 0xffff) { in __mtk_foe_entry_clear()
436 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, entry->hash); in __mtk_foe_entry_clear()
443 entry->hash = 0xffff; in __mtk_foe_entry_clear()
478 hwe = mtk_foe_get_entry(ppe, cur->hash); in mtk_flow_entry_update_l2()
482 cur->hash = 0xffff; in mtk_flow_entry_update_l2()
510 if (entry->hash == 0xffff) in mtk_flow_entry_update()
513 hwe = mtk_foe_get_entry(ppe, entry->hash); in mtk_flow_entry_update()
516 entry->hash = 0xffff; in mtk_flow_entry_update()
528 u16 hash) in __mtk_foe_entry_commit() argument
544 hwe = mtk_foe_get_entry(ppe, hash); in __mtk_foe_entry_commit()
574 u32 hash; in mtk_foe_entry_commit() local
579 hash = mtk_ppe_hash_entry(ppe->eth, &entry->data); in mtk_foe_entry_commit()
580 entry->hash = 0xffff; in mtk_foe_entry_commit()
582 hlist_add_head(&entry->list, &ppe->foe_flow[hash / soc->hash_offset]); in mtk_foe_entry_commit()
590 u16 hash) in mtk_foe_entry_commit_subflow() argument
605 flow_info->hash = hash; in mtk_foe_entry_commit_subflow()
607 &ppe->foe_flow[hash / soc->hash_offset]); in mtk_foe_entry_commit_subflow()
610 hwe = mtk_foe_get_entry(ppe, hash); in mtk_foe_entry_commit_subflow()
626 __mtk_foe_entry_commit(ppe, &foe, hash); in mtk_foe_entry_commit_subflow()
629 void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash) in __mtk_ppe_check_skb() argument
632 struct hlist_head *head = &ppe->foe_flow[hash / soc->hash_offset]; in __mtk_ppe_check_skb()
633 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, hash); in __mtk_ppe_check_skb()
652 entry->hash = 0xffff; in __mtk_ppe_check_skb()
658 if (entry->hash != 0xffff) in __mtk_ppe_check_skb()
659 entry->hash = 0xffff; in __mtk_ppe_check_skb()
663 entry->hash = hash; in __mtk_ppe_check_skb()
664 __mtk_foe_entry_commit(ppe, &entry->data, hash); in __mtk_ppe_check_skb()
700 mtk_foe_entry_commit_subflow(ppe, entry, hash); in __mtk_ppe_check_skb()