Home
last modified time | relevance | path

Searched refs:fref (Results 1 – 25 of 34) sorted by relevance

12

/Linux-v5.4/sound/soc/codecs/
Dmadera.c3413 static int madera_find_sync_fratio(unsigned int fref, int *fratio) in madera_find_sync_fratio() argument
3418 if (fll_sync_fratios[i].min <= fref && in madera_find_sync_fratio()
3419 fref <= fll_sync_fratios[i].max) { in madera_find_sync_fratio()
3430 static int madera_find_main_fratio(unsigned int fref, unsigned int fout, in madera_find_main_fratio() argument
3435 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) in madera_find_main_fratio()
3444 static int madera_find_fratio(struct madera_fll *fll, unsigned int fref, in madera_find_fratio() argument
3452 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
3455 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
3457 return madera_find_main_fratio(fref, in madera_find_fratio()
3465 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio()
[all …]
Dnau8540.c553 unsigned int fref, i, fvco_sel; in nau8540_calc_fll_param() local
560 fref = fll_in / fll_pre_scalar[i].param; in nau8540_calc_fll_param()
561 if (fref <= NAU_FREF_MAX) in nau8540_calc_fll_param()
570 if (fref >= fll_ratio[i].param) in nau8540_calc_fll_param()
599 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()
Dda7210.c212 int fref; member
984 int source, unsigned int fref, unsigned int fout) in da7210_set_dai_pll() argument
998 if ((fref == da7210_pll_div[cnt].fref) && in da7210_set_dai_pll()
1027 dev_err(codec_dai->dev, "Unsupported PLL input frequency %d\n", fref); in da7210_set_dai_pll()
Dda9055.c240 int fref; member
1280 int source, unsigned int fref, unsigned int fout) in da9055_set_dai_pll() argument
1297 if ((fref == da9055_pll_div[cnt].fref) && in da9055_set_dai_pll()
Dda732x.c1123 int fref, indiv; in da732x_set_dai_pll() local
1161 fref = (da732x->sysclk / indiv); in da732x_set_dai_pll()
1162 div_hi = freq_out / fref; in da732x_set_dai_pll()
1163 frac_div = (u64)(freq_out % fref) * 8192ULL; in da732x_set_dai_pll()
1164 do_div(frac_div, fref); in da732x_set_dai_pll()
Dmadera.h409 unsigned int fref, unsigned int fout);
411 unsigned int fref, unsigned int fout);
Dcs47l85.c2223 int source, unsigned int fref, unsigned int fout) in cs47l85_set_fll() argument
2229 return madera_set_fll_refclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2232 return madera_set_fll_refclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2235 return madera_set_fll_refclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2238 return madera_set_fll_syncclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2241 return madera_set_fll_syncclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2244 return madera_set_fll_syncclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
Dnau8824.c1272 unsigned int fref, i, fvco_sel; in nau8824_calc_fll_param() local
1279 fref = fll_in / fll_pre_scalar[i].param; in nau8824_calc_fll_param()
1280 if (fref <= NAU_FREF_MAX) in nau8824_calc_fll_param()
1289 if (fref >= fll_ratio[i].param) in nau8824_calc_fll_param()
1318 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param()
Dcs47l15.c1117 int source, unsigned int fref, unsigned int fout) in cs47l15_set_fll() argument
1123 return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1126 return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, in cs47l15_set_fll()
1129 return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
Dcs47l90.c2137 int source, unsigned int fref, unsigned int fout) in cs47l90_set_fll() argument
2143 return madera_set_fll_refclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2146 return madera_set_fll_refclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2149 return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, fref, in cs47l90_set_fll()
2152 return madera_set_fll_syncclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2155 return madera_set_fll_syncclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
Dnau8825.c1989 unsigned int fref, i, fvco_sel; in nau8825_calc_fll_param() local
1996 fref = fll_in / fll_pre_scalar[i].param; in nau8825_calc_fll_param()
1997 if (fref <= NAU_FREF_MAX) in nau8825_calc_fll_param()
2006 if (fref >= fll_ratio[i].param) in nau8825_calc_fll_param()
2035 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8825_calc_fll_param()
/Linux-v5.4/drivers/media/tuners/
Dmt20xx.c108 unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1, in mt2032_compute_freq() local
111 fref= 5250 *1000; //5.25MHz in mt2032_compute_freq()
114 lo1=(2*(desired_lo1/1000)+(fref/1000)) / (2*fref/1000); in mt2032_compute_freq()
136 lo1freq=(lo1a+8*lo1n)*fref; in mt2032_compute_freq()
142 lo2=(desired_lo2)/fref; in mt2032_compute_freq()
145 lo2num=((desired_lo2/1000)%(fref/1000))* 3780/(fref/1000); //scale to fit in 32bit arith in mt2032_compute_freq()
146 lo2freq=(lo2a+8*lo2n)*fref + lo2num*(fref/1000)/3780*1000; in mt2032_compute_freq()
/Linux-v5.4/drivers/clk/
Dclk-clps711x.c45 u32 tmp, f_cpu, f_pll, f_bus, f_tim, f_pwm, f_spi, fref = 0; in clps711x_clk_init_dt() local
49 WARN_ON(of_property_read_u32(np, "startup-frequency", &fref)); in clps711x_clk_init_dt()
63 if (((tmp >= 10) && (tmp <= 50)) || !fref) in clps711x_clk_init_dt()
66 f_pll = fref; in clps711x_clk_init_dt()
Dclk-xgene.c74 unsigned long fref; in xgene_clk_pll_recalc_rate() local
100 fref = parent_rate / nref; in xgene_clk_pll_recalc_rate()
101 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
/Linux-v5.4/drivers/clk/imx/
Dclk-imx27.c63 static void __init _mx27_clocks_init(unsigned long fref) in _mx27_clocks_init() argument
68 clk[IMX27_CLK_CKIH] = imx_clk_fixed("ckih", fref); in _mx27_clocks_init()
184 int __init mx27_clocks_init(unsigned long fref) in mx27_clocks_init() argument
188 _mx27_clocks_init(fref); in mx27_clocks_init()
260 u32 fref = 26000000; /* default */ in mx27_clocks_init_dt() local
266 if (!of_property_read_u32(refnp, "clock-frequency", &fref)) { in mx27_clocks_init_dt()
274 _mx27_clocks_init(fref); in mx27_clocks_init_dt()
Dclk-imx31.c64 static void __init _mx31_clocks_init(void __iomem *base, unsigned long fref) in _mx31_clocks_init() argument
67 clk[ckih] = imx_clk_fixed("ckih", fref); in _mx31_clocks_init()
135 int __init mx31_clocks_init(unsigned long fref) in mx31_clocks_init() argument
143 _mx31_clocks_init(base, fref); in mx31_clocks_init()
209 u32 fref = 26000000; /* default */ in mx31_clocks_init_dt() local
216 if (!of_property_read_u32(osc_np, "clock-frequency", &fref)) { in mx31_clocks_init_dt()
226 _mx31_clocks_init(ccm, fref); in mx31_clocks_init_dt()
/Linux-v5.4/arch/arm/mach-imx/
Dcommon.h37 int mx21_clocks_init(unsigned long lref, unsigned long fref);
38 int mx27_clocks_init(unsigned long fref);
39 int mx31_clocks_init(unsigned long fref);
Dmach-mx27ads.c374 unsigned long fref = 26000000; in mx27ads_timer_init() local
377 fref = 27000000; in mx27ads_timer_init()
379 mx27_clocks_init(fref); in mx27ads_timer_init()
/Linux-v5.4/drivers/clk/pistachio/
Dclk-pll.c129 pll_get_params(struct pistachio_clk_pll *pll, unsigned long fref, in pll_get_params() argument
135 if (pll->rates[i].fref == fref && pll->rates[i].fout == fout) in pll_get_params()
149 if (i > 0 && pll->rates[i].fref == *parent_rate && in pll_round_rate()
210 vco = params->fref; in pll_gf40lp_frac_set_rate()
218 val = div64_u64(params->fref, params->refdiv); in pll_gf40lp_frac_set_rate()
366 vco = div_u64(params->fref * params->fbdiv, params->refdiv); in pll_gf40lp_laint_set_rate()
371 val = div_u64(params->fref, params->refdiv); in pll_gf40lp_laint_set_rate()
Dclk.h95 unsigned long long fref; member
/Linux-v5.4/arch/m68k/coldfire/
Dm53xx.c472 int fref, temp, fout, mfd; in clock_pll() local
475 fref = FREF; in clock_pll()
481 return (fref * mfd / (BUSDIV * 4)); in clock_pll()
494 temp = 100 * fsys / fref; in clock_pll()
498 fout = (fref * mfd / (BUSDIV * 4)); in clock_pll()
/Linux-v5.4/drivers/gpu/drm/msm/dsi/pll/
Ddsi_pll_14nm.c45 u32 fref; /* reference clk */ member
216 pll->in.fref = pll->vco_ref_clk_rate; in dsi_pll_14nm_input_init()
307 u64 fref = pll->vco_ref_clk_rate; in pll_14nm_dec_frac_calc() local
309 DBG("vco_clk_rate=%lld ref_clk_rate=%lld", vco_clk_rate, fref); in pll_14nm_dec_frac_calc()
311 dec_start_multiple = div_u64(vco_clk_rate * multiplier, fref); in pll_14nm_dec_frac_calc()
357 u64 fref = pll->vco_ref_clk_rate; in pll_14nm_calc_vco_count() local
361 data = fref * pin->vco_measure_time; in pll_14nm_calc_vco_count()
372 data = fref * pin->kvco_measure_time; in pll_14nm_calc_vco_count()
Ddsi_pll_10nm.c159 u64 fref = pll->vco_ref_clk_rate; in dsi_pll_calc_dec_frac() local
169 divider = fref; in dsi_pll_calc_dec_frac()
171 divider = fref * 2; in dsi_pll_calc_dec_frac()
/Linux-v5.4/drivers/tty/serial/8250/
D8250_lpss.c77 unsigned long fref = lpss->board->freq, fuart = baud * 16; in byt_set_termios() local
86 fuart *= rounddown_pow_of_two(fref / fuart); in byt_set_termios()
94 rational_best_approximation(fuart, fref, w, w, &m, &n); in byt_set_termios()
/Linux-v5.4/drivers/spi/
Dspi-pxa2xx.c785 unsigned long fref = xtal / 2; /* mandatory division by 2, in quark_x1000_get_clk_div() local
788 unsigned long fref1 = fref / 2; /* case 1 */ in quark_x1000_get_clk_div()
789 unsigned long fref2 = fref * 2 / 5; /* case 2 */ in quark_x1000_get_clk_div()
846 if (fref / rate >= 80) { in quark_x1000_get_clk_div()
851 q1 = DIV_ROUND_UP(fref, rate); in quark_x1000_get_clk_div()
855 fssp = (u64)fref * m; in quark_x1000_get_clk_div()

12