/linux-4.1.27/arch/arm/mach-lpc32xx/ |
D | common.c | 95 u32 ilfreq, p, m, n, fcco, fref, cfreq; in clk_check_pll_setup() local 119 fref = ilfreq / n; in clk_check_pll_setup() 125 fref = ilfreq / n; in clk_check_pll_setup() 132 fref = ilfreq / n; in clk_check_pll_setup() 139 fref = 1000000; in clk_check_pll_setup() 147 fref = 1000000; in clk_check_pll_setup() 154 if (fref < 1000000 || fref > 27000000) in clk_check_pll_setup()
|
/linux-4.1.27/drivers/clk/ |
D | clk-clps711x.c | 50 u32 fref) in _clps711x_clk_init() argument 67 if (((tmp >= 10) && (tmp <= 50)) || !fref) in _clps711x_clk_init() 70 f_pll = fref; in _clps711x_clk_init() 179 u32 fref = 0; in clps711x_clk_init_dt() local 181 WARN_ON(of_property_read_u32(np, "startup-frequency", &fref)); in clps711x_clk_init_dt() 183 clps711x_clk = _clps711x_clk_init(base, fref); in clps711x_clk_init_dt()
|
D | clk-xgene.c | 88 unsigned long fref; in xgene_clk_pll_recalc_rate() local 113 fref = parent_rate / nref; in xgene_clk_pll_recalc_rate() 114 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
|
/linux-4.1.27/arch/arm/mach-imx/ |
D | common.h | 48 int mx1_clocks_init(unsigned long fref); 49 int mx21_clocks_init(unsigned long lref, unsigned long fref); 50 int mx27_clocks_init(unsigned long fref); 51 int mx31_clocks_init(unsigned long fref);
|
D | clk-imx1.c | 45 static void __init _mx1_clocks_init(unsigned long fref) in _mx1_clocks_init() argument 48 clk[IMX1_CLK_CLK32] = imx_obtain_fixed_clock("clk32", fref); in _mx1_clocks_init() 76 int __init mx1_clocks_init(unsigned long fref) in mx1_clocks_init() argument 80 _mx1_clocks_init(fref); in mx1_clocks_init()
|
D | clk-imx27.c | 45 static void __init _mx27_clocks_init(unsigned long fref) in _mx27_clocks_init() argument 50 clk[IMX27_CLK_CKIH] = imx_clk_fixed("ckih", fref); in _mx27_clocks_init() 164 int __init mx27_clocks_init(unsigned long fref) in mx27_clocks_init() argument 168 _mx27_clocks_init(fref); in mx27_clocks_init() 240 u32 fref = 26000000; /* default */ in mx27_clocks_init_dt() local 246 if (!of_property_read_u32(refnp, "clock-frequency", &fref)) in mx27_clocks_init_dt() 252 _mx27_clocks_init(fref); in mx27_clocks_init_dt()
|
D | clk-imx31.c | 51 int __init mx31_clocks_init(unsigned long fref) in mx31_clocks_init() argument 57 clk[ckih] = imx_clk_fixed("ckih", fref); in mx31_clocks_init() 193 u32 fref = 26000000; /* default */ in mx31_clocks_init_dt() local 199 if (!of_property_read_u32(np, "clock-frequency", &fref)) in mx31_clocks_init_dt() 203 return mx31_clocks_init(fref); in mx31_clocks_init_dt()
|
D | mach-mx27ads.c | 365 unsigned long fref = 26000000; in mx27ads_timer_init() local 368 fref = 27000000; in mx27ads_timer_init() 370 mx27_clocks_init(fref); in mx27ads_timer_init()
|
/linux-4.1.27/drivers/media/tuners/ |
D | mt20xx.c | 109 unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1, in mt2032_compute_freq() local 112 fref= 5250 *1000; //5.25MHz in mt2032_compute_freq() 115 lo1=(2*(desired_lo1/1000)+(fref/1000)) / (2*fref/1000); in mt2032_compute_freq() 137 lo1freq=(lo1a+8*lo1n)*fref; in mt2032_compute_freq() 143 lo2=(desired_lo2)/fref; in mt2032_compute_freq() 146 lo2num=((desired_lo2/1000)%(fref/1000))* 3780/(fref/1000); //scale to fit in 32bit arith in mt2032_compute_freq() 147 lo2freq=(lo2a+8*lo2n)*fref + lo2num*(fref/1000)/3780*1000; in mt2032_compute_freq()
|
/linux-4.1.27/arch/m68k/coldfire/ |
D | m53xx.c | 466 int fref, temp, fout, mfd; in clock_pll() local 469 fref = FREF; in clock_pll() 475 return (fref * mfd / (BUSDIV * 4)); in clock_pll() 488 temp = 100 * fsys / fref; in clock_pll() 492 fout = (fref * mfd / (BUSDIV * 4)); in clock_pll()
|
/linux-4.1.27/drivers/clk/pistachio/ |
D | clk-pll.c | 84 pll_get_params(struct pistachio_clk_pll *pll, unsigned long fref, in pll_get_params() argument 90 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params() 104 if (i > 0 && pll->rates[i].fref == *parent_rate && in pll_round_rate()
|
D | clk.h | 98 unsigned long fref; member
|
/linux-4.1.27/sound/soc/codecs/ |
D | da7210.c | 217 int fref; member 993 int source, unsigned int fref, unsigned int fout) in da7210_set_dai_pll() argument 1007 if ((fref == da7210_pll_div[cnt].fref) && in da7210_set_dai_pll() 1036 dev_err(codec_dai->dev, "Unsupported PLL input frequency %d\n", fref); in da7210_set_dai_pll()
|
D | da9055.c | 244 int fref; member 1287 int source, unsigned int fref, unsigned int fout) in da9055_set_dai_pll() argument 1304 if ((fref == da9055_pll_div[cnt].fref) && in da9055_set_dai_pll()
|
D | da732x.c | 1126 int fref, indiv; in da732x_set_dai_pll() local 1164 fref = (da732x->sysclk / indiv); in da732x_set_dai_pll() 1165 div_hi = freq_out / fref; in da732x_set_dai_pll() 1166 frac_div = (u64)(freq_out % fref) * 8192ULL; in da732x_set_dai_pll() 1167 do_div(frac_div, fref); in da732x_set_dai_pll()
|
D | wm5100.c | 47 int fref; member 1872 fll->fref = Fref; in wm5100_set_fll()
|
D | da7213.c | 1249 int source, unsigned int fref, unsigned int fout) in da7213_set_dai_pll() argument
|
D | wm2200.c | 79 int fref; member
|
/linux-4.1.27/drivers/spi/ |
D | spi-pxa2xx.c | 691 unsigned long fref = xtal / 2; /* mandatory division by 2, in quark_x1000_get_clk_div() local 694 unsigned long fref1 = fref / 2; /* case 1 */ in quark_x1000_get_clk_div() 695 unsigned long fref2 = fref * 2 / 5; /* case 2 */ in quark_x1000_get_clk_div() 752 if (fref / rate >= 80) { in quark_x1000_get_clk_div() 757 q1 = DIV_ROUND_CLOSEST(fref, rate); in quark_x1000_get_clk_div() 761 fssp = (u64)fref * m; in quark_x1000_get_clk_div()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | tdfxfb.c | 310 int fref = 14318; in do_calc_pll() local 321 int n_estimated = ((freq * (m + 2) << k) / fref) - 2; in do_calc_pll() 331 int f = (fref * (n + 2) / (m + 2)) >> k; in do_calc_pll() 351 *freq_out = (fref * (n + 2) / (m + 2)) >> k; in do_calc_pll()
|
/linux-4.1.27/drivers/tty/serial/8250/ |
D | 8250_pci.c | 1400 unsigned long fref = 100000000, fuart = baud * 16; in byt_set_termios() local 1409 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios() 1417 rational_best_approximation(fuart, fref, w, w, &m, &n); in byt_set_termios() 1522 unsigned long fref) in intel_mid_set_termios() argument 1530 if (fref < fuart) { in intel_mid_set_termios() 1532 if (fref > baud) in intel_mid_set_termios() 1533 ps = fref / baud; /* baud rate too high */ in intel_mid_set_termios() 1539 fuart *= rounddown_pow_of_two(fref / fuart); in intel_mid_set_termios() 1542 rational_best_approximation(fuart, fref, w, w, &mul, &div); in intel_mid_set_termios()
|
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/ |
D | main.c | 1961 module_param_named(fref, fref_param, charp, 0); 1962 MODULE_PARM_DESC(fref, "FREF clock: 19.2, 26, 26x, 38.4, 38.4x, 52");
|