Lines Matching refs:ndiv_frac
85 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
100 ndiv_frac = div64_u64((u64)residual, (u64)parent_rate); in pll_calc_param()
103 vco_out->ndiv_frac = ndiv_frac; in pll_calc_param()
107 residual = (u64)vco_out->ndiv_frac * (u64)parent_rate; in pll_calc_param()
357 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
358 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
359 ctrl->ndiv_frac.shift); in pll_set_rate()
360 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate()
362 ctrl->ndiv_frac.offset, val); in pll_set_rate()
402 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
403 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
404 ctrl->ndiv_frac.shift); in pll_set_rate()
405 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate()
406 iproc_pll_write(pll, pll->control_base, ctrl->ndiv_frac.offset, in pll_set_rate()
454 u64 ndiv, ndiv_int, ndiv_frac; in iproc_pll_recalc_rate() local
477 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in iproc_pll_recalc_rate()
478 ndiv_frac = (val >> ctrl->ndiv_frac.shift) & in iproc_pll_recalc_rate()
479 bit_mask(ctrl->ndiv_frac.width); in iproc_pll_recalc_rate()
480 ndiv += ndiv_frac; in iproc_pll_recalc_rate()