Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mediatek/
Dmtk_eth_path.c18 int (*set_path)(struct mtk_eth *eth, int path);
43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, int path) in set_mux_gdm1_to_gmac1_esw()
74 static int set_mux_gmac2_gmac0_to_gephy(struct mtk_eth *eth, int path) in set_mux_gmac2_gmac0_to_gephy()
97 static int set_mux_u3_gmac2_to_qphy(struct mtk_eth *eth, int path) in set_mux_u3_gmac2_to_qphy()
120 static int set_mux_gmac1_gmac2_to_sgmii_rgmii(struct mtk_eth *eth, int path) in set_mux_gmac1_gmac2_to_sgmii_rgmii()
158 static int set_mux_gmac12_to_gephy_sgmii(struct mtk_eth *eth, int path) in set_mux_gmac12_to_gephy_sgmii()
213 static int mtk_eth_mux_setup(struct mtk_eth *eth, int path) in mtk_eth_mux_setup()
242 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_sgmii_path_setup()
253 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_gephy_path_setup()
267 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_rgmii_path_setup()
Dmtk_eth_soc.c60 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32()
65 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
70 static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32()
81 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
97 static u32 _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write()
116 static u32 _mtk_mdio_read(struct mtk_eth *eth, int phy_addr, int phy_reg) in _mtk_mdio_read()
139 struct mtk_eth *eth = bus->priv; in mtk_mdio_write()
146 struct mtk_eth *eth = bus->priv; in mtk_mdio_read()
151 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
176 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, in mtk_gmac0_rgmii_adjust()
[all …]
Dmtk_ppe_offload.c52 mtk_eth_timestamp(struct mtk_eth *eth) in mtk_eth_timestamp()
151 mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe, in mtk_flow_set_output_device()
173 mtk_flow_offload_replace(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_replace()
360 mtk_flow_offload_destroy(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_destroy()
378 mtk_flow_offload_stats(struct mtk_eth *eth, struct flow_cls_offload *f) in mtk_flow_offload_stats()
407 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block_cb()
440 struct mtk_eth *eth = mac->hw; in mtk_eth_setup_tc_block()
492 int mtk_eth_offload_init(struct mtk_eth *eth) in mtk_eth_offload_init()
DMakefile6 obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o
7 mtk_eth-y := mtk_eth_soc.o mtk_sgmii.o mtk_eth_path.o mtk_ppe.o mtk_ppe_debugfs.o mtk_ppe_offload.o
Dmtk_eth_soc.h539 struct mtk_eth;
917 struct mtk_eth { struct
988 struct mtk_eth *hw; argument
1000 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
1001 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
1008 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id);
1010 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
1011 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
1012 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
1014 int mtk_eth_offload_init(struct mtk_eth *eth);
Dmtk_sgmii.c111 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id) in mtk_sgmii_restart_an()