Lines Matching refs:ndiv_frac
95 u64 ndiv_int, ndiv_frac, residual; in pll_calc_param() local
110 ndiv_frac = div64_u64((u64)residual, (u64)parent_rate); in pll_calc_param()
113 vco_out->ndiv_frac = ndiv_frac; in pll_calc_param()
117 residual = (u64)vco_out->ndiv_frac * (u64)parent_rate; in pll_calc_param()
367 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
368 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
369 ctrl->ndiv_frac.shift); in pll_set_rate()
370 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate()
372 ctrl->ndiv_frac.offset, val); in pll_set_rate()
412 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in pll_set_rate()
413 val &= ~(bit_mask(ctrl->ndiv_frac.width) << in pll_set_rate()
414 ctrl->ndiv_frac.shift); in pll_set_rate()
415 val |= vco->ndiv_frac << ctrl->ndiv_frac.shift; in pll_set_rate()
416 iproc_pll_write(pll, pll->control_base, ctrl->ndiv_frac.offset, in pll_set_rate()
464 u64 ndiv, ndiv_int, ndiv_frac; in iproc_pll_recalc_rate() local
487 val = readl(pll->control_base + ctrl->ndiv_frac.offset); in iproc_pll_recalc_rate()
488 ndiv_frac = (val >> ctrl->ndiv_frac.shift) & in iproc_pll_recalc_rate()
489 bit_mask(ctrl->ndiv_frac.width); in iproc_pll_recalc_rate()
490 ndiv += ndiv_frac; in iproc_pll_recalc_rate()