Lines Matching refs:pll_div
877 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
887 pll_div->div2 = 1; in pll_factors()
890 pll_div->div2 = 0; in pll_factors()
896 pll_div->n = Ndiv; in pll_factors()
911 pll_div->k = K; in pll_factors()
919 struct _pll_div pll_div; in wm8991_set_dai_pll() local
922 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8991_set_dai_pll()
934 snd_soc_component_write(component, WM8991_PLL1, pll_div.n | WM8991_SDM | in wm8991_set_dai_pll()
935 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll()
936 snd_soc_component_write(component, WM8991_PLL2, (u8)(pll_div.k>>8)); in wm8991_set_dai_pll()
937 snd_soc_component_write(component, WM8991_PLL3, (u8)(pll_div.k & 0xFF)); in wm8991_set_dai_pll()