Lines Matching refs:foe
590 struct mtk_foe_entry foe = {}; in mtk_flow_entry_update() local
604 memcpy(&foe, hwe, ppe->eth->soc->foe_entry_size); in mtk_flow_entry_update()
605 if (!mtk_flow_entry_match(ppe->eth, entry, &foe)) { in mtk_flow_entry_update()
610 entry->data.ib1 = foe.ib1; in mtk_flow_entry_update()
703 struct mtk_foe_entry foe = {}, *hwe; in mtk_foe_entry_commit_subflow() local
720 memcpy(&foe, hwe, soc->foe_entry_size); in mtk_foe_entry_commit_subflow()
721 foe.ib1 &= ib1_mask; in mtk_foe_entry_commit_subflow()
722 foe.ib1 |= entry->data.ib1 & ~ib1_mask; in mtk_foe_entry_commit_subflow()
724 l2 = mtk_foe_entry_l2(ppe->eth, &foe); in mtk_foe_entry_commit_subflow()
727 type = mtk_get_ib1_pkt_type(ppe->eth, foe.ib1); in mtk_foe_entry_commit_subflow()
729 memcpy(&foe.ipv4.new, &foe.ipv4.orig, sizeof(foe.ipv4.new)); in mtk_foe_entry_commit_subflow()
733 *mtk_foe_entry_ib2(ppe->eth, &foe) = entry->data.bridge.ib2; in mtk_foe_entry_commit_subflow()
735 __mtk_foe_entry_commit(ppe, &foe, hash); in mtk_foe_entry_commit_subflow()
886 void *foe; in mtk_ppe_init() local
903 foe = dmam_alloc_coherent(ppe->dev, in mtk_ppe_init()
906 if (!foe) in mtk_ppe_init()
909 ppe->foe_table = foe; in mtk_ppe_init()