Lines Matching refs:pll_div
777 struct pll_div { struct
784 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
790 pll_div->div2 = 0; in pll_factors()
794 pll_div->div2 = 1; in pll_factors()
803 pll_div->n = Ndiv; in pll_factors()
814 pll_div->k = K; in pll_factors()
825 struct pll_div pll_div; in wm8985_set_pll() local
833 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8985_set_pll()
839 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll()
840 | pll_div.n); in wm8985_set_pll()
842 snd_soc_write(codec, WM8985_PLL_K_3, pll_div.k & 0x1ff); in wm8985_set_pll()
843 snd_soc_write(codec, WM8985_PLL_K_2, (pll_div.k >> 9) & 0x1ff); in wm8985_set_pll()
844 snd_soc_write(codec, WM8985_PLL_K_1, (pll_div.k >> 18)); in wm8985_set_pll()