Searched refs:rate_error (Results 1 – 3 of 3) sorted by relevance
706 unsigned long target = PICOS2KHZ(mode->pixclock) * 1000, rate_error; in sh_hdmi_rate_error() local713 rate_error = (long)*hdmi_rate > 0 ? abs(*hdmi_rate - target) : ULONG_MAX; in sh_hdmi_rate_error()714 if (rate_error && pdata->clk_optimize_parent) in sh_hdmi_rate_error()715 rate_error = pdata->clk_optimize_parent(target, hdmi_rate, parent_rate); in sh_hdmi_rate_error()726 rate_error, rate_error ? 10000 / (10 * target / rate_error) : 0, in sh_hdmi_rate_error()729 return rate_error; in sh_hdmi_rate_error()817 unsigned long rate_error; in sh_hdmi_read_edid() local835 rate_error = sh_hdmi_rate_error(hdmi, mode, hdmi_rate, parent_rate); in sh_hdmi_read_edid()838 if (f_refresh == mode->refresh || (!f_refresh && !rate_error)) in sh_hdmi_read_edid()846 else if (found && found_rate_error <= rate_error) in sh_hdmi_read_edid()[all …]
91 unsigned long rate_error, rate_error_prev = ~0UL; in clk_rate_round_helper() local105 rate_error = abs(freq - rounder->rate); in clk_rate_round_helper()106 if (rate_error < rate_error_prev) { in clk_rate_round_helper()108 rate_error_prev = rate_error; in clk_rate_round_helper()111 if (rate_error == 0) in clk_rate_round_helper()
141 unsigned long rate_error; in pll_set_rate() local167 rate_error = abs(actual - rate); in pll_set_rate()169 if (rate_error < rate_error_prev) { in pll_set_rate()172 rate_error_prev = rate_error; in pll_set_rate()175 if (rate_error == 0) in pll_set_rate()