Searched refs:phy_intf_sel (Results 1 – 4 of 4) sorted by relevance
36 int phy_intf_sel; in starfive_dwmac_set_mode() local39 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()
53 static int nvt_set_phy_intf_sel(void *bsp_priv, u8 phy_intf_sel) in nvt_set_phy_intf_sel() argument59 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()
120 static int spacemit_set_phy_intf_sel(void *bsp_priv, u8 phy_intf_sel) in spacemit_set_phy_intf_sel() argument126 switch (phy_intf_sel) { in spacemit_set_phy_intf_sel()
3198 int phy_intf_sel = -EINVAL; in stmmac_get_phy_intf_sel() local3202 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() local3230 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 …]