/linux-6.3-rc2/sound/soc/codecs/ |
A D | adau-utils.c | 15 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out, in adau_calc_pll_cfg() argument 21 if (!freq_out) { in adau_calc_pll_cfg() 27 if (freq_out % freq_in != 0) { in adau_calc_pll_cfg() 30 r = freq_out / freq_in; in adau_calc_pll_cfg() 31 i = freq_out % freq_in; in adau_calc_pll_cfg() 37 r = freq_out / freq_in; in adau_calc_pll_cfg()
|
A D | rl6231.c | 141 const unsigned int freq_out, struct rl6231_pll_code *pll_code) in rl6231_pll_calc() argument 147 unsigned int red_t = abs(freq_out - freq_in); in rl6231_pll_calc() 156 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc() 167 min_k = 80000000 / freq_out - 2; in rl6231_pll_calc() 168 max_k = 150000000 / freq_out - 2; in rl6231_pll_calc() 173 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc() 177 f_out = freq_out / div; in rl6231_pll_calc()
|
A D | wm8960.c | 693 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local 715 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll() 726 return freq_out; in wm8960_configure_pll() 733 best_freq_out = freq_out; in wm8960_configure_pll() 744 int freq_out, freq_in; in wm8960_configure_clocking() local 777 freq_out = freq_in; in wm8960_configure_clocking() 779 freq_out = wm8960->sysclk; in wm8960_configure_clocking() 796 if (freq_out < 0) { in wm8960_configure_clocking() 798 return freq_out; in wm8960_configure_clocking() 1204 if (freq_in && freq_out) { in wm8960_set_pll() [all …]
|
A D | ak4375.c | 255 unsigned int freq_in, freq_out; in ak4375_hw_params() local 267 freq_out = AK4375_PLL_FREQ_OUT_122880000; in ak4375_hw_params() 269 freq_out = AK4375_PLL_FREQ_OUT_112896000; in ak4375_hw_params() 271 return snd_soc_dai_set_pll(dai, 0, 0, freq_in, freq_out); in ak4375_hw_params() 275 unsigned int freq_in, unsigned int freq_out) in ak4375_dai_set_pll() argument 327 mdiv = freq_out / mclk - 1; in ak4375_dai_set_pll() 332 mdiv = freq_out / mclk - 1; in ak4375_dai_set_pll() 350 plm = freq_out / freq_in - 1; in ak4375_dai_set_pll() 362 ak4375->rate, mclk, freq_in, freq_out, ak4375->pld, plm, mdiv, div); in ak4375_dai_set_pll()
|
A D | rt1019.c | 326 unsigned int freq_in, unsigned int freq_out) in rt1019_set_dai_pll() argument 333 if (!freq_in || !freq_out) { in rt1019_set_dai_pll() 341 freq_out == rt1019->pll_out) in rt1019_set_dai_pll() 360 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1019_set_dai_pll() 384 rt1019->pll_out = freq_out; in rt1019_set_dai_pll()
|
A D | wm8995.c | 1724 int freq_in, int freq_out) in wm8995_get_fll_config() argument 1744 while (freq_out * (fll->outdiv + 1) < 90000000) { in wm8995_get_fll_config() 1749 freq_out *= fll->outdiv + 1; in wm8995_get_fll_config() 1770 Ndiv = freq_out / freq_in; in wm8995_get_fll_config() 1773 Nmod = freq_out % freq_in; in wm8995_get_fll_config() 1796 unsigned int freq_out) in wm8995_set_fll() argument 1829 if (freq_out) in wm8995_set_fll() 1850 if (freq_out) in wm8995_set_fll() 1851 ret = wm8995_get_fll_config(&fll, freq_in, freq_out); in wm8995_set_fll() 1886 if (freq_out) in wm8995_set_fll() [all …]
|
A D | rt1016.c | 456 unsigned int freq_out) in rt1016_set_component_pll() argument 462 if (!freq_in || !freq_out) { in rt1016_set_component_pll() 472 freq_out == rt1016->pll_out) in rt1016_set_component_pll() 491 ret = rl6231_pll_calc(freq_in, freq_out * 4, &pll_code); in rt1016_set_component_pll() 511 rt1016->pll_out = freq_out; in rt1016_set_component_pll()
|
A D | wm8900.c | 746 int fll_id, unsigned int freq_in, unsigned int freq_out) in wm8900_set_fll() argument 751 if (wm8900->fll_in == freq_in && wm8900->fll_out == freq_out) in wm8900_set_fll() 759 if (!freq_in || !freq_out) { in wm8900_set_fll() 765 wm8900->fll_out = freq_out; in wm8900_set_fll() 770 if (fll_factors(&fll_div, freq_in, freq_out) != 0) in wm8900_set_fll() 774 wm8900->fll_out = freq_out; in wm8900_set_fll() 810 int source, unsigned int freq_in, unsigned int freq_out) in wm8900_set_dai_pll() argument 812 return wm8900_set_fll(codec_dai->component, pll_id, freq_in, freq_out); in wm8900_set_dai_pll()
|
A D | rt1308.c | 619 unsigned int freq_out) in rt1308_set_component_pll() argument 626 freq_out == rt1308->pll_out) in rt1308_set_component_pll() 629 if (!freq_in || !freq_out) { in rt1308_set_component_pll() 665 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1308_set_component_pll() 682 rt1308->pll_out = freq_out; in rt1308_set_component_pll()
|
A D | nau8822.c | 722 unsigned int freq_in, unsigned int freq_out) in nau8822_set_pll() argument 730 freq_out == pll_param->freq_out) in nau8822_set_pll() 733 if (freq_out == 0) { in nau8822_set_pll() 740 fs = freq_out / 256; in nau8822_set_pll() 777 pll_param->freq_out = freq_out; in nau8822_set_pll()
|
A D | adau-utils.h | 5 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out,
|
A D | rl6231.h | 29 const unsigned int freq_out, struct rl6231_pll_code *pll_code);
|
A D | adav80x.c | 623 int source, unsigned int freq_in, unsigned int freq_out) in adav80x_set_pll() argument 640 if (!freq_out) in adav80x_set_pll() 656 if (freq_out > 12288000) { in adav80x_set_pll() 658 freq_out /= 2; in adav80x_set_pll() 662 switch (freq_out) { in adav80x_set_pll()
|
A D | alc5632.c | 678 int source, unsigned int freq_in, unsigned int freq_out) in alc5632_set_dai_pll() argument 701 if (!freq_in || !freq_out) in alc5632_set_dai_pll() 708 && codec_master_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll() 718 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll() 729 && codec_slave_pll_div[i].pll_out == freq_out) { in alc5632_set_dai_pll()
|
A D | wm8400.c | 922 unsigned int freq_out) in wm8400_set_dai_pll() argument 930 if (freq_in == wm8400->fll_in && freq_out == wm8400->fll_out) in wm8400_set_dai_pll() 933 if (freq_out) { in wm8400_set_dai_pll() 934 ret = fll_factors(wm8400, &factors, freq_in, freq_out); in wm8400_set_dai_pll() 944 wm8400->fll_out = freq_out; in wm8400_set_dai_pll() 956 if (!freq_out) in wm8400_set_dai_pll()
|
A D | rt1015.c | 830 unsigned int freq_out) in rt1015_set_component_pll() argument 836 if (!freq_in || !freq_out) { in rt1015_set_component_pll() 846 freq_out == rt1015->pll_out) in rt1015_set_component_pll() 865 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1015_set_component_pll() 883 rt1015->pll_out = freq_out; in rt1015_set_component_pll()
|
A D | wm8580.c | 461 int source, unsigned int freq_in, unsigned int freq_out) in wm8580_set_dai_pll() argument 492 if (freq_in && freq_out) { in wm8580_set_dai_pll() 493 ret = pll_factors(&pll_div, freq_out, freq_in); in wm8580_set_dai_pll() 499 state->out = freq_out; in wm8580_set_dai_pll() 506 if (!freq_in || !freq_out) in wm8580_set_dai_pll()
|
A D | wm8994.c | 2123 int freq_in, int freq_out) in wm8994_get_fll_config() argument 2148 freq_out *= fll->outdiv + 1; in wm8994_get_fll_config() 2169 Ndiv = freq_out / freq_in; in wm8994_get_fll_config() 2172 Nmod = freq_out % freq_in; in wm8994_get_fll_config() 2195 gcd_fll = gcd(freq_out, freq_in); in wm8994_get_fll_config() 2238 if (freq_out) in _wm8994_set_fll() 2249 freq_out = 12000000; in _wm8994_set_fll() 2264 if (freq_out) in _wm8994_set_fll() 2313 freq_in == freq_out && freq_out) { in _wm8994_set_fll() 2368 if (freq_out) { in _wm8994_set_fll() [all …]
|
A D | wm8510.c | 314 int source, unsigned int freq_in, unsigned int freq_out) in wm8510_set_dai_pll() argument 319 if (freq_in == 0 || freq_out == 0) { in wm8510_set_dai_pll() 330 pll_factors(freq_out*4, freq_in); in wm8510_set_dai_pll()
|
A D | rt1305.c | 794 unsigned int freq_out) in rt1305_set_component_pll() argument 801 freq_out == rt1305->pll_out) in rt1305_set_component_pll() 804 if (!freq_in || !freq_out) { in rt1305_set_component_pll() 842 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt1305_set_component_pll() 860 rt1305->pll_out = freq_out; in rt1305_set_component_pll()
|
A D | rt5660.c | 1010 unsigned int freq_in, unsigned int freq_out) in rt5660_set_dai_pll() argument 1018 freq_out == rt5660->pll_out) in rt5660_set_dai_pll() 1021 if (!freq_in || !freq_out) { in rt5660_set_dai_pll() 1047 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5660_set_dai_pll() 1064 rt5660->pll_out = freq_out; in rt5660_set_dai_pll()
|
A D | rt5682s.c | 2300 if (plla_table[i].freq_in == f_in && plla_table[i].freq_out == f_out) { in find_pll_inter_combination() 2319 pllb_table[j].freq_out == f_out) { in find_pll_inter_combination() 2333 unsigned int freq_out) in rt5682s_set_component_pll() argument 2339 freq_out == rt5682s->pll_out[pll_id]) in rt5682s_set_component_pll() 2342 if (!freq_in || !freq_out) { in rt5682s_set_component_pll() 2365 rt5682s->pll_comb = find_pll_inter_combination(freq_in, freq_out, in rt5682s_set_component_pll() 2373 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll() 2377 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll() 2384 a_map.freq_in, a_map.freq_out, a_map.m_bp, a_map.k_bp, in rt5682s_set_component_pll() 2400 b_map.freq_in, b_map.freq_out, b_map.m_bp, b_map.k_bp, in rt5682s_set_component_pll() [all …]
|
/linux-6.3-rc2/drivers/mfd/ |
A D | twl6040.c | 371 unsigned int freq_in, unsigned int freq_out) in twl6040_set_pll() argument 391 if (twl6040->sysclk_rate != freq_out) { in twl6040_set_pll() 392 switch (freq_out) { in twl6040_set_pll() 402 freq_out); in twl6040_set_pll() 438 if (freq_out != 19200000) { in twl6040_set_pll() 440 "freq_out %d not supported\n", freq_out); in twl6040_set_pll() 504 twl6040->sysclk_rate = freq_out; in twl6040_set_pll()
|
/linux-6.3-rc2/drivers/gpu/drm/bridge/ |
A D | chipone-icn6211.c | 256 unsigned int freq_p, freq_s, freq_out; in chipone_configure_pll() local 307 freq_out = (fin * m) / p; in chipone_configure_pll() 308 if (freq_out > 1000000000) in chipone_configure_pll() 312 freq_out /= BIT(s + 1); in chipone_configure_pll() 314 delta = abs(mode_clock - freq_out); in chipone_configure_pll()
|
/linux-6.3-rc2/sound/soc/pxa/ |
A D | mmp-sspa.c | 135 unsigned int freq_out) in mmp_sspa_set_dai_pll() argument 146 ret = clk_set_rate(sspa->sysclk, freq_out); in mmp_sspa_set_dai_pll() 151 ret = clk_set_rate(sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
|