Lines Matching refs:pll_div
753 struct _pll_div *pll_div, unsigned int source) in pll_factors() argument
764 pll_div->divsel = 1; in pll_factors()
768 pll_div->divctl = 1; in pll_factors()
770 pll_div->divctl = 0; in pll_factors()
773 pll_div->divsel = 0; in pll_factors()
774 pll_div->divctl = 0; in pll_factors()
781 pll_div->lf = 1; in pll_factors()
784 pll_div->lf = 0; in pll_factors()
792 pll_div->n = Ndiv; in pll_factors()
807 pll_div->k = K; in pll_factors()
819 struct _pll_div pll_div; in wm9713_set_pll() local
830 pll_factors(component, &pll_div, freq_in); in wm9713_set_pll()
832 if (pll_div.k == 0) { in wm9713_set_pll()
833 reg = (pll_div.n << 12) | (pll_div.lf << 11) | in wm9713_set_pll()
834 (pll_div.divsel << 9) | (pll_div.divctl << 8); in wm9713_set_pll()
838 reg2 = (pll_div.n << 12) | (pll_div.lf << 11) | (1 << 10) | in wm9713_set_pll()
839 (pll_div.divsel << 9) | (pll_div.divctl << 8); in wm9713_set_pll()
842 reg = reg2 | (0x5 << 4) | (pll_div.k >> 20); in wm9713_set_pll()
846 reg = reg2 | (0x4 << 4) | ((pll_div.k >> 16) & 0xf); in wm9713_set_pll()
850 reg = reg2 | (0x3 << 4) | ((pll_div.k >> 12) & 0xf); in wm9713_set_pll()
854 reg = reg2 | (0x2 << 4) | ((pll_div.k >> 8) & 0xf); in wm9713_set_pll()
858 reg = reg2 | (0x1 << 4) | ((pll_div.k >> 4) & 0xf); in wm9713_set_pll()
861 reg = reg2 | (0x0 << 4) | (pll_div.k & 0xf); /* K [3:0] */ in wm9713_set_pll()