/drivers/media/tuners/ |
D | fc0012.c | 140 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()
|
D | fc0013.c | 232 unsigned long f_vco; in fc0013_set_params() local 361 f_vco = freq * multi; in fc0013_set_params() 363 if (f_vco >= 3060000) { in fc0013_set_params() 370 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0013_set_params() 371 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0013_set_params() 395 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); in fc0013_set_params()
|
D | fc2580.c | 46 u64 f_vco; in fc2580_set_params() local 82 f_vco = (u64) dev->f_frequency * div_out; in fc2580_set_params() 84 if (f_vco < 2600000000ULL) in fc2580_set_params() 91 if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 1)) { in fc2580_set_params() 94 } else if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 2)) { in fc2580_set_params() 104 div_n = div_u64_rem(f_vco, uitmp, &k); in fc2580_set_params() 109 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_ref, in fc2580_set_params()
|
D | msi001.c | 98 u64 f_vco; in msi001_set_tuner() local 219 f_vco = (u64) (f_rf + f_if + f_if1) * div_lo; in msi001_set_tuner() 220 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); in msi001_set_tuner() 241 f_rf, uitmp, f_vco, div_n, k_thresh, k_frac, div_lo); in msi001_set_tuner()
|
D | e4000.c | 115 u64 f_vco; in e4000_set_params() local 154 f_vco = (u64) dev->f_frequency * div_out; in e4000_set_params() 156 div_n = div_u64_rem(f_vco, F_REF, &k); in e4000_set_params() 161 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_n, k, in e4000_set_params()
|
/drivers/video/fbdev/core/ |
D | svgalib.c | 384 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()
|
/drivers/media/usb/msi2500/ |
D | msi2500.c | 694 unsigned int f_vco, f_sr, div_n, k, k_cw, div_out; in msi2500_set_usb_adc() local 795 f_vco = f_sr * div_out * DIV_LO_OUT; in msi2500_set_usb_adc() 796 dev_dbg(dev->dev, "div_out=%u f_vco=%u\n", div_out, f_vco); in msi2500_set_usb_adc() 797 if (f_vco >= 202000000) in msi2500_set_usb_adc() 802 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); in msi2500_set_usb_adc() 812 f_sr, f_vco, div_n, k, div_out, reg3, reg4); in msi2500_set_usb_adc()
|
/drivers/video/fbdev/ |
D | i740fb.c | 348 u32 f_err, f_vco; in i740_calc_vclk() local 354 f_vco = (freq * (1 << p_best)) / I740_RFREQ_FIX; in i740_calc_vclk() 360 m = ((f_vco * n) / I740_REF_FREQ + 2) / 4; in i740_calc_vclk()
|
/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 939 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()
|