Lines Matching refs:ndiv_int
85 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
87 ndiv_int = target_rate / parent_rate; in pll_calc_param()
89 if (!ndiv_int || (ndiv_int > 255)) in pll_calc_param()
92 residual = target_rate - (ndiv_int * parent_rate); in pll_calc_param()
102 vco_out->ndiv_int = ndiv_int; in pll_calc_param()
106 vco_out->rate = vco_out->ndiv_int * parent_rate; in pll_calc_param()
281 u32 ndiv_int; in pll_fractional_change_only() local
289 val = readl(pll->control_base + ctrl->ndiv_int.offset); in pll_fractional_change_only()
290 ndiv_int = (val >> ctrl->ndiv_int.shift) & in pll_fractional_change_only()
291 bit_mask(ctrl->ndiv_int.width); in pll_fractional_change_only()
293 if (ndiv_int != vco->ndiv_int) in pll_fractional_change_only()
395 val = readl(pll->control_base + ctrl->ndiv_int.offset); in pll_set_rate()
396 val &= ~(bit_mask(ctrl->ndiv_int.width) << ctrl->ndiv_int.shift); in pll_set_rate()
397 val |= vco->ndiv_int << ctrl->ndiv_int.shift; in pll_set_rate()
398 iproc_pll_write(pll, pll->control_base, ctrl->ndiv_int.offset, val); in pll_set_rate()
454 u64 ndiv, ndiv_int, ndiv_frac; in iproc_pll_recalc_rate() local
471 val = readl(pll->control_base + ctrl->ndiv_int.offset); in iproc_pll_recalc_rate()
472 ndiv_int = (val >> ctrl->ndiv_int.shift) & in iproc_pll_recalc_rate()
473 bit_mask(ctrl->ndiv_int.width); in iproc_pll_recalc_rate()
474 ndiv = ndiv_int << 20; in iproc_pll_recalc_rate()