Lines Matching refs:parent_rate
92 static unsigned long cdce925_pll_calculate_rate(unsigned long parent_rate, in cdce925_pll_calculate_rate() argument
96 return parent_rate; /* In bypass mode runs at same frequency */ in cdce925_pll_calculate_rate()
97 return mult_frac(parent_rate, (unsigned long)n, (unsigned long)m); in cdce925_pll_calculate_rate()
101 unsigned long parent_rate) in cdce925_pll_recalc_rate() argument
106 return cdce925_pll_calculate_rate(parent_rate, data->n, data->m); in cdce925_pll_recalc_rate()
110 unsigned long parent_rate, u16 *n, u16 *m) in cdce925_pll_find_rate() argument
116 if (rate <= parent_rate) { in cdce925_pll_find_rate()
118 rate = parent_rate; in cdce925_pll_find_rate()
128 g = gcd(rate, parent_rate); in cdce925_pll_find_rate()
129 um = parent_rate / g; in cdce925_pll_find_rate()
147 unsigned long *parent_rate) in cdce925_pll_round_rate() argument
151 cdce925_pll_find_rate(rate, *parent_rate, &n, &m); in cdce925_pll_round_rate()
152 return (long)cdce925_pll_calculate_rate(*parent_rate, n, m); in cdce925_pll_round_rate()
156 unsigned long parent_rate) in cdce925_pll_set_rate() argument
160 if (!rate || (rate == parent_rate)) { in cdce925_pll_set_rate()
172 if (rate < parent_rate) { in cdce925_pll_set_rate()
174 rate, parent_rate); in cdce925_pll_set_rate()
178 cdce925_pll_find_rate(rate, parent_rate, &data->n, &data->m); in cdce925_pll_set_rate()
369 unsigned long parent_rate) in cdce925_clk_recalc_rate() argument
374 return parent_rate / data->pdiv; in cdce925_clk_recalc_rate()
379 unsigned long parent_rate) in cdce925_calc_divider() argument
385 if (rate >= parent_rate) in cdce925_calc_divider()
388 divider = DIV_ROUND_CLOSEST(parent_rate, rate); in cdce925_calc_divider()
439 unsigned long *parent_rate) in cdce925_clk_round_rate() argument
441 unsigned long l_parent_rate = *parent_rate; in cdce925_clk_round_rate()
447 *parent_rate = l_parent_rate; in cdce925_clk_round_rate()
456 unsigned long parent_rate) in cdce925_clk_set_rate() argument
460 data->pdiv = cdce925_calc_divider(rate, parent_rate); in cdce925_clk_set_rate()
475 unsigned long parent_rate) in cdce925_y1_calc_divider() argument
481 if (rate >= parent_rate) in cdce925_y1_calc_divider()
484 divider = DIV_ROUND_CLOSEST(parent_rate, rate); in cdce925_y1_calc_divider()
492 unsigned long *parent_rate) in cdce925_clk_y1_round_rate() argument
494 unsigned long l_parent_rate = *parent_rate; in cdce925_clk_y1_round_rate()
503 unsigned long parent_rate) in cdce925_clk_y1_set_rate() argument
507 data->pdiv = cdce925_y1_calc_divider(rate, parent_rate); in cdce925_clk_y1_set_rate()