Lines Matching refs:fll_param
661 unsigned int fs, struct nau8540_fll *fll_param) in nau8540_calc_fll_param() argument
677 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8540_calc_fll_param()
686 fll_param->ratio = fll_ratio[i].val; in nau8540_calc_fll_param()
705 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8540_calc_fll_param()
710 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()
711 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8540_calc_fll_param()
712 fll_param->fll_frac = fvco & 0xFFFF; in nau8540_calc_fll_param()
717 struct nau8540_fll *fll_param) in nau8540_fll_apply() argument
721 NAU8540_CLK_SRC_MCLK | fll_param->mclk_src); in nau8540_fll_apply()
724 fll_param->ratio | (0x6 << NAU8540_ICTRL_LATCH_SFT)); in nau8540_fll_apply()
726 regmap_write(regmap, NAU8540_REG_FLL2, fll_param->fll_frac); in nau8540_fll_apply()
729 NAU8540_FLL_INTEGER_MASK, fll_param->fll_int); in nau8540_fll_apply()
733 fll_param->clk_ref_div << NAU8540_FLL_REF_DIV_SFT); in nau8540_fll_apply()
738 if (fll_param->fll_frac) { in nau8540_fll_apply()
761 struct nau8540_fll fll_param; in nau8540_set_pll() local
793 ret = nau8540_calc_fll_param(freq_in, fs, &fll_param); in nau8540_set_pll()
799 fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, in nau8540_set_pll()
800 fll_param.fll_int, fll_param.clk_ref_div); in nau8540_set_pll()
802 nau8540_fll_apply(nau8540->regmap, &fll_param); in nau8540_set_pll()