Lines Matching refs:pllin_rate
750 unsigned long pllin_rate, in pcm512x_find_pll_coeff() argument
762 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff()
764 pll_rate, pllin_rate, common); in pcm512x_find_pll_coeff()
766 den = pllin_rate / common; in pcm512x_find_pll_coeff()
769 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff()
770 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
771 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
777 && 1000000 <= pllin_rate / P && pllin_rate / P <= 20000000) { in pcm512x_find_pll_coeff()
807 if (pllin_rate / P < 6667000 || 200000000 < pllin_rate / P) in pcm512x_find_pll_coeff()
827 P = DIV_ROUND_UP(pllin_rate, 20000000); in pcm512x_find_pll_coeff()
834 if (pllin_rate / P < 6667000) { in pcm512x_find_pll_coeff()
838 K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate); in pcm512x_find_pll_coeff()
847 pcm512x->real_pll = DIV_ROUND_DOWN_ULL((u64)K * pllin_rate, 10000 * P); in pcm512x_find_pll_coeff()
859 unsigned long pllin_rate) in pcm512x_pllin_dac_rate() argument
868 if (pllin_rate % osr_rate) in pcm512x_pllin_dac_rate()
876 if (pllin_rate / dac_rate > 128) in pcm512x_pllin_dac_rate()
879 if (!(pllin_rate % dac_rate)) in pcm512x_pllin_dac_rate()
894 unsigned long pllin_rate = 0; in pcm512x_set_dividers() local
943 pllin_rate = clk_get_rate(pcm512x->sclk); in pcm512x_set_dividers()
950 ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate); in pcm512x_set_dividers()
1006 dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate); in pcm512x_set_dividers()
1032 dacsrc_rate = pllin_rate; in pcm512x_set_dividers()