Lines Matching refs:pll_div
746 struct pll_div { struct
753 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
759 pll_div->div2 = 0; in pll_factors()
763 pll_div->div2 = 1; in pll_factors()
772 pll_div->n = Ndiv; in pll_factors()
783 pll_div->k = K; in pll_factors()
793 struct pll_div pll_div; in wm8983_set_pll() local
802 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8983_set_pll()
812 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll()
813 | pll_div.n); in wm8983_set_pll()
815 snd_soc_write(codec, WM8983_PLL_K_3, pll_div.k & 0x1ff); in wm8983_set_pll()
816 snd_soc_write(codec, WM8983_PLL_K_2, (pll_div.k >> 9) & 0x1ff); in wm8983_set_pll()
817 snd_soc_write(codec, WM8983_PLL_K_1, (pll_div.k >> 18)); in wm8983_set_pll()