Lines Matching refs:speed
93 static int get_clk_div_sgmii(struct ipq806x_gmac *gmac, unsigned int speed)
98 switch (speed) {
112 dev_err(dev, "Speed %dMbps not supported in SGMII\n", speed);
119 static int get_clk_div_rgmii(struct ipq806x_gmac *gmac, unsigned int speed)
124 switch (speed) {
138 dev_err(dev, "Speed %dMbps not supported in RGMII\n", speed);
145 static int ipq806x_gmac_set_speed(struct ipq806x_gmac *gmac, unsigned int speed)
152 div = get_clk_div_rgmii(gmac, speed);
158 div = get_clk_div_sgmii(gmac, speed);
238 static void ipq806x_gmac_fix_mac_speed(void *priv, unsigned int speed)
242 ipq806x_gmac_set_speed(gmac, speed);