Lines Matching refs:ndiv_int
95 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
97 ndiv_int = target_rate / parent_rate; in pll_calc_param()
99 if (!ndiv_int || (ndiv_int > 255)) in pll_calc_param()
102 residual = target_rate - (ndiv_int * parent_rate); in pll_calc_param()
112 vco_out->ndiv_int = ndiv_int; in pll_calc_param()
116 vco_out->rate = vco_out->ndiv_int * parent_rate; in pll_calc_param()
291 u32 ndiv_int; in pll_fractional_change_only() local
299 val = readl(pll->control_base + ctrl->ndiv_int.offset); in pll_fractional_change_only()
300 ndiv_int = (val >> ctrl->ndiv_int.shift) & in pll_fractional_change_only()
301 bit_mask(ctrl->ndiv_int.width); in pll_fractional_change_only()
303 if (ndiv_int != vco->ndiv_int) in pll_fractional_change_only()
405 val = readl(pll->control_base + ctrl->ndiv_int.offset); in pll_set_rate()
406 val &= ~(bit_mask(ctrl->ndiv_int.width) << ctrl->ndiv_int.shift); in pll_set_rate()
407 val |= vco->ndiv_int << ctrl->ndiv_int.shift; in pll_set_rate()
408 iproc_pll_write(pll, pll->control_base, ctrl->ndiv_int.offset, val); in pll_set_rate()
464 u64 ndiv, ndiv_int, ndiv_frac; in iproc_pll_recalc_rate() local
481 val = readl(pll->control_base + ctrl->ndiv_int.offset); in iproc_pll_recalc_rate()
482 ndiv_int = (val >> ctrl->ndiv_int.shift) & in iproc_pll_recalc_rate()
483 bit_mask(ctrl->ndiv_int.width); in iproc_pll_recalc_rate()
484 ndiv = ndiv_int << 20; in iproc_pll_recalc_rate()