Home
last modified time | relevance | path

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

/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 u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32()
79 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
95 static u32 _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write()
114 static u32 _mtk_mdio_read(struct mtk_eth *eth, int phy_addr, int phy_reg) in _mtk_mdio_read()
137 struct mtk_eth *eth = bus->priv; in mtk_mdio_write()
144 struct mtk_eth *eth = bus->priv; in mtk_mdio_read()
149 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
174 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, in mtk_gmac0_rgmii_adjust()
[all …]
Dmtk_eth_soc.h516 struct mtk_eth;
882 struct mtk_eth { struct
938 struct mtk_eth *hw; argument
950 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg);
951 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
958 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id);
960 int mtk_gmac_sgmii_path_setup(struct mtk_eth *eth, int mac_id);
961 int mtk_gmac_gephy_path_setup(struct mtk_eth *eth, int mac_id);
962 int mtk_gmac_rgmii_path_setup(struct mtk_eth *eth, int mac_id);
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_sgmii.c112 void mtk_sgmii_restart_an(struct mtk_eth *eth, int mac_id) in mtk_sgmii_restart_an()