Lines Matching defs:speed
104 int (*configure_func)(struct qcom_ethqos *ethqos, int speed);
179 ethqos_update_link_clk(struct qcom_ethqos *ethqos, int speed)
186 rate = rgmii_clock(speed);
377 static int ethqos_rgmii_macro_init(struct qcom_ethqos *ethqos, int speed)
403 switch (speed) {
512 dev_err(dev, "Invalid speed %d\n", speed);
519 static int ethqos_configure_rgmii(struct qcom_ethqos *ethqos, int speed)
542 if (speed == SPEED_1000) {
558 if (speed != SPEED_100 && speed != SPEED_10) {
580 if (speed == SPEED_1000)
583 ethqos_rgmii_macro_init(ethqos, speed);
588 static void ethqos_set_serdes_speed(struct qcom_ethqos *ethqos, int speed)
590 if (ethqos->serdes_speed != speed) {
591 phy_set_speed(ethqos->serdes_phy, speed);
592 ethqos->serdes_speed = speed;
604 static int ethqos_configure_sgmii(struct qcom_ethqos *ethqos, int speed)
609 switch (speed) {
639 static int ethqos_configure(struct qcom_ethqos *ethqos, int speed)
641 return ethqos->configure_func(ethqos, speed);
644 static void ethqos_fix_mac_speed(void *priv, int speed, unsigned int mode)
649 ethqos_update_link_clk(ethqos, speed);
650 ethqos_configure(ethqos, speed);