Searched refs:actual_rate (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/drivers/input/keyboard/
H A Dbcm-keypad.c394 long actual_rate; bcm_kp_probe() local
401 actual_rate = clk_round_rate(kp->clk, desired_rate); bcm_kp_probe()
402 if (actual_rate <= 0) bcm_kp_probe()
405 error = clk_set_rate(kp->clk, actual_rate); bcm_kp_probe()
/linux-4.1.27/arch/avr32/mach-at32ap/
H A Dclock.c139 unsigned long flags, actual_rate; clk_round_rate() local
148 actual_rate = clk->set_rate(clk, rate, 0); clk_round_rate()
151 return actual_rate; clk_round_rate()
H A Dat32ap700x.c250 unsigned long actual_rate; pll1_set_rate() local
252 actual_rate = pll_set_rate(clk, rate, &ctrl); pll1_set_rate()
255 if (actual_rate != rate) pll1_set_rate()
260 clk->name, rate, actual_rate); pll1_set_rate()
264 return actual_rate; pll1_set_rate()
372 unsigned long parent_rate, child_div, actual_rate, div; cpu_clk_set_rate() local
383 actual_rate = parent_rate; cpu_clk_set_rate()
392 actual_rate = parent_rate / (1 << (cpusel + 1)); cpu_clk_set_rate()
396 clk->name, rate, actual_rate); cpu_clk_set_rate()
401 return actual_rate; cpu_clk_set_rate()
540 unsigned long parent_rate, actual_rate, div; genclk_set_rate() local
546 actual_rate = parent_rate; genclk_set_rate()
551 actual_rate = parent_rate / (2 * (div + 1)); genclk_set_rate()
555 clk->name, rate, actual_rate); genclk_set_rate()
560 return actual_rate; genclk_set_rate()
/linux-4.1.27/arch/arm/mach-ep93xx/
H A Dclock.c358 unsigned long max_rate, actual_rate, mclk_rate, rate_err = -1; calc_clk_div() local
389 actual_rate = mclk_rate / (__pdiv * __div); calc_clk_div()
391 if (!found || abs(actual_rate - rate) < rate_err) { calc_clk_div()
397 clk->rate = actual_rate; calc_clk_div()
398 rate_err = abs(actual_rate - rate); calc_clk_div()

Completed in 253 milliseconds