Home
last modified time | relevance | path

Searched refs:phy_intf_sel (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-starfive.c36 int phy_intf_sel; in starfive_dwmac_set_mode() local
39 phy_intf_sel = stmmac_get_phy_intf_sel(plat_dat->phy_interface); in starfive_dwmac_set_mode()
40 if (phy_intf_sel != PHY_INTF_SEL_RGMII && in starfive_dwmac_set_mode()
41 phy_intf_sel != PHY_INTF_SEL_RMII) { in starfive_dwmac_set_mode()
44 return phy_intf_sel < 0 ? phy_intf_sel : -EINVAL; in starfive_dwmac_set_mode()
56 phy_intf_sel << args[1]); in starfive_dwmac_set_mode()
H A Ddwmac-nuvoton.c53 static int nvt_set_phy_intf_sel(void *bsp_priv, u8 phy_intf_sel) in nvt_set_phy_intf_sel() argument
59 if (phy_intf_sel == PHY_INTF_SEL_RGMII) { in nvt_set_phy_intf_sel()
69 } else if (phy_intf_sel == PHY_INTF_SEL_RMII) { in nvt_set_phy_intf_sel()
H A Ddwmac-spacemit.c120 static int spacemit_set_phy_intf_sel(void *bsp_priv, u8 phy_intf_sel) in spacemit_set_phy_intf_sel() argument
126 switch (phy_intf_sel) { in spacemit_set_phy_intf_sel()
H A Dstmmac_main.c3198 int phy_intf_sel = -EINVAL; in stmmac_get_phy_intf_sel() local
3202 phy_intf_sel = PHY_INTF_SEL_GMII_MII; in stmmac_get_phy_intf_sel()
3204 phy_intf_sel = PHY_INTF_SEL_RGMII; in stmmac_get_phy_intf_sel()
3206 phy_intf_sel = PHY_INTF_SEL_RMII; in stmmac_get_phy_intf_sel()
3208 phy_intf_sel = PHY_INTF_SEL_REVMII; in stmmac_get_phy_intf_sel()
3210 return phy_intf_sel; in stmmac_get_phy_intf_sel()
3219 int phy_intf_sel, ret; in stmmac_prereset_configure() local
3230 phy_intf_sel = stmmac_integrated_pcs_get_phy_intf_sel(pcs, in stmmac_prereset_configure()
3233 phy_intf_sel = stmmac_get_phy_intf_sel(interface); in stmmac_prereset_configure()
3236 if (phy_intf_sel < 0) { in stmmac_prereset_configure()
[all …]