Home
last modified time | relevance | path

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

/sound/soc/codecs/
Dwm8900.c688 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
717 fll_div->fllclk_div = div >> 2; in fll_factors()
720 fll_div->fll_slow_lock_ref = 1; in fll_factors()
722 fll_div->fll_slow_lock_ref = 0; in fll_factors()
727 fll_div->fll_ratio = 8; in fll_factors()
729 fll_div->fll_ratio = 1; in fll_factors()
731 fll_div->n = Ndiv / fll_div->fll_ratio; in fll_factors()
732 Nmod = (target / fll_div->fll_ratio) % Fref; in fll_factors()
745 fll_div->k = K / 10; in fll_factors()
747 if (WARN_ON(target != Fout * (fll_div->fllclk_div << 2)) || in fll_factors()
[all …]
Dwm9081.c466 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
485 fll_div->fll_clk_ref_div = div / 2; in fll_factors()
504 fll_div->fll_outdiv = div; in fll_factors()
511 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
524 fll_div->n = Ndiv; in fll_factors()
539 fll_div->k = K / 10; in fll_factors()
542 fll_div->n, fll_div->k, in fll_factors()
543 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
544 fll_div->fll_clk_ref_div); in fll_factors()
554 struct _fll_div fll_div; in wm9081_set_fll() local
[all …]
Dwm8350.c975 static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, in fll_factors() argument
982 fll_div->div = 0x4; in fll_factors()
984 fll_div->div = 0x3; in fll_factors()
986 fll_div->div = 0x2; in fll_factors()
988 fll_div->div = 0x1; in fll_factors()
995 fll_div->ratio = 1; in fll_factors()
997 fll_div->ratio = 8; in fll_factors()
999 t1 = output * (1 << (fll_div->div + 1)); in fll_factors()
1000 t2 = input * fll_div->ratio; in fll_factors()
1002 fll_div->n = t1 / t2; in fll_factors()
[all …]
Dwm8993.c385 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
395 fll_div->fll_clk_ref_div = 0; in fll_factors()
398 fll_div->fll_clk_ref_div++; in fll_factors()
424 fll_div->fll_outdiv = div; in fll_factors()
431 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
444 fll_div->n = Ndiv; in fll_factors()
459 fll_div->k = K / 10; in fll_factors()
462 fll_div->n, fll_div->k, in fll_factors()
463 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
464 fll_div->fll_clk_ref_div); in fll_factors()
[all …]
Dwm8904.c1595 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1605 fll_div->fll_clk_ref_div = 0; in fll_factors()
1608 fll_div->fll_clk_ref_div++; in fll_factors()
1633 fll_div->fll_outdiv = div - 1; in fll_factors()
1640 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1653 fll_div->n = Ndiv; in fll_factors()
1668 fll_div->k = K / 10; in fll_factors()
1671 fll_div->n, fll_div->k, in fll_factors()
1672 fll_div->fll_fratio, fll_div->fll_outdiv, in fll_factors()
1673 fll_div->fll_clk_ref_div); in fll_factors()
[all …]
Dwm8996.c1918 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1928 fll_div->fll_refclk_div = 0; in fll_factors()
1931 fll_div->fll_refclk_div++; in fll_factors()
1946 fll_div->fll_loop_gain = 5; in fll_factors()
1948 fll_div->fll_loop_gain = 0; in fll_factors()
1951 fll_div->fll_ref_freq = 0; in fll_factors()
1953 fll_div->fll_ref_freq = 1; in fll_factors()
1966 fll_div->fll_outdiv = div - 1; in fll_factors()
1973 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1983 fll_div->n = target / (fratio * Fref); in fll_factors()
[all …]
Dwm8962.c2735 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
2745 fll_div->fll_refclk_div = 0; in fll_factors()
2748 fll_div->fll_refclk_div++; in fll_factors()
2773 fll_div->fll_outdiv = div - 1; in fll_factors()
2780 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
2790 fll_div->n = target / (fratio * Fref); in fll_factors()
2793 fll_div->theta = 0; in fll_factors()
2794 fll_div->lambda = 1; in fll_factors()
2798 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2800 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm2200.c1860 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1870 fll_div->fll_refclk_div = 0; in fll_factors()
1873 fll_div->fll_refclk_div++; in fll_factors()
1898 fll_div->fll_outdiv = div - 1; in fll_factors()
1905 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1915 fll_div->n = target / (fratio * Fref); in fll_factors()
1918 fll_div->theta = 0; in fll_factors()
1919 fll_div->lambda = 0; in fll_factors()
1923 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1925 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm5100.c1681 static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, in fll_factors() argument
1691 fll_div->fll_refclk_div = 0; in fll_factors()
1694 fll_div->fll_refclk_div++; in fll_factors()
1719 fll_div->fll_outdiv = div - 1; in fll_factors()
1726 fll_div->fll_fratio = fll_fratios[i].fll_fratio; in fll_factors()
1736 fll_div->n = target / (fratio * Fref); in fll_factors()
1739 fll_div->theta = 0; in fll_factors()
1740 fll_div->lambda = 0; in fll_factors()
1744 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1746 fll_div->lambda = (fratio * Fref) / gcd_fll; in fll_factors()
[all …]
Dwm8995.c1717 struct fll_div { struct
1725 static int wm8995_get_fll_config(struct fll_div *fll, in wm8995_get_fll_config() argument
1803 struct fll_div fll; in wm8995_set_fll()
Dwm8994.c2040 struct fll_div { struct
2049 static int wm8994_get_fll_config(struct wm8994 *control, struct fll_div *fll, in wm8994_get_fll_config() argument
2138 struct fll_div fll; in _wm8994_set_fll()