Lines Matching refs:parent_rate
159 static unsigned long clk_audio_pll_fout(unsigned long parent_rate, in clk_audio_pll_fout() argument
162 unsigned long long fr = (unsigned long long)parent_rate * fracr; in clk_audio_pll_fout()
170 return parent_rate * (nd + 1) + fr; in clk_audio_pll_fout()
174 unsigned long parent_rate) in clk_audio_pll_frac_recalc_rate() argument
179 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate()
188 unsigned long parent_rate) in clk_audio_pll_pad_recalc_rate() argument
194 apad_rate = parent_rate / (apad_ck->qdaudio * apad_ck->div); in clk_audio_pll_pad_recalc_rate()
203 unsigned long parent_rate) in clk_audio_pll_pmc_recalc_rate() argument
208 apmc_rate = parent_rate / (apmc_ck->qdpmc + 1); in clk_audio_pll_pmc_recalc_rate()
217 unsigned long parent_rate, in clk_audio_pll_frac_compute_frac() argument
227 rem = do_div(tmp, parent_rate); in clk_audio_pll_frac_compute_frac()
234 tmp = DIV_ROUND_CLOSEST_ULL(tmp, parent_rate); in clk_audio_pll_frac_compute_frac()
274 unsigned long *parent_rate) in clk_audio_pll_pad_round_rate() argument
286 rate, *parent_rate); in clk_audio_pll_pad_round_rate()
312 *parent_rate = best_parent_rate; in clk_audio_pll_pad_round_rate()
325 unsigned long *parent_rate) in clk_audio_pll_pmc_round_rate() argument
336 rate, *parent_rate); in clk_audio_pll_pmc_round_rate()
349 *parent_rate = best_parent_rate; in clk_audio_pll_pmc_round_rate()
359 __func__, best_rate, *parent_rate, tmp_qd - 1); in clk_audio_pll_pmc_round_rate()
365 unsigned long parent_rate) in clk_audio_pll_frac_set_rate() argument
372 parent_rate); in clk_audio_pll_frac_set_rate()
377 ret = clk_audio_pll_frac_compute_frac(rate, parent_rate, &nd, &fracr); in clk_audio_pll_frac_set_rate()
388 unsigned long parent_rate) in clk_audio_pll_pad_set_rate() argument
394 rate, parent_rate); in clk_audio_pll_pad_set_rate()
399 tmp_div = parent_rate / rate; in clk_audio_pll_pad_set_rate()
412 unsigned long parent_rate) in clk_audio_pll_pmc_set_rate() argument
420 rate, parent_rate); in clk_audio_pll_pmc_set_rate()
422 apmc_ck->qdpmc = parent_rate / rate - 1; in clk_audio_pll_pmc_set_rate()