Searched refs:actual_rate (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/clk/qcom/ |
H A 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()
|
/linux/drivers/clk/ |
H A D | clk-ep93xx.c | 235 unsigned long best_rate = 0, actual_rate, mclk_rate; in ep93xx_mux_determine_rate() local 264 actual_rate = DIV_ROUND_CLOSEST(mclk_rate, pdiv * div); in ep93xx_mux_determine_rate() 265 if (is_best(rate, actual_rate, best_rate)) { in ep93xx_mux_determine_rate() 266 best_rate = actual_rate; in ep93xx_mux_determine_rate() 306 unsigned long actual_rate, mclk_rate, rate_err = ULONG_MAX; in ep93xx_ddiv_set_rate() local 317 actual_rate = DIV_ROUND_CLOSEST(mclk_rate, pdiv * div); in ep93xx_ddiv_set_rate() 318 if (abs(actual_rate - rate) < rate_err) { in ep93xx_ddiv_set_rate() 321 rate_err = abs(actual_rate - rate); in ep93xx_ddiv_set_rate()
|
H A D | clk-cdce925.c | 405 unsigned long actual_rate; in cdce925_clk_best_parent_rate() local 410 actual_rate = pll_rate / pdiv_now; in cdce925_clk_best_parent_rate() 411 rate_error = abs((long)actual_rate - (long)rate); in cdce925_clk_best_parent_rate()
|
/linux/drivers/input/keyboard/ |
H A D | bcm-keypad.c | 367 long actual_rate; in bcm_kp_probe() local 374 actual_rate = clk_round_rate(kp->clk, desired_rate); in bcm_kp_probe() 375 if (actual_rate <= 0) in bcm_kp_probe() 378 error = clk_set_rate(kp->clk, actual_rate); in bcm_kp_probe()
|