Lines Matching refs:speed

31 	void (*set_rgmii_speed)(struct rk_priv_data *bsp_priv, int speed);
32 void (*set_rmii_speed)(struct rk_priv_data *bsp_priv, int speed);
115 static void px30_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in px30_set_rmii_speed() argument
126 if (speed == 10) { in px30_set_rmii_speed()
134 } else if (speed == 100) { in px30_set_rmii_speed()
144 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in px30_set_rmii_speed()
213 static void rk3128_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rgmii_speed() argument
222 if (speed == 10) in rk3128_set_rgmii_speed()
225 else if (speed == 100) in rk3128_set_rgmii_speed()
228 else if (speed == 1000) in rk3128_set_rgmii_speed()
232 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3128_set_rgmii_speed()
235 static void rk3128_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3128_set_rmii_speed() argument
244 if (speed == 10) { in rk3128_set_rmii_speed()
248 } else if (speed == 100) { in rk3128_set_rmii_speed()
253 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3128_set_rmii_speed()
334 static void rk3228_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rgmii_speed() argument
343 if (speed == 10) in rk3228_set_rgmii_speed()
346 else if (speed == 100) in rk3228_set_rgmii_speed()
349 else if (speed == 1000) in rk3228_set_rgmii_speed()
353 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3228_set_rgmii_speed()
356 static void rk3228_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3228_set_rmii_speed() argument
365 if (speed == 10) in rk3228_set_rmii_speed()
369 else if (speed == 100) in rk3228_set_rmii_speed()
374 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3228_set_rmii_speed()
451 static void rk3288_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rgmii_speed() argument
460 if (speed == 10) in rk3288_set_rgmii_speed()
463 else if (speed == 100) in rk3288_set_rgmii_speed()
466 else if (speed == 1000) in rk3288_set_rgmii_speed()
470 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3288_set_rgmii_speed()
473 static void rk3288_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3288_set_rmii_speed() argument
482 if (speed == 10) { in rk3288_set_rmii_speed()
486 } else if (speed == 100) { in rk3288_set_rmii_speed()
491 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3288_set_rmii_speed()
525 static void rk3308_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3308_set_rmii_speed() argument
534 if (speed == 10) { in rk3308_set_rmii_speed()
537 } else if (speed == 100) { in rk3308_set_rmii_speed()
541 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3308_set_rmii_speed()
622 static void rk3328_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rgmii_speed() argument
631 if (speed == 10) in rk3328_set_rgmii_speed()
634 else if (speed == 100) in rk3328_set_rgmii_speed()
637 else if (speed == 1000) in rk3328_set_rgmii_speed()
641 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3328_set_rgmii_speed()
644 static void rk3328_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3328_set_rmii_speed() argument
657 if (speed == 10) in rk3328_set_rmii_speed()
661 else if (speed == 100) in rk3328_set_rmii_speed()
666 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3328_set_rmii_speed()
743 static void rk3366_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rgmii_speed() argument
752 if (speed == 10) in rk3366_set_rgmii_speed()
755 else if (speed == 100) in rk3366_set_rgmii_speed()
758 else if (speed == 1000) in rk3366_set_rgmii_speed()
762 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3366_set_rgmii_speed()
765 static void rk3366_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3366_set_rmii_speed() argument
774 if (speed == 10) { in rk3366_set_rmii_speed()
778 } else if (speed == 100) { in rk3366_set_rmii_speed()
783 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3366_set_rmii_speed()
854 static void rk3368_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rgmii_speed() argument
863 if (speed == 10) in rk3368_set_rgmii_speed()
866 else if (speed == 100) in rk3368_set_rgmii_speed()
869 else if (speed == 1000) in rk3368_set_rgmii_speed()
873 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3368_set_rgmii_speed()
876 static void rk3368_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3368_set_rmii_speed() argument
885 if (speed == 10) { in rk3368_set_rmii_speed()
889 } else if (speed == 100) { in rk3368_set_rmii_speed()
894 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3368_set_rmii_speed()
965 static void rk3399_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rgmii_speed() argument
974 if (speed == 10) in rk3399_set_rgmii_speed()
977 else if (speed == 100) in rk3399_set_rgmii_speed()
980 else if (speed == 1000) in rk3399_set_rgmii_speed()
984 dev_err(dev, "unknown speed value for RGMII! speed=%d", speed); in rk3399_set_rgmii_speed()
987 static void rk3399_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rk3399_set_rmii_speed() argument
996 if (speed == 10) { in rk3399_set_rmii_speed()
1000 } else if (speed == 100) { in rk3399_set_rmii_speed()
1005 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rk3399_set_rmii_speed()
1078 static void rk3568_set_gmac_speed(struct rk_priv_data *bsp_priv, int speed) in rk3568_set_gmac_speed() argument
1085 switch (speed) { in rk3568_set_gmac_speed()
1096 dev_err(dev, "unknown speed value for GMAC speed=%d", speed); in rk3568_set_gmac_speed()
1206 static void rk3576_set_gmac_speed(struct rk_priv_data *bsp_priv, int speed) in rk3576_set_gmac_speed() argument
1211 switch (speed) { in rk3576_set_gmac_speed()
1241 dev_err(dev, "unknown speed value for GMAC speed=%d", speed); in rk3576_set_gmac_speed()
1360 static void rk3588_set_gmac_speed(struct rk_priv_data *bsp_priv, int speed) in rk3588_set_gmac_speed() argument
1365 switch (speed) { in rk3588_set_gmac_speed()
1392 dev_err(dev, "unknown speed value for GMAC speed=%d", speed); in rk3588_set_gmac_speed()
1446 static void rv1108_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rv1108_set_rmii_speed() argument
1455 if (speed == 10) { in rv1108_set_rmii_speed()
1459 } else if (speed == 100) { in rv1108_set_rmii_speed()
1464 dev_err(dev, "unknown speed value for RMII! speed=%d", speed); in rv1108_set_rmii_speed()
1539 static void rv1126_set_rgmii_speed(struct rk_priv_data *bsp_priv, int speed) in rv1126_set_rgmii_speed() argument
1546 switch (speed) { in rv1126_set_rgmii_speed()
1557 dev_err(dev, "unknown speed value for RGMII speed=%d", speed); in rv1126_set_rgmii_speed()
1567 static void rv1126_set_rmii_speed(struct rk_priv_data *bsp_priv, int speed) in rv1126_set_rmii_speed() argument
1574 switch (speed) { in rv1126_set_rmii_speed()
1582 dev_err(dev, "unknown speed value for RGMII speed=%d", speed); in rv1126_set_rmii_speed()
1941 static void rk_fix_speed(void *priv, unsigned int speed, unsigned int mode) in rk_fix_speed() argument
1952 bsp_priv->ops->set_rgmii_speed(bsp_priv, speed); in rk_fix_speed()
1956 bsp_priv->ops->set_rmii_speed(bsp_priv, speed); in rk_fix_speed()