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);
102 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
112 if (speed == 10) { in px30_set_rmii_speed()
120 } else if (speed == 100) { in px30_set_rmii_speed()
130 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
199 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
208 if (speed == 10) in rk3128_set_rgmii_speed()
211 else if (speed == 100) in rk3128_set_rgmii_speed()
214 else if (speed == 1000) in rk3128_set_rgmii_speed()
218 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3128_set_rgmii_speed()
221 static void rk3128_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rmii_speed() argument
230 if (speed == 10) { in rk3128_set_rmii_speed()
234 } else if (speed == 100) { in rk3128_set_rmii_speed()
239 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3128_set_rmii_speed()
320 static void rk3228_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rgmii_speed() argument
329 if (speed == 10) in rk3228_set_rgmii_speed()
332 else if (speed == 100) in rk3228_set_rgmii_speed()
335 else if (speed == 1000) in rk3228_set_rgmii_speed()
339 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3228_set_rgmii_speed()
342 static void rk3228_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rmii_speed() argument
351 if (speed == 10) in rk3228_set_rmii_speed()
355 else if (speed == 100) in rk3228_set_rmii_speed()
360 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3228_set_rmii_speed()
437 static void rk3288_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rgmii_speed() argument
446 if (speed == 10) in rk3288_set_rgmii_speed()
449 else if (speed == 100) in rk3288_set_rgmii_speed()
452 else if (speed == 1000) in rk3288_set_rgmii_speed()
456 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3288_set_rgmii_speed()
459 static void rk3288_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rmii_speed() argument
468 if (speed == 10) { in rk3288_set_rmii_speed()
472 } else if (speed == 100) { in rk3288_set_rmii_speed()
477 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3288_set_rmii_speed()
511 static void rk3308_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3308_set_rmii_speed() argument
520 if (speed == 10) { in rk3308_set_rmii_speed()
523 } else if (speed == 100) { in rk3308_set_rmii_speed()
527 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3308_set_rmii_speed()
608 static void rk3328_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rgmii_speed() argument
617 if (speed == 10) in rk3328_set_rgmii_speed()
620 else if (speed == 100) in rk3328_set_rgmii_speed()
623 else if (speed == 1000) in rk3328_set_rgmii_speed()
627 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3328_set_rgmii_speed()
630 static void rk3328_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rmii_speed() argument
643 if (speed == 10) in rk3328_set_rmii_speed()
647 else if (speed == 100) in rk3328_set_rmii_speed()
652 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3328_set_rmii_speed()
729 static void rk3366_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rgmii_speed() argument
738 if (speed == 10) in rk3366_set_rgmii_speed()
741 else if (speed == 100) in rk3366_set_rgmii_speed()
744 else if (speed == 1000) in rk3366_set_rgmii_speed()
748 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3366_set_rgmii_speed()
751 static void rk3366_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rmii_speed() argument
760 if (speed == 10) { in rk3366_set_rmii_speed()
764 } else if (speed == 100) { in rk3366_set_rmii_speed()
769 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3366_set_rmii_speed()
840 static void rk3368_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rgmii_speed() argument
849 if (speed == 10) in rk3368_set_rgmii_speed()
852 else if (speed == 100) in rk3368_set_rgmii_speed()
855 else if (speed == 1000) in rk3368_set_rgmii_speed()
859 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3368_set_rgmii_speed()
862 static void rk3368_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rmii_speed() argument
871 if (speed == 10) { in rk3368_set_rmii_speed()
875 } else if (speed == 100) { in rk3368_set_rmii_speed()
880 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3368_set_rmii_speed()
951 static void rk3399_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rgmii_speed() argument
960 if (speed == 10) in rk3399_set_rgmii_speed()
963 else if (speed == 100) in rk3399_set_rgmii_speed()
966 else if (speed == 1000) in rk3399_set_rgmii_speed()
970 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3399_set_rgmii_speed()
973 static void rk3399_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rmii_speed() argument
982 if (speed == 10) { in rk3399_set_rmii_speed()
986 } else if (speed == 100) { in rk3399_set_rmii_speed()
991 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3399_set_rmii_speed()
1064 static void rk3568_set_gmac_speed(struct rk_priv_data *bsp_priv, int speed) in rk3568_set_gmac_speed() argument
1070 switch (speed) { in rk3568_set_gmac_speed()
1081 dev_err(dev, "unknown speed value for GMAC speed=%d", speed); in rk3568_set_gmac_speed()
1129 static void rv1108_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rv1108_set_rmii_speed() argument
1138 if (speed == 10) { in rv1108_set_rmii_speed()
1142 } else if (speed == 100) { in rv1108_set_rmii_speed()
1147 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rv1108_set_rmii_speed()
1553 static void rk_fix_speed(void *priv, unsigned int speed) in rk_fix_speed() argument
1564 bsp_priv->ops->set_rgmii_speed(bsp_priv, speed); in rk_fix_speed()
1568 bsp_priv->ops->set_rmii_speed(bsp_priv, speed); in rk_fix_speed()