Lines Matching refs:speed
33 void (*set_rgmii_speed)(struct rk_priv_data *bsp_priv, int speed);
34 void (*set_rmii_speed)(struct rk_priv_data *bsp_priv, int speed);
99 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
109 if (speed == 10) { in px30_set_rmii_speed()
117 } else if (speed == 100) { in px30_set_rmii_speed()
127 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
196 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
205 if (speed == 10) in rk3128_set_rgmii_speed()
208 else if (speed == 100) in rk3128_set_rgmii_speed()
211 else if (speed == 1000) in rk3128_set_rgmii_speed()
215 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3128_set_rgmii_speed()
218 static void rk3128_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rmii_speed() argument
227 if (speed == 10) { in rk3128_set_rmii_speed()
231 } else if (speed == 100) { in rk3128_set_rmii_speed()
236 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3128_set_rmii_speed()
317 static void rk3228_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rgmii_speed() argument
326 if (speed == 10) in rk3228_set_rgmii_speed()
329 else if (speed == 100) in rk3228_set_rgmii_speed()
332 else if (speed == 1000) in rk3228_set_rgmii_speed()
336 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3228_set_rgmii_speed()
339 static void rk3228_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rmii_speed() argument
348 if (speed == 10) in rk3228_set_rmii_speed()
352 else if (speed == 100) in rk3228_set_rmii_speed()
357 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3228_set_rmii_speed()
434 static void rk3288_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rgmii_speed() argument
443 if (speed == 10) in rk3288_set_rgmii_speed()
446 else if (speed == 100) in rk3288_set_rgmii_speed()
449 else if (speed == 1000) in rk3288_set_rgmii_speed()
453 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3288_set_rgmii_speed()
456 static void rk3288_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rmii_speed() argument
465 if (speed == 10) { in rk3288_set_rmii_speed()
469 } else if (speed == 100) { in rk3288_set_rmii_speed()
474 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3288_set_rmii_speed()
557 static void rk3328_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rgmii_speed() argument
566 if (speed == 10) in rk3328_set_rgmii_speed()
569 else if (speed == 100) in rk3328_set_rgmii_speed()
572 else if (speed == 1000) in rk3328_set_rgmii_speed()
576 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3328_set_rgmii_speed()
579 static void rk3328_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rmii_speed() argument
592 if (speed == 10) in rk3328_set_rmii_speed()
596 else if (speed == 100) in rk3328_set_rmii_speed()
601 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3328_set_rmii_speed()
678 static void rk3366_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rgmii_speed() argument
687 if (speed == 10) in rk3366_set_rgmii_speed()
690 else if (speed == 100) in rk3366_set_rgmii_speed()
693 else if (speed == 1000) in rk3366_set_rgmii_speed()
697 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3366_set_rgmii_speed()
700 static void rk3366_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rmii_speed() argument
709 if (speed == 10) { in rk3366_set_rmii_speed()
713 } else if (speed == 100) { in rk3366_set_rmii_speed()
718 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3366_set_rmii_speed()
789 static void rk3368_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rgmii_speed() argument
798 if (speed == 10) in rk3368_set_rgmii_speed()
801 else if (speed == 100) in rk3368_set_rgmii_speed()
804 else if (speed == 1000) in rk3368_set_rgmii_speed()
808 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3368_set_rgmii_speed()
811 static void rk3368_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rmii_speed() argument
820 if (speed == 10) { in rk3368_set_rmii_speed()
824 } else if (speed == 100) { in rk3368_set_rmii_speed()
829 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3368_set_rmii_speed()
900 static void rk3399_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rgmii_speed() argument
909 if (speed == 10) in rk3399_set_rgmii_speed()
912 else if (speed == 100) in rk3399_set_rgmii_speed()
915 else if (speed == 1000) in rk3399_set_rgmii_speed()
919 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3399_set_rgmii_speed()
922 static void rk3399_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rmii_speed() argument
931 if (speed == 10) { in rk3399_set_rmii_speed()
935 } else if (speed == 100) { in rk3399_set_rmii_speed()
940 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3399_set_rmii_speed()
976 static void rv1108_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rv1108_set_rmii_speed() argument
985 if (speed == 10) { in rv1108_set_rmii_speed()
989 } else if (speed == 100) { in rv1108_set_rmii_speed()
994 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rv1108_set_rmii_speed()
1358 static void rk_fix_speed(void *priv, unsigned int speed) in rk_fix_speed() argument
1368 bsp_priv->ops->set_rgmii_speed(bsp_priv, speed); in rk_fix_speed()
1371 bsp_priv->ops->set_rmii_speed(bsp_priv, speed); in rk_fix_speed()