Searched refs:actual_rate (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/clk/qcom/ |
D | clk-regmap-mux-div.c | 93 unsigned long actual_rate, best_rate = 0; in mux_div_determine_rate() local 104 actual_rate = mult_frac(parent_rate, 2, div); in mux_div_determine_rate() 106 if (is_better_rate(req_rate, best_rate, actual_rate)) { in mux_div_determine_rate() 107 best_rate = actual_rate; in mux_div_determine_rate() 113 if (actual_rate < req_rate || best_rate <= req_rate) in mux_div_determine_rate() 131 unsigned long actual_rate, best_rate = 0; in __mux_div_set_rate_and_parent() local 141 actual_rate = mult_frac(parent_rate, 2, div); in __mux_div_set_rate_and_parent() 143 if (is_better_rate(rate, best_rate, actual_rate)) { in __mux_div_set_rate_and_parent() 144 best_rate = actual_rate; in __mux_div_set_rate_and_parent() 149 if (actual_rate < rate || best_rate <= rate) in __mux_div_set_rate_and_parent()
|
/kernel/linux/linux-5.10/arch/arm/mach-ep93xx/ |
D | clock.c | 363 unsigned long max_rate, actual_rate, mclk_rate, rate_err = -1; in calc_clk_div() local 394 actual_rate = mclk_rate / (__pdiv * __div); in calc_clk_div() 396 if (!found || abs(actual_rate - rate) < rate_err) { in calc_clk_div() 402 clk->rate = actual_rate; in calc_clk_div() 403 rate_err = abs(actual_rate - rate); in calc_clk_div()
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
D | bcm-keypad.c | 392 long actual_rate; in bcm_kp_probe() local 399 actual_rate = clk_round_rate(kp->clk, desired_rate); in bcm_kp_probe() 400 if (actual_rate <= 0) in bcm_kp_probe() 403 error = clk_set_rate(kp->clk, actual_rate); in bcm_kp_probe()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-cdce925.c | 420 unsigned long actual_rate; in cdce925_clk_best_parent_rate() local 425 actual_rate = pll_rate / pdiv_now; in cdce925_clk_best_parent_rate() 426 rate_error = abs((long)actual_rate - (long)rate); in cdce925_clk_best_parent_rate()
|