Lines Matching refs:limits
17 const struct aptina_pll_limits *limits, in aptina_pll_calculate() argument
30 if (pll->ext_clock < limits->ext_clock_min || in aptina_pll_calculate()
31 pll->ext_clock > limits->ext_clock_max) { in aptina_pll_calculate()
36 if (pll->pix_clock == 0 || pll->pix_clock > limits->pix_clock_max) { in aptina_pll_calculate()
56 mf_min = DIV_ROUND_UP(limits->m_min, pll->m); in aptina_pll_calculate()
57 mf_min = max(mf_min, limits->out_clock_min / in aptina_pll_calculate()
58 (pll->ext_clock / limits->n_min * pll->m)); in aptina_pll_calculate()
59 mf_min = max(mf_min, limits->n_min * limits->p1_min / div); in aptina_pll_calculate()
60 mf_max = limits->m_max / pll->m; in aptina_pll_calculate()
61 mf_max = min(mf_max, limits->out_clock_max / in aptina_pll_calculate()
62 (pll->ext_clock / limits->n_max * pll->m)); in aptina_pll_calculate()
63 mf_max = min(mf_max, DIV_ROUND_UP(limits->n_max * limits->p1_max, div)); in aptina_pll_calculate()
123 if (limits->p1_min == 0) { in aptina_pll_calculate()
128 p1_min = max(limits->p1_min, DIV_ROUND_UP(limits->out_clock_min * div, in aptina_pll_calculate()
130 p1_max = min(limits->p1_max, limits->out_clock_max * div / in aptina_pll_calculate()
139 limits->int_clock_max * div)), mf_inc); in aptina_pll_calculate()
141 (limits->int_clock_min * div)); in aptina_pll_calculate()