Lines Matching refs:pll_div
409 struct wm8978_pll_div *pll_div, unsigned int target, unsigned int source) in pll_factors() argument
417 pll_div->div2 = 1; in pll_factors()
420 pll_div->div2 = 0; in pll_factors()
428 pll_div->n = n_div; in pll_factors()
436 pll_div->k = k; in pll_factors()
474 struct wm8978_pll_div pll_div; in wm8978_configure_pll() local
536 pll_factors(component, &pll_div, f2, wm8978->f_mclk); in wm8978_configure_pll()
539 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll()
544 snd_soc_component_write(component, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll()
545 snd_soc_component_write(component, WM8978_PLL_K1, pll_div.k >> 18); in wm8978_configure_pll()
546 snd_soc_component_write(component, WM8978_PLL_K2, (pll_div.k >> 9) & 0x1ff); in wm8978_configure_pll()
547 snd_soc_component_write(component, WM8978_PLL_K3, pll_div.k & 0x1ff); in wm8978_configure_pll()