Lines Matching refs:pll_div
272 static void pll_factors(struct pll_ *pll_div, in pll_factors() argument
284 pll_div->pre_div = 1; in pll_factors()
287 pll_div->pre_div = 0; in pll_factors()
294 pll_div->n = Ndiv; in pll_factors()
309 pll_div->k = K; in pll_factors()
316 struct pll_ pll_div; in wm8974_set_dai_pll() local
330 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll()
332 snd_soc_component_write(component, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll()
333 snd_soc_component_write(component, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll()
334 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll()
335 snd_soc_component_write(component, WM8974_PLLK3, pll_div.k & 0x1ff); in wm8974_set_dai_pll()