Lines Matching refs:vt_div
300 u16 vt_div, min_sys_div, max_sys_div, sys_div; in __ccs_pll_calculate_vt_tree() local
323 vt_div = div * more_mul; in __ccs_pll_calculate_vt_tree()
325 ccs_pll_find_vt_sys_div(dev, lim, pll, pll_fr, vt_div, vt_div, in __ccs_pll_calculate_vt_tree()
328 max_sys_div = (vt_div & 1) ? 1 : max_sys_div; in __ccs_pll_calculate_vt_tree()
336 if (vt_div % sys_div) in __ccs_pll_calculate_vt_tree()
339 pix_div = vt_div / sys_div; in __ccs_pll_calculate_vt_tree()
448 u16 min_vt_div, max_vt_div, vt_div; in ccs_pll_calculate_vt() local
528 for (vt_div = min_vt_div; vt_div <= max_vt_div; vt_div++) { in ccs_pll_calculate_vt()
529 u16 __max_sys_div = vt_div & 1 ? 1 : max_sys_div; in ccs_pll_calculate_vt()
536 pix_div = DIV_ROUND_UP(vt_div, sys_div); in ccs_pll_calculate_vt()
548 rounded_div = roundup(vt_div, best_pix_div); in ccs_pll_calculate_vt()
555 if (vt_div == rounded_div) in ccs_pll_calculate_vt()
562 pll->vt_bk.sys_clk_div = DIV_ROUND_UP(vt_div, best_pix_div); in ccs_pll_calculate_vt()