Home
last modified time | relevance | path

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

/Linux-v5.4/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()
257 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_gephy_path_setup()
275 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id) in mtk_gmac_rgmii_path_setup()
Dmtk_eth_soc.c58 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32()
63 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
68 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
84 static u32 _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write()
103 static u32 _mtk_mdio_read(struct mtk_eth *eth, int phy_addr, int phy_reg) in _mtk_mdio_read()
126 struct mtk_eth *eth = bus->priv; in mtk_mdio_write()
133 struct mtk_eth *eth = bus->priv; in mtk_mdio_read()
138 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
163 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, int speed) in mtk_gmac0_rgmii_adjust()
195 struct mtk_eth *eth = mac->hw; in mtk_mac_config()
[all …]
DMakefile6 obj-$(CONFIG_NET_MEDIATEK_SOC) += mtk_eth.o
7 mtk_eth-y := mtk_eth_soc.o mtk_sgmii.o mtk_eth_path.o
Dmtk_eth_soc.h484 struct mtk_eth;
850 struct mtk_eth { struct
906 struct mtk_eth *hw; argument
918 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
919 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
926 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id);
928 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
929 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
930 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
Dmtk_sgmii.c111 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id) in mtk_sgmii_restart_an()