Home
last modified time | relevance | path

Searched refs:mtk_eth (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/drivers/net/ethernet/mediatek/
H A Dmtk_eth_path.c18 int (*set_path)(struct mtk_eth *eth, u64 path);
43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) in set_mux_gdm1_to_gmac1_esw()
76 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, u64 path) in set_mux_gmac2_gmac0_to_gephy()
99 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, u64 path) in set_mux_u3_gmac2_to_qphy()
130 static int set_mux_gmac1_gmac2_to_sgmii_rgmii(struct mtk_eth *eth, u64 path) in set_mux_gmac1_gmac2_to_sgmii_rgmii()
168 static int set_mux_gmac12_to_gephy_sgmii(struct mtk_eth *eth, u64 path) in set_mux_gmac12_to_gephy_sgmii()
223 static int mtk_eth_mux_setup(struct mtk_eth *eth, u64 path) in mtk_eth_mux_setup()
252 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_sgmii_path_setup()
263 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_gephy_path_setup()
277 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_rgmii_path_setup()
H A Dmtk_ppe.h325 struct mtk_eth *eth;
348 void mtk_ppe_deinit(struct mtk_eth *eth);
375 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry,
378 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth,
380 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth,
384 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth,
388 int mtk_foe_entry_set_dsa(struct mtk_eth *eth, struct mtk_foe_entry *entry,
390 int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry,
392 int mtk_foe_entry_set_pppoe(struct mtk_eth *eth, struct mtk_foe_entry *entry,
394 int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry,
[all …]
H A DMakefile6 obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o
7 mtk_eth-y := mtk_eth_soc.o mtk_eth_path.o mtk_ppe.o mtk_ppe_debugfs.o mtk_ppe_offload.o
8 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed.o mtk_wed_mcu.o mtk_wed_wo.o
10 mtk_eth-$(CONFIG_NET_MEDIATEK_SOC_WED) += mtk_wed_debugfs.o
H A Dmtk_eth_soc.c521 struct mtk_eth *eth = mac->hw; in mtk_mac_select_pcs()
2453 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); in mtk_napi_tx()
2483 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); in mtk_napi_rx()
3253 struct mtk_eth *eth = _eth; in mtk_handle_irq_rx()
3266 struct mtk_eth *eth = _eth; in mtk_handle_irq_tx()
3279 struct mtk_eth *eth = _eth; in mtk_handle_irq()
3669 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); in mtk_dim_rx()
3700 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); in mtk_dim_tx()
3924 struct mtk_eth *eth = container_of(del_work, struct mtk_eth, in mtk_hw_reset_monitor_work()
4223 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); in mtk_pending_work()
[all …]
H A Dmtk_eth_soc.h661 struct mtk_eth;
1251 struct mtk_eth { struct
1334 struct mtk_eth *hw; argument
1345 static inline bool mtk_is_netsys_v1(struct mtk_eth *eth) in mtk_is_netsys_v1()
1368 static inline u32 mtk_get_ib1_ts_mask(struct mtk_eth *eth) in mtk_get_ib1_ts_mask()
1376 static inline u32 mtk_get_ib1_ppoe_mask(struct mtk_eth *eth) in mtk_get_ib1_ppoe_mask()
1443 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1444 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1447 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1448 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
[all …]
H A Dmtk_wed.h14 struct mtk_eth;
36 struct mtk_eth *eth;
182 void mtk_wed_add_hw(struct device_node *np, struct mtk_eth *eth,
192 mtk_wed_add_hw(struct device_node *np, struct mtk_eth *eth, in mtk_wed_add_hw()
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()
66 mtk_flow_set_ipv6_addr(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_ipv6_addr()
189 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device()
246 mtk_flow_offload_replace(struct mtk_eth *eth, struct flow_cls_offload *f, in mtk_flow_offload_replace()
500 mtk_flow_offload_destroy(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_destroy()
520 mtk_flow_offload_stats(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_stats()
546 int mtk_flow_offload_cmd(struct mtk_eth *eth, struct flow_cls_offload *cls, in mtk_flow_offload_cmd()
577 struct mtk_eth *eth; in mtk_eth_setup_tc_block_cb()
595 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block()
651 int mtk_eth_offload_init(struct mtk_eth *eth, u8 id) in mtk_eth_offload_init()
H A Dmtk_ppe.c61 static u32 mtk_eth_timestamp(struct mtk_eth *eth) in mtk_eth_timestamp()
144 static u32 mtk_ppe_hash_entry(struct mtk_eth *eth, struct mtk_foe_entry *e) in mtk_ppe_hash_entry()
185 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_l2()
199 mtk_foe_entry_ib2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_ib2()
212 int mtk_foe_entry_prepare(struct mtk_eth *eth, struct mtk_foe_entry *entry, in mtk_foe_entry_prepare()
279 int mtk_foe_entry_set_pse_port(struct mtk_eth *eth, in mtk_foe_entry_set_pse_port()
297 int mtk_foe_entry_set_ipv4_tuple(struct mtk_eth *eth, in mtk_foe_entry_set_ipv4_tuple()
337 int mtk_foe_entry_set_ipv6_tuple(struct mtk_eth *eth, in mtk_foe_entry_set_ipv6_tuple()
483 mtk_flow_entry_match(struct mtk_eth *eth, struct mtk_flow_entry *entry, in mtk_flow_entry_match()
620 struct mtk_eth *eth = ppe->eth; in __mtk_foe_entry_commit()
[all …]
H A Dmtk_wed.c1963 struct mtk_eth *eth = dev->hw->eth; in mtk_wed_ppe_check()
2688 struct mtk_eth *eth = hw->eth; in mtk_wed_setup_tc_block()
2759 void mtk_wed_add_hw(struct device_node *np, struct mtk_eth *eth, in mtk_wed_add_hw()