Home
last modified time | relevance | path

Searched refs:pse_port (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c196 int pse_port, dsa_port, queue; in mtk_flow_set_output_device() local
204 pse_port = PSE_WDMA0_PORT; in mtk_flow_set_output_device()
207 pse_port = PSE_WDMA1_PORT; in mtk_flow_set_output_device()
210 pse_port = PSE_WDMA2_PORT; in mtk_flow_set_output_device()
216 pse_port = 3; in mtk_flow_set_output_device()
225 pse_port = PSE_GDM1_PORT; in mtk_flow_set_output_device()
227 pse_port = PSE_GDM2_PORT; in mtk_flow_set_output_device()
229 pse_port = PSE_GDM3_PORT; in mtk_flow_set_output_device()
237 queue = pse_port - 1; in mtk_flow_set_output_device()
242 mtk_foe_entry_set_pse_port(eth, foe, pse_port); in mtk_flow_set_output_device()
H A Dmtk_ppe.h376 int type, int l4proto, u8 pse_port, u8 *src_mac,
H A Dmtk_ppe.c213 int type, int l4proto, u8 pse_port, u8 *src_mac, in mtk_foe_entry_prepare() argument
228 val = FIELD_PREP(MTK_FOE_IB2_DEST_PORT_V2, pse_port) | in mtk_foe_entry_prepare()
239 val = FIELD_PREP(MTK_FOE_IB2_DEST_PORT, pse_port) | in mtk_foe_entry_prepare()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c306 u8 pse_port; in airoha_ppe_foe_entry_prepare() local
312 pse_port = port->id == 4 ? FE_PSE_PORT_GDM4 in airoha_ppe_foe_entry_prepare()
315 pse_port = 2; /* uplink relies on GDM2 in airoha_ppe_foe_entry_prepare()
319 val |= FIELD_PREP(AIROHA_FOE_IB2_PSE_PORT, pse_port) | in airoha_ppe_foe_entry_prepare()
553 u32 index, pse_port, val, *data, *ib2, *meter; in airoha_ppe_foe_flow_stats_update() local
581 pse_port = FIELD_GET(AIROHA_FOE_IB2_PSE_PORT, *ib2); in airoha_ppe_foe_flow_stats_update()
582 if (pse_port == FE_PSE_PORT_CDM4) in airoha_ppe_foe_flow_stats_update()
595 nbq = pse_port == 1 ? 6 : 5; in airoha_ppe_foe_flow_stats_update()
H A Dairoha_eth.c1687 u32 val, pse_port, chan, nbq; in airhoha_set_gdm2_loopback() local
1691 pse_port = port->id == AIROHA_GDM3_IDX ? FE_PSE_PORT_GDM3 in airhoha_set_gdm2_loopback()
1693 airoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(2), pse_port); in airhoha_set_gdm2_loopback()
1743 u32 pse_port, fe_cpu_port; in airoha_dev_init() local
1764 pse_port = FE_PSE_PORT_PPE2; in airoha_dev_init()
1773 pse_port = FE_PSE_PORT_PPE1; in airoha_dev_init()
1778 airoha_set_gdm_port_fwd_cfg(eth, REG_GDM_FWD_CFG(port->id), pse_port); in airoha_dev_init()
1779 ppe_id = pse_port == FE_PSE_PORT_PPE2 ? 1 : 0; in airoha_dev_init()