Home
last modified time | relevance | path

Searched refs:rate_error (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/sh/clk/
Dcore.c93 unsigned long rate_error, rate_error_prev = ~0UL; in clk_rate_round_helper() local
107 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()
/Linux-v4.19/drivers/clk/
Dclk-cdce925.c420 unsigned long rate_error; in cdce925_clk_best_parent_rate() local
425 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()