Lines Matching refs:speed
81 int speed, ret; in px30_gmac_fix_mac_speed() local
94 switch (priv->phydev->speed) { in px30_gmac_fix_mac_speed()
96 speed = PX30_GMAC_SPEED_10M; in px30_gmac_fix_mac_speed()
102 speed = PX30_GMAC_SPEED_100M; in px30_gmac_fix_mac_speed()
108 debug("Unknown phy speed: %d\n", priv->phydev->speed); in px30_gmac_fix_mac_speed()
113 rk_clrsetreg(&grf->mac_con1, PX30_GMAC_SPEED_MASK, speed); in px30_gmac_fix_mac_speed()
130 switch (priv->phydev->speed) { in rk3228_gmac_fix_mac_speed()
141 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3228_gmac_fix_mac_speed()
156 switch (priv->phydev->speed) { in rk3288_gmac_fix_mac_speed()
167 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3288_gmac_fix_mac_speed()
181 int speed, ret; in rk3308_gmac_fix_mac_speed() local
194 switch (priv->phydev->speed) { in rk3308_gmac_fix_mac_speed()
196 speed = RK3308_GMAC_SPEED_10M; in rk3308_gmac_fix_mac_speed()
202 speed = RK3308_GMAC_SPEED_100M; in rk3308_gmac_fix_mac_speed()
208 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3308_gmac_fix_mac_speed()
213 rk_clrsetreg(&grf->mac_con0, RK3308_GMAC_SPEED_MASK, speed); in rk3308_gmac_fix_mac_speed()
230 switch (priv->phydev->speed) { in rk3328_gmac_fix_mac_speed()
241 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3328_gmac_fix_mac_speed()
262 switch (priv->phydev->speed) { in rk3368_gmac_fix_mac_speed()
273 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3368_gmac_fix_mac_speed()
288 switch (priv->phydev->speed) { in rk3399_gmac_fix_mac_speed()
299 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rk3399_gmac_fix_mac_speed()
312 int clk, speed; in rv1108_set_rmii_speed() local
322 switch (priv->phydev->speed) { in rv1108_set_rmii_speed()
325 speed = RV1108_GMAC_SPEED_10M; in rv1108_set_rmii_speed()
329 speed = RV1108_GMAC_SPEED_100M; in rv1108_set_rmii_speed()
332 debug("Unknown phy speed: %d\n", priv->phydev->speed); in rv1108_set_rmii_speed()
339 clk | speed); in rv1108_set_rmii_speed()