Lines Matching refs:hash
76 u32 hash; in mtk_ppe_hash_entry() local
110 hash = (hv1 & hv2) | ((~hv1) & hv3); in mtk_ppe_hash_entry()
111 hash = (hash >> 24) | ((hash & 0xffffff) << 8); in mtk_ppe_hash_entry()
112 hash ^= hv1 ^ hv2 ^ hv3; in mtk_ppe_hash_entry()
113 hash ^= hash >> 16; in mtk_ppe_hash_entry()
114 hash <<= 1; in mtk_ppe_hash_entry()
115 hash &= MTK_PPE_ENTRIES - 1; in mtk_ppe_hash_entry()
117 return hash; in mtk_ppe_hash_entry()
342 u32 hash; in mtk_foe_entry_commit() local
348 hash = mtk_ppe_hash_entry(entry); in mtk_foe_entry_commit()
349 hwe = &ppe->foe_table[hash]; in mtk_foe_entry_commit()
352 hash++; in mtk_foe_entry_commit()
366 return hash; in mtk_foe_entry_commit()