Lines Matching full:ext_clock
27 pll->ext_clock, pll->pix_clock); in aptina_pll_calculate()
29 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate()
30 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate()
41 div = gcd(pll->pix_clock, pll->ext_clock); in aptina_pll_calculate()
43 div = pll->ext_clock / div; in aptina_pll_calculate()
57 (pll->ext_clock / limits->n_min * pll->m)); in aptina_pll_calculate()
61 (pll->ext_clock / limits->n_max * pll->m)); in aptina_pll_calculate()
80 * 4. the internal clock frequency, given by ext_clock / n, is in the in aptina_pll_calculate()
82 * 5. the output clock frequency, given by ext_clock / n * m, is in the in aptina_pll_calculate()
103 * ext_clock / (div * mf / p1) * m * mf >= out_clock_min in aptina_pll_calculate()
104 * ext_clock / (div * mf / p1) * m * mf <= out_clock_max in aptina_pll_calculate()
108 * p1 >= out_clock_min * div / (ext_clock * m) (7) in aptina_pll_calculate()
109 * p1 <= out_clock_max * div / (ext_clock * m) in aptina_pll_calculate()
113 * mf >= ext_clock * p1 / (int_clock_max * div) (8) in aptina_pll_calculate()
114 * mf <= ext_clock * p1 / (int_clock_min * div) in aptina_pll_calculate()
128 pll->ext_clock * pll->m)); in aptina_pll_calculate()
130 (pll->ext_clock * pll->m)); in aptina_pll_calculate()
137 mf_low = roundup(max(mf_min, DIV_ROUND_UP(pll->ext_clock * p1, in aptina_pll_calculate()
139 mf_high = min(mf_max, pll->ext_clock * p1 / in aptina_pll_calculate()