Searched refs:rate_error (Results 1 – 2 of 2) sorted by relevance
93 unsigned long rate_error, rate_error_prev = ~0UL; in clk_rate_round_helper() local107 rate_error = abs(freq - rounder->rate); in clk_rate_round_helper()108 if (rate_error < rate_error_prev) { in clk_rate_round_helper()110 rate_error_prev = rate_error; in clk_rate_round_helper()113 if (rate_error == 0) in clk_rate_round_helper()
420 unsigned long rate_error; in cdce925_clk_best_parent_rate() local425 rate_error = abs((long)actual_rate - (long)rate); in cdce925_clk_best_parent_rate()426 if (rate_error < best_rate_error) { in cdce925_clk_best_parent_rate()428 best_rate_error = rate_error; in cdce925_clk_best_parent_rate()