Lines Matching refs:pll_div
743 struct pll_div {
750 static int pll_factors(struct pll_div *pll_div, unsigned int target,
756 pll_div->div2 = 0;
760 pll_div->div2 = 1;
769 pll_div->n = Ndiv;
780 pll_div->k = K;
790 struct pll_div pll_div;
799 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in);
809 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT)
810 | pll_div.n);
812 snd_soc_component_write(component, WM8983_PLL_K_3, pll_div.k & 0x1ff);
813 snd_soc_component_write(component, WM8983_PLL_K_2, (pll_div.k >> 9) & 0x1ff);
814 snd_soc_component_write(component, WM8983_PLL_K_1, (pll_div.k >> 18));