Lines Matching refs:target
558 long clk_round_parent(struct clk *clk, unsigned long target, in clk_round_parent() argument
568 *best_freq = clk_round_rate(clk, target); in clk_round_parent()
569 return abs(target - *best_freq); in clk_round_parent()
573 if (unlikely(freq->frequency / target <= div_min - 1)) { in clk_round_parent()
577 if (error > target - freq_max) { in clk_round_parent()
578 error = target - freq_max; in clk_round_parent()
585 target - freq_max); in clk_round_parent()
593 if (unlikely(freq->frequency / target >= div_max)) { in clk_round_parent()
597 if (error > freq_min - target) { in clk_round_parent()
598 error = freq_min - target; in clk_round_parent()
605 freq_min - target); in clk_round_parent()
613 div = freq->frequency / target; in clk_round_parent()
617 if (freq_high - target < error) { in clk_round_parent()
618 error = freq_high - target; in clk_round_parent()
624 if (target - freq_low < error) { in clk_round_parent()
625 error = target - freq_low; in clk_round_parent()