Home
last modified time | relevance | path

Searched refs:foe (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c57 mtk_flow_set_ipv4_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv4_addr() argument
60 return mtk_foe_entry_set_ipv4_tuple(eth, foe, egress, in mtk_flow_set_ipv4_addr()
66 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr() argument
69 return mtk_foe_entry_set_ipv6_tuple(eth, foe, in mtk_flow_set_ipv6_addr()
191 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device() argument
199 mtk_foe_entry_set_wdma(eth, foe, info.wdma_idx, info.queue, in mtk_flow_set_output_device()
234 mtk_foe_entry_set_dsa(eth, foe, dsa_port); in mtk_flow_set_output_device()
239 mtk_foe_entry_set_queue(eth, foe, queue); in mtk_flow_set_output_device()
242 mtk_foe_entry_set_pse_port(eth, foe, pse_port); in mtk_flow_set_output_device()
274 struct mtk_foe_entry foe; in mtk_flow_offload_replace() local
[all …]
H A Dmtk_ppe.c590 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()
[all …]
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c612 u32 *hwe = ppe->foe + hash * sizeof(struct airoha_foe_entry); in airoha_ppe_foe_get_entry_locked()
633 return ppe->foe + hash * sizeof(struct airoha_foe_entry); in airoha_ppe_foe_get_entry_locked()
667 struct airoha_foe_entry *hwe = ppe->foe + hash * sizeof(*hwe); in airoha_ppe_foe_commit_sram_entry()
691 struct airoha_foe_entry *hwe = ppe->foe + hash * sizeof(*hwe); in airoha_ppe_foe_commit_entry()
1303 struct airoha_foe_entry *hwe = ppe->foe; in airoha_ppe_flush_sram_entries()
1503 ppe->foe = dmam_alloc_coherent(eth->dev, foe_size, &ppe->foe_dma, in airoha_ppe_init()
1505 if (!ppe->foe) in airoha_ppe_init()
H A Dairoha_eth.h558 void *foe; member
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmac.c223 s16 foe = FIELD_GET(MT_RXV5_FOE, rxv5); in mt7615_mac_fill_tm_rx() local
228 foe &= ~BIT(11); in mt7615_mac_fill_tm_rx()
229 foe *= 1000; in mt7615_mac_fill_tm_rx()
230 foe >>= 11; in mt7615_mac_fill_tm_rx()
232 if (foe > 2048) in mt7615_mac_fill_tm_rx()
233 foe -= 4096; in mt7615_mac_fill_tm_rx()
235 foe = (foe * foe_const) >> 15; in mt7615_mac_fill_tm_rx()
238 phy->test.last_freq_offset = foe; in mt7615_mac_fill_tm_rx()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmac.c569 s32 foe; in mt7915_mac_fill_rx_vector() local
596 foe = FIELD_GET(MT_CRXV_FOE_LO, v20) | in mt7915_mac_fill_rx_vector()
601 phy->test.last_freq_offset = foe; in mt7915_mac_fill_rx_vector()