Lines Matching refs:path

18 	int		(*set_path)(struct mtk_eth *eth, u64 path);
21 static const char *mtk_eth_path_name(u64 path) in mtk_eth_path_name() argument
23 switch (path) { in mtk_eth_path_name()
43 static int set_mux_gdm1_to_gmac1_esw(struct mtk_eth *eth, u64 path) in set_mux_gdm1_to_gmac1_esw() argument
48 switch (path) { in set_mux_gdm1_to_gmac1_esw()
71 mtk_eth_path_name(path), __func__, updated); 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() argument
81 switch (path) { in set_mux_gmac2_gmac0_to_gephy()
94 mtk_eth_path_name(path), __func__, updated); 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() argument
104 switch (path) { in set_mux_u3_gmac2_to_qphy()
125 mtk_eth_path_name(path), __func__, updated); 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() argument
135 switch (path) { in set_mux_gmac1_gmac2_to_sgmii_rgmii()
147 if ((path == MTK_GMAC1_RGMII && val == SYSCFG0_SGMII_GMAC1) || in set_mux_gmac1_gmac2_to_sgmii_rgmii()
148 (path == MTK_GMAC2_RGMII && val == SYSCFG0_SGMII_GMAC2)) in set_mux_gmac1_gmac2_to_sgmii_rgmii()
163 mtk_eth_path_name(path), __func__, updated); 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() argument
175 switch (path) { in set_mux_gmac12_to_gephy_sgmii()
194 mtk_eth_path_name(path), __func__, updated); 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() argument
227 if (!MTK_HAS_CAPS(eth->soc->caps, path)) { in mtk_eth_mux_setup()
229 mtk_eth_path_name(path)); in mtk_eth_mux_setup()
239 err = mtk_eth_muxc[i].set_path(eth, path); in mtk_eth_mux_setup()
254 u64 path; in mtk_gmac_sgmii_path_setup() local
256 path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_SGMII : in mtk_gmac_sgmii_path_setup()
260 return mtk_eth_mux_setup(eth, path); in mtk_gmac_sgmii_path_setup()
265 u64 path = 0; in mtk_gmac_gephy_path_setup() local
268 path = MTK_ETH_PATH_GMAC2_GEPHY; in mtk_gmac_gephy_path_setup()
270 if (!path) in mtk_gmac_gephy_path_setup()
274 return mtk_eth_mux_setup(eth, path); in mtk_gmac_gephy_path_setup()
279 u64 path; in mtk_gmac_rgmii_path_setup() local
281 path = (mac_id == 0) ? MTK_ETH_PATH_GMAC1_RGMII : in mtk_gmac_rgmii_path_setup()
285 return mtk_eth_mux_setup(eth, path); in mtk_gmac_rgmii_path_setup()