Lines Matching refs:fll_param
1277 unsigned int fs, struct nau8824_fll *fll_param) in nau8824_calc_fll_param() argument
1293 fll_param->clk_ref_div = fll_pre_scalar[i].val; in nau8824_calc_fll_param()
1302 fll_param->ratio = fll_ratio[i].val; in nau8824_calc_fll_param()
1321 fll_param->mclk_src = mclk_src_scaling[fvco_sel].val; in nau8824_calc_fll_param()
1326 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param()
1327 fll_param->fll_int = (fvco >> 16) & 0x3FF; in nau8824_calc_fll_param()
1328 fll_param->fll_frac = fvco & 0xFFFF; in nau8824_calc_fll_param()
1333 struct nau8824_fll *fll_param) in nau8824_fll_apply() argument
1337 NAU8824_CLK_SRC_MCLK | fll_param->mclk_src); in nau8824_fll_apply()
1339 NAU8824_FLL_RATIO_MASK, fll_param->ratio); in nau8824_fll_apply()
1341 regmap_write(regmap, NAU8824_REG_FLL2, fll_param->fll_frac); in nau8824_fll_apply()
1344 NAU8824_FLL_INTEGER_MASK, fll_param->fll_int); in nau8824_fll_apply()
1348 fll_param->clk_ref_div << NAU8824_FLL_REF_DIV_SFT); in nau8824_fll_apply()
1355 if (fll_param->fll_frac) { in nau8824_fll_apply()
1377 struct nau8824_fll fll_param; in nau8824_set_pll() local
1381 ret = nau8824_calc_fll_param(freq_in, fs, &fll_param); in nau8824_set_pll()
1387 fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, in nau8824_set_pll()
1388 fll_param.fll_int, fll_param.clk_ref_div); in nau8824_set_pll()
1390 nau8824_fll_apply(nau8824->regmap, &fll_param); in nau8824_set_pll()