Home
last modified time | relevance | path

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

12

/linux/drivers/media/tuners/
H A 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/sound/soc/codecs/
H A Dmadera.c3430 static int madera_find_sync_fratio(unsigned int fref, int *fratio)
3435 if (fll_sync_fratios[i].min <= fref &&
3436 fref <= fll_sync_fratios[i].max) {
3447 static int madera_find_main_fratio(unsigned int fref, unsigned int fout, in madera_find_sync_fratio()
3452 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) in madera_find_sync_fratio()
3461 static int madera_find_fratio(struct madera_fll *fll, unsigned int fref, in madera_find_main_fratio() argument
3469 return madera_find_sync_fratio(fref, fratio); in madera_find_main_fratio()
3472 return madera_find_sync_fratio(fref, fratio); in madera_find_main_fratio()
3474 return madera_find_main_fratio(fref,
3482 return madera_find_sync_fratio(fref, frati in madera_find_fratio()
3444 madera_find_sync_fratio(unsigned int fref,int * fratio) madera_find_sync_fratio() argument
3475 madera_find_fratio(struct madera_fll * fll,unsigned int fref,bool sync,int * fratio) madera_find_fratio() argument
3507 madera_calc_fratio(struct madera_fll * fll,struct madera_fll_cfg * cfg,unsigned int fref,bool sync) madera_calc_fratio() argument
3603 madera_find_fll_gain(struct madera_fll * fll,struct madera_fll_cfg * cfg,unsigned int fref,const struct madera_fll_gains * gains,int n_gains) madera_find_fll_gain() argument
3624 madera_calc_fll(struct madera_fll * fll,struct madera_fll_cfg * cfg,unsigned int fref,bool sync) madera_calc_fll() argument
4124 madera_set_fll_syncclk(struct madera_fll * fll,int source,unsigned int fref,unsigned int fout) madera_set_fll_syncclk() argument
4143 madera_set_fll_refclk(struct madera_fll * fll,int source,unsigned int fref,unsigned int fout) madera_set_fll_refclk() argument
4424 int refdiv, fref, fout, lockdet_thr, fbdiv, hp, fast_clk, fllgcd; madera_fllhj_apply() local
[all...]
H A Dcs48l32.c1602 int refdiv, fref, fout, lockdet_thr, fbdiv, fllgcd; in cs48l32_fllhj_apply() local
1614 fref = fin / (1 << refdiv); in cs48l32_fllhj_apply()
1616 frac = fout % fref; in cs48l32_fllhj_apply()
1622 if (fref < CS48L32_FLLHJ_LOW_THRESH) { in cs48l32_fllhj_apply()
1630 } else if (fref < CS48L32_FLLHJ_MID_THRESH) { in cs48l32_fllhj_apply()
1645 if (fref < CS48L32_FLLHJ_LP_INT_MODE_THRESH) in cs48l32_fllhj_apply()
1654 ratio = fout / fref; in cs48l32_fllhj_apply()
1656 cs48l32_fll_dbg(fll, "refdiv=%d, fref=%d, frac:%d\n", refdiv, fref, frac); in cs48l32_fllhj_apply()
1676 fllgcd = gcd(fout, fbdiv * fref); in cs48l32_fllhj_apply()
1843 cs48l32_set_fll(struct snd_soc_component * component,int fll_id,int source,unsigned int fref,unsigned int fout) cs48l32_set_fll() argument
[all...]
H A Dmadera.h413 unsigned int fref, unsigned int fout);
415 unsigned int fref, unsigned int fout);
H A Dcs47l85.c2224 int source, unsigned int fref, unsigned int fout) in cs47l85_set_fll() argument
2230 return madera_set_fll_refclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2233 return madera_set_fll_refclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2236 return madera_set_fll_refclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2239 return madera_set_fll_syncclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2242 return madera_set_fll_syncclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2245 return madera_set_fll_syncclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
H A Dnau8821.c1295 unsigned int fref, i, fvco_sel; in nau8821_calc_fll_param()
1302 fref = fll_in >> fll_pre_scalar[i].param; in nau8821_calc_fll_param()
1303 if (fref <= NAU_FREF_MAX) in nau8821_calc_fll_param()
1312 if (fref >= fll_ratio[i].param) in nau8821_calc_fll_param()
1341 fvco = div_u64(fvco_max << 24, fref * fll_param->ratio); in nau8821_fll_apply()
1281 unsigned int fref, i, fvco_sel; nau8821_calc_fll_param() local
H A Dcs47l15.c1125 int source, unsigned int fref, unsigned int fout)
1131 return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1134 return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, in cs47l15_set_fll()
1137 return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1127 cs47l15_set_fll(struct snd_soc_component * component,int fll_id,int source,unsigned int fref,unsigned int fout) cs47l15_set_fll() argument
H A Dcs47l90.c2146 int source, unsigned int fref, unsigned int fout) in cs47l90_set_fll() argument
2152 return madera_set_fll_refclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2155 return madera_set_fll_refclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2158 return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, fref, in cs47l90_set_fll()
2161 return madera_set_fll_syncclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2164 return madera_set_fll_syncclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
H A Dcs47l35.c1335 int source, unsigned int fref, unsigned int fout) in cs47l35_set_fll() argument
1341 return madera_set_fll_refclk(&cs47l35->fll, source, fref, in cs47l35_set_fll()
1344 return madera_set_fll_syncclk(&cs47l35->fll, source, fref, in cs47l35_set_fll()
H A Dcs47l92.c1675 int source, unsigned int fref, unsigned int fout)
1681 return madera_fllhj_set_refclk(&cs47l92->fll[0], source, fref, in cs47l92_set_fll()
1684 return madera_fllhj_set_refclk(&cs47l92->fll[1], source, fref, in cs47l92_set_fll()
1677 cs47l92_set_fll(struct snd_soc_component * component,int fll_id,int source,unsigned int fref,unsigned int fout) cs47l92_set_fll() argument
H A Dda7213.c1604 unsigned int fref, unsigned int fout) in _da7213_set_component_pll() argument
1715 unsigned int fref, unsigned int fout) in da7213_set_component_pll() argument
1720 return _da7213_set_component_pll(component, pll_id, source, fref, fout); in da7213_set_component_pll()
H A Dwm5100.c45 int fref; member
1872 fll->fref = Fref; in wm5100_set_fll()
H A Dda7219.c1295 int source, unsigned int fref, unsigned int fout) in da7219_set_dai_pll() argument
/linux/drivers/clk/
H A Dclk-clps711x.c47 u32 tmp, f_cpu, f_pll, f_bus, f_tim, f_pwm, f_spi, fref = 0; in clps711x_clk_init_dt() local
51 WARN_ON(of_property_read_u32(np, "startup-frequency", &fref)); in clps711x_clk_init_dt()
64 if (((tmp >= 10) && (tmp <= 50)) || !fref) in clps711x_clk_init_dt()
67 f_pll = fref; in clps711x_clk_init_dt()
H A Dclk-xgene.c75 unsigned long fref; in xgene_clk_pll_recalc_rate() local
101 fref = parent_rate / nref; in xgene_clk_pll_recalc_rate()
102 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
/linux/drivers/clk/pistachio/
H A 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()
148 if (i > 0 && pll->rates[i].fref == req->best_parent_rate && in pll_determine_rate()
214 vco = params->fref; in pll_gf40lp_frac_set_rate()
222 val = div64_u64(params->fref, params->refdiv); in pll_gf40lp_frac_set_rate()
370 vco = div_u64(params->fref * params->fbdiv, params->refdiv); in pll_gf40lp_laint_set_rate()
375 val = div_u64(params->fref, params->refdiv); in pll_gf40lp_laint_set_rate()
H A Dclk.h95 unsigned long long fref; member
/linux/arch/m68k/coldfire/
H A 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/drivers/phy/rockchip/
H A Dphy-rockchip-inno-dsidphy.c341 unsigned long fref, fout; in inno_dsidphy_pll_calc_rate() local
352 fref = prate / 2; in inno_dsidphy_pll_calc_rate()
359 min_prediv = DIV_ROUND_UP(fref, 40000000); in inno_dsidphy_pll_calc_rate()
360 max_prediv = fref / 5000000; in inno_dsidphy_pll_calc_rate()
367 do_div(tmp, fref); in inno_dsidphy_pll_calc_rate()
380 tmp = (u64)_fbdiv * fref; in inno_dsidphy_pll_calc_rate()
/linux/drivers/tty/serial/8250/
H A 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/drivers/spi/
H A Dspi-pxa2xx.c802 unsigned long fref = xtal / 2; /* mandatory division by 2, in quark_x1000_get_clk_div() local
805 unsigned long fref1 = fref / 2; /* case 1 */ in quark_x1000_get_clk_div()
806 unsigned long fref2 = fref * 2 / 5; /* case 2 */ in quark_x1000_get_clk_div()
863 if (fref / rate >= 80) { in quark_x1000_get_clk_div()
868 q1 = DIV_ROUND_UP(fref, rate); in quark_x1000_get_clk_div()
872 fssp = (u64)fref * m; in quark_x1000_get_clk_div()
/linux/drivers/video/fbdev/
H A Dtdfxfb.c291 int fref = 14318; in do_calc_pll() local
302 int n_estimated = ((freq * (m + 2) << k) / fref) - 2; in do_calc_pll()
312 int f = (fref * (n + 2) / (m + 2)) >> k; in do_calc_pll()
332 *freq_out = (fref * (n + 2) / (m + 2)) >> k; in do_calc_pll()
/linux/drivers/gpu/drm/vc4/
H A Dvc4_hdmi_phy.c251 unsigned long long fref = OSCILLATOR_FREQUENCY; in phy_get_rm_offset() local
257 do_div(offset, fref); in phy_get_rm_offset()
/linux/drivers/net/wireless/ti/wl12xx/
H A Dmain.c1951 module_param_named(fref, fref_param, charp, 0);
1952 MODULE_PARM_DESC(fref, "FREF clock: 19.2, 26, 26x, 38.4, 38.4x, 52");
/linux/drivers/gpu/drm/msm/dsi/phy/
H A Ddsi_phy_7nm.c129 u64 fref = VCO_REF_CLK_RATE; in dsi_pll_calc_dec_frac() local
138 divider = fref * 2; in dsi_pll_calc_dec_frac()

12