Home
last modified time | relevance | path

Searched refs:fll_div (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.4/sound/soc/codecs/
Dwm8900.c685 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
714 fll_div->fllclk_div = div >> 2; in fll_factors()
717 fll_div->fll_slow_lock_ref = 1; in fll_factors()
719 fll_div->fll_slow_lock_ref = 0; in fll_factors()
724 fll_div->fll_ratio = 8; in fll_factors()
726 fll_div->fll_ratio = 1; in fll_factors()
728 fll_div->n = Ndiv / fll_div->fll_ratio; in fll_factors()
729 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors()
742 fll_div->k = K / 10; in fll_factors()
744 if (WARN_ON(target != Fout * (fll_div->fllclk_div << 2)) || in fll_factors()
[all …]
Dwm9081.c462 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
481 fll_div->fll_clk_ref_div = div / 2; in fll_factors()
500 fll_div->fll_outdiv = div; in fll_factors()
507 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
520 fll_div->n = Ndiv; in fll_factors()
535 fll_div->k = K / 10; in fll_factors()
538 fll_div->n, fll_div->k, in fll_factors()
539 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
540 fll_div->fll_clk_ref_div); in fll_factors()
550 struct _fll_div fll_div; in wm9081_set_fll() local
[all …]
Dwm8350.c972 static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, in fll_factors() argument
979 fll_div->div = 0x4; in fll_factors()
981 fll_div->div = 0x3; in fll_factors()
983 fll_div->div = 0x2; in fll_factors()
985 fll_div->div = 0x1; in fll_factors()
992 fll_div->ratio = 1; in fll_factors()
994 fll_div->ratio = 8; in fll_factors()
996 t1 = output * (1 << (fll_div->div + 1)); in fll_factors()
997 t2 = input * fll_div->ratio; in fll_factors()
999 fll_div->n = t1 / t2; in fll_factors()
[all …]
Dwm8993.c382 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
392 fll_div->fll_clk_ref_div = 0; in fll_factors()
395 fll_div->fll_clk_ref_div++; in fll_factors()
421 fll_div->fll_outdiv = div; in fll_factors()
428 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
441 fll_div->n = Ndiv; in fll_factors()
456 fll_div->k = K / 10; in fll_factors()
459 fll_div->n, fll_div->k, in fll_factors()
460 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
461 fll_div->fll_clk_ref_div); in fll_factors()
[all …]
Dwm8904.c1605 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1615 fll_div->fll_clk_ref_div = 0; in fll_factors()
1618 fll_div->fll_clk_ref_div++; in fll_factors()
1643 fll_div->fll_outdiv = div - 1; in fll_factors()
1650 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1663 fll_div->n = Ndiv; in fll_factors()
1678 fll_div->k = K / 10; in fll_factors()
1681 fll_div->n, fll_div->k, in fll_factors()
1682 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
1683 fll_div->fll_clk_ref_div); in fll_factors()
[all …]
Dwm8996.c1914 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1924 fll_div->fll_refclk_div = 0; in fll_factors()
1927 fll_div->fll_refclk_div++; in fll_factors()
1942 fll_div->fll_loop_gain = 5; in fll_factors()
1944 fll_div->fll_loop_gain = 0; in fll_factors()
1947 fll_div->fll_ref_freq = 0; in fll_factors()
1949 fll_div->fll_ref_freq = 1; in fll_factors()
1962 fll_div->fll_outdiv = div - 1; in fll_factors()
1969 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1979 fll_div->n = target / (fratio * Fref); in fll_factors()
[all …]
Dwm8962.c2732 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
2742 fll_div->fll_refclk_div = 0; in fll_factors()
2745 fll_div->fll_refclk_div++; in fll_factors()
2770 fll_div->fll_outdiv = div - 1; in fll_factors()
2777 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
2787 fll_div->n = target / (fratio * Fref); in fll_factors()
2790 fll_div->theta = 0; in fll_factors()
2791 fll_div->lambda = 0; in fll_factors()
2795 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2797 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm2200.c1857 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1867 fll_div->fll_refclk_div = 0; in fll_factors()
1870 fll_div->fll_refclk_div++; in fll_factors()
1895 fll_div->fll_outdiv = div - 1; in fll_factors()
1902 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1912 fll_div->n = target / (fratio * Fref); in fll_factors()
1915 fll_div->theta = 0; in fll_factors()
1916 fll_div->lambda = 0; in fll_factors()
1920 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1922 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm5100.c1677 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1687 fll_div->fll_refclk_div = 0; in fll_factors()
1690 fll_div->fll_refclk_div++; in fll_factors()
1715 fll_div->fll_outdiv = div - 1; in fll_factors()
1722 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1732 fll_div->n = target / (fratio * Fref); in fll_factors()
1735 fll_div->theta = 0; in fll_factors()
1736 fll_div->lambda = 0; in fll_factors()
1740 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1742 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm8995.c1715 struct fll_div { struct
1723 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument
1801 struct fll_div fll; in wm8995_set_fll()
Dwm8994.c2042 struct fll_div { struct
2051 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument
2140 struct fll_div fll; in _wm8994_set_fll()