Lines Matching refs:pll_div
400 static int pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument
415 pll_div->freqmode = post_table[i].freqmode; in pll_factors()
416 pll_div->postscale = post_table[i].postscale; in pll_factors()
432 pll_div->prescale = 1; in pll_factors()
435 pll_div->prescale = 0; in pll_factors()
443 pll_div->n = Ndiv; in pll_factors()
451 pll_div->k = K; in pll_factors()
454 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, in pll_factors()
455 pll_div->postscale); in pll_factors()
467 struct _pll_div pll_div; in wm8580_set_dai_pll() local
475 memset(&pll_div, 0, sizeof(pll_div)); in wm8580_set_dai_pll()
493 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8580_set_dai_pll()
509 snd_soc_component_write(component, WM8580_PLLA1 + offset, pll_div.k & 0x1ff); in wm8580_set_dai_pll()
510 snd_soc_component_write(component, WM8580_PLLA2 + offset, (pll_div.k >> 9) & 0x1ff); in wm8580_set_dai_pll()
512 (pll_div.k >> 18 & 0xf) | (pll_div.n << 4)); in wm8580_set_dai_pll()
516 reg |= pll_div.prescale | pll_div.postscale << 1 | in wm8580_set_dai_pll()
517 pll_div.freqmode << 3; in wm8580_set_dai_pll()