Lines Matching refs:parent_rate
58 static unsigned long s5_calc_freq(unsigned long parent_rate, in s5_calc_freq() argument
61 unsigned long rate = parent_rate / conf->div; in s5_calc_freq()
76 unsigned long parent_rate, in s5_search_fractional() argument
94 conf->freq = s5_calc_freq(parent_rate, conf); in s5_search_fractional()
109 unsigned long parent_rate, in s5_calc_params() argument
112 if (parent_rate % rate) { in s5_calc_params()
116 div = DIV_ROUND_CLOSEST_ULL(parent_rate, rate); in s5_calc_params()
117 s5_search_fractional(rate, parent_rate, div, &alt1); in s5_calc_params()
124 div = parent_rate / rate; in s5_calc_params()
126 s5_search_fractional(rate, parent_rate, div, in s5_calc_params()
139 conf->div = parent_rate / rate; in s5_calc_params()
167 unsigned long parent_rate) in s5_pll_set_rate() argument
174 eff_rate = s5_calc_params(rate, parent_rate, &conf); in s5_pll_set_rate()
193 unsigned long parent_rate) in s5_pll_recalc_rate() argument
208 conf.freq = s5_calc_freq(parent_rate, &conf); in s5_pll_recalc_rate()
217 unsigned long *parent_rate) in s5_pll_round_rate() argument
221 return s5_calc_params(rate, *parent_rate, &conf); in s5_pll_round_rate()