Home
last modified time | relevance | path

Searched refs:f_vco (Results 1 – 9 of 9) sorted by relevance

/linux-4.1.27/drivers/media/tuners/
Dfc0012.c140 unsigned long f_vco; in fc0012_set_params() local
207 f_vco = freq * multi; in fc0012_set_params()
209 if (f_vco >= 3060000) { in fc0012_set_params()
216 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0012_set_params()
217 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0012_set_params()
241 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); in fc0012_set_params()
Dfc0013.c234 unsigned long f_vco; in fc0013_set_params() local
363 f_vco = freq * multi; in fc0013_set_params()
365 if (f_vco >= 3060000) { in fc0013_set_params()
372 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0013_set_params()
373 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0013_set_params()
397 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); in fc0013_set_params()
Dfc2580.c147 u64 f_vco; in fc2580_set_params() local
173 f_vco = c->frequency; in fc2580_set_params()
174 f_vco *= fc2580_pll_lut[i].div; in fc2580_set_params()
176 if (f_vco >= 2600000000UL) in fc2580_set_params()
185 if (f_vco >= 2UL * 76 * priv->cfg->clock) { in fc2580_set_params()
188 } else if (f_vco >= 1UL * 76 * priv->cfg->clock) { in fc2580_set_params()
197 n_val = div_u64_rem(f_vco, f_ref, &k_val); in fc2580_set_params()
De4000.c120 u64 f_vco; in e4000_set_params() local
143 f_vco = 1ull * c->frequency * e4000_pll_lut[i].mul; in e4000_set_params()
144 pll_n = div_u64_rem(f_vco, s->clock, &pll_f); in e4000_set_params()
153 f_vco, buf[0], sigma_delta); in e4000_set_params()
Dmsi001.c96 u64 f_vco, tmp64; in msi001_set_tuner() local
203 f_vco = (u64) (f_rf + f_if + f_if1) * lo_div; in msi001_set_tuner()
204 tmp64 = f_vco; in msi001_set_tuner()
/linux-4.1.27/drivers/video/fbdev/core/
Dsvgalib.c384 u32 f_vco, f_current, delta_current, delta_best; in svga_compute_pll() local
389 f_vco = f_wanted << ar; in svga_compute_pll()
392 if ((f_vco >> ar) != f_wanted) in svga_compute_pll()
398 while ((ar > pll->r_min) && (f_vco > pll->f_vco_max)) { in svga_compute_pll()
400 f_vco = f_vco >> 1; in svga_compute_pll()
404 if ((f_vco < pll->f_vco_min) || (f_vco > pll->f_vco_max)) in svga_compute_pll()
417 delta_current = abs_diff (f_current, f_vco); in svga_compute_pll()
425 if (f_current <= f_vco) { in svga_compute_pll()
/linux-4.1.27/drivers/media/usb/msi2500/
Dmsi2500.c689 int ret, div_n, div_m, div_r_out, f_sr, f_vco, fract; in msi2500_set_usb_adc() local
771 f_vco = f_sr * div_r_out * 12; in msi2500_set_usb_adc()
772 dev_dbg(s->dev, "div_r_out=%d f_vco=%d\n", div_r_out, f_vco); in msi2500_set_usb_adc()
773 if (f_vco >= 202000000) in msi2500_set_usb_adc()
777 div_n = f_vco / (F_REF * DIV_R_IN); in msi2500_set_usb_adc()
778 div_m = f_vco % (F_REF * DIV_R_IN); in msi2500_set_usb_adc()
787 f_sr, f_vco, div_n, div_m, div_r_out, reg3, reg4); in msi2500_set_usb_adc()
/linux-4.1.27/drivers/video/fbdev/
Di740fb.c357 u32 f_err, f_vco; in i740_calc_vclk() local
363 f_vco = (freq * (1 << p_best)) / I740_RFREQ_FIX; in i740_calc_vclk()
369 m = ((f_vco * n) / I740_REF_FREQ + 2) / 4; in i740_calc_vclk()
/linux-4.1.27/drivers/video/fbdev/intelfb/
Dintelfbhw.c939 u32 f_vco, p, p_best = 0, m, f_out = 0; in calc_pll_params() local
971 f_vco = clock * p; in calc_pll_params()
974 m = ROUND_UP_TO(f_vco * n, pll->ref_clk) / pll->ref_clk; in calc_pll_params()