Lines Matching refs:pll_div
319 struct pll_div { struct
344 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument
359 pll_div->freqmode = post_table[i].freqmode; in pll_factors()
360 pll_div->mclkdiv = post_table[i].mclkdiv; in pll_factors()
372 pll_div->prescale = 0; in pll_factors()
376 pll_div->prescale = 1; in pll_factors()
385 pll_div->n = Ndiv; in pll_factors()
396 pll_div->k = K; in pll_factors()
417 struct pll_div pll_div; in wm8804_set_pll() local
419 ret = pll_factors(&pll_div, freq_out, freq_in, in wm8804_set_pll()
432 pll_div.n | (pll_div.prescale << 4)); in wm8804_set_pll()
435 pll_div.freqmode | (pll_div.mclkdiv << 3)); in wm8804_set_pll()
437 snd_soc_component_write(component, WM8804_PLL1, pll_div.k & 0xff); in wm8804_set_pll()
438 snd_soc_component_write(component, WM8804_PLL2, (pll_div.k >> 8) & 0xff); in wm8804_set_pll()
439 snd_soc_component_write(component, WM8804_PLL3, pll_div.k >> 16); in wm8804_set_pll()