Lines Matching refs:pllin_rate
747 unsigned long pllin_rate, in pcm512x_find_pll_coeff() argument
759 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff()
761 pll_rate, pllin_rate, common); in pcm512x_find_pll_coeff()
763 den = pllin_rate / common; in pcm512x_find_pll_coeff()
766 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff()
767 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
768 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
774 && 1000000 <= pllin_rate / P && pllin_rate / P <= 20000000) { in pcm512x_find_pll_coeff()
804 if (pllin_rate / P < 6667000 || 200000000 < pllin_rate / P) in pcm512x_find_pll_coeff()
824 P = DIV_ROUND_UP(pllin_rate, 20000000); in pcm512x_find_pll_coeff()
831 if (pllin_rate / P < 6667000) { in pcm512x_find_pll_coeff()
835 K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate); in pcm512x_find_pll_coeff()
844 pcm512x->real_pll = DIV_ROUND_DOWN_ULL((u64)K * pllin_rate, 10000 * P); in pcm512x_find_pll_coeff()
856 unsigned long pllin_rate) in pcm512x_pllin_dac_rate() argument
865 if (pllin_rate % osr_rate) in pcm512x_pllin_dac_rate()
873 if (pllin_rate / dac_rate > 128) in pcm512x_pllin_dac_rate()
876 if (!(pllin_rate % dac_rate)) in pcm512x_pllin_dac_rate()
891 unsigned long pllin_rate = 0; in pcm512x_set_dividers() local
940 pllin_rate = clk_get_rate(pcm512x->sclk); in pcm512x_set_dividers()
947 ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate); in pcm512x_set_dividers()
1003 dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate); in pcm512x_set_dividers()
1029 dacsrc_rate = pllin_rate; in pcm512x_set_dividers()