Lines Matching refs:pll_div
840 struct pll_div {
847 static int pll_factors(struct pll_div *pll_div, unsigned int target,
853 pll_div->div2 = 0;
857 pll_div->div2 = 1;
866 pll_div->n = Ndiv;
877 pll_div->k = K;
888 struct pll_div pll_div;
896 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in);
902 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT)
903 | pll_div.n);
905 snd_soc_component_write(component, WM8985_PLL_K_3, pll_div.k & 0x1ff);
906 snd_soc_component_write(component, WM8985_PLL_K_2, (pll_div.k >> 9) & 0x1ff);
907 snd_soc_component_write(component, WM8985_PLL_K_1, (pll_div.k >> 18));