Searched refs:rate_diff (Results 1 – 3 of 3) sorted by relevance
77 unsigned long rate_diff; in clk_composite_determine_rate() local123 rate_diff = req->rate - tmp_req.rate; in clk_composite_determine_rate()125 rate_diff = tmp_req.rate - req->rate; in clk_composite_determine_rate()127 if (!rate_diff || !req->best_parent_hw in clk_composite_determine_rate()128 || best_rate_diff > rate_diff) { in clk_composite_determine_rate()131 best_rate_diff = rate_diff; in clk_composite_determine_rate()135 if (!rate_diff) in clk_composite_determine_rate()
211 u32 rate_diff; in __serial_get_clock_div() local221 rate_diff = 0xFFFFFFFF; in __serial_get_clock_div()225 if (abs(comprate - rate) < rate_diff) { in __serial_get_clock_div()227 rate_diff = abs(comprate - rate); in __serial_get_clock_div()
267 unsigned long rate_diff, best_rate_diff = ULONG_MAX; in __clk_rcg2_select_conf() local299 rate_diff = abs_diff(req_rate, rate); in __clk_rcg2_select_conf()300 if (rate_diff < best_rate_diff) { in __clk_rcg2_select_conf()301 best_rate_diff = rate_diff; in __clk_rcg2_select_conf()