Lines Matching defs:pll_div
377 static void pll_factors(struct wm8978_pll_div *pll_div, unsigned int target,
386 pll_div->div2 = 1;
389 pll_div->div2 = 0;
397 pll_div->n = n_div;
405 pll_div->k = k;
443 struct wm8978_pll_div pll_div;
508 pll_factors(&pll_div, f2, wm8978->f_mclk);
511 __func__, pll_div.n, pll_div.k, pll_div.div2);
516 snd_soc_write(codec, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n);
517 snd_soc_write(codec, WM8978_PLL_K1, pll_div.k >> 18);
518 snd_soc_write(codec, WM8978_PLL_K2, (pll_div.k >> 9) & 0x1ff);
519 snd_soc_write(codec, WM8978_PLL_K3, pll_div.k & 0x1ff);