Lines Matching defs:hwe
516 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, entry->hash);
518 hwe->ib1 &= ~MTK_FOE_IB1_STATE;
519 hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_INVALID);
557 struct mtk_foe_entry *hwe;
566 hwe = mtk_foe_get_entry(ppe, cur->hash);
567 ib1 = READ_ONCE(hwe->ib1);
581 entry->data.ib1 |= hwe->ib1 & ib1_ts_mask;
589 struct mtk_foe_entry *hwe;
601 hwe = mtk_foe_get_entry(ppe, entry->hash);
602 memcpy(&foe, hwe, ppe->eth->soc->foe_entry_size);
620 struct mtk_foe_entry *hwe;
633 hwe = mtk_foe_get_entry(ppe, hash);
634 memcpy(&hwe->data, &entry->data, eth->soc->foe_entry_size - sizeof(hwe->ib1));
636 hwe->ib1 = entry->ib1;
643 *mtk_foe_entry_ib2(eth, hwe) |= val;
701 struct mtk_foe_entry foe = {}, *hwe;
717 hwe = mtk_foe_get_entry(ppe, hash);
718 memcpy(&foe, hwe, soc->foe_entry_size);
740 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, hash);
750 if (FIELD_GET(MTK_FOE_IB1_STATE, hwe->ib1) == MTK_FOE_STATE_BIND)
755 if (unlikely(FIELD_GET(MTK_FOE_IB1_STATE, hwe->ib1) ==
764 if (found || !mtk_flow_entry_match(ppe->eth, entry, hwe)) {
966 struct mtk_foe_entry *hwe;
968 hwe = mtk_foe_get_entry(ppe, i + skip[k]);
969 hwe->ib1 |= MTK_FOE_IB1_STATIC;
1083 struct mtk_foe_entry *hwe = mtk_foe_get_entry(ppe, i);
1085 hwe->ib1 = FIELD_PREP(MTK_FOE_IB1_STATE,