Lines Matching defs:hash
144 u32 hash;
171 hash = (hv1 & hv2) | ((~hv1) & hv3);
172 hash = (hash >> 24) | ((hash & 0xffffff) << 8);
173 hash ^= hv1 ^ hv2 ^ hv3;
174 hash ^= hash >> 16;
175 hash <<= (ffs(eth->soc->hash_offset) - 1);
176 hash &= MTK_PPE_ENTRIES - 1;
178 return hash;
515 if (entry->hash != 0xffff) {
516 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, entry->hash);
526 acct = ppe->acct_table + entry->hash * sizeof(*acct);
531 entry->hash = 0xffff;
566 hwe = mtk_foe_get_entry(ppe, cur->hash);
570 cur->hash = 0xffff;
598 if (entry->hash == 0xffff)
601 hwe = mtk_foe_get_entry(ppe, entry->hash);
604 entry->hash = 0xffff;
616 u16 hash)
633 hwe = mtk_foe_get_entry(ppe, hash);
681 u32 hash;
686 hash = mtk_ppe_hash_entry(ppe->eth, &entry->data);
687 entry->hash = 0xffff;
689 hlist_add_head(&entry->list, &ppe->foe_flow[hash / soc->hash_offset]);
697 u16 hash)
712 flow_info->hash = hash;
714 &ppe->foe_flow[hash / soc->hash_offset]);
717 hwe = mtk_foe_get_entry(ppe, hash);
733 __mtk_foe_entry_commit(ppe, &foe, hash);
736 void __mtk_ppe_check_skb(struct mtk_ppe *ppe, struct sk_buff *skb, u16 hash)
739 struct hlist_head *head = &ppe->foe_flow[hash / soc->hash_offset];
740 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, hash);
759 entry->hash = 0xffff;
765 if (entry->hash != 0xffff)
766 entry->hash = 0xffff;
770 entry->hash = hash;
771 __mtk_foe_entry_commit(ppe, &entry->data, hash);
809 mtk_foe_entry_commit_subflow(ppe, entry, hash);