/linux-4.4.14/drivers/media/tuners/ |
H A D | fc0012.c | 140 unsigned long f_vco; fc0012_set_params() local 207 f_vco = freq * multi; fc0012_set_params() 209 if (f_vco >= 3060000) { fc0012_set_params() 216 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); fc0012_set_params() 217 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) fc0012_set_params() 241 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); fc0012_set_params()
|
H A D | fc2580.c | 46 u64 f_vco; fc2580_set_params() local 82 f_vco = (u64) dev->f_frequency * div_out; fc2580_set_params() 84 if (f_vco < 2600000000ULL) fc2580_set_params() 91 if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 1)) { fc2580_set_params() 94 } else if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 2)) { fc2580_set_params() 104 div_n = div_u64_rem(f_vco, uitmp, &k); fc2580_set_params() 108 "frequency=%u bandwidth=%u f_vco=%llu F_REF=%u div_ref=%u div_n=%u k=%u div_out=%u k_cw=%0x\n", fc2580_set_params() 109 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_ref, fc2580_set_params()
|
H A D | fc0013.c | 232 unsigned long f_vco; fc0013_set_params() local 361 f_vco = freq * multi; fc0013_set_params() 363 if (f_vco >= 3060000) { fc0013_set_params() 370 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); fc0013_set_params() 371 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) fc0013_set_params() 395 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); fc0013_set_params()
|
H A D | msi001.c | 98 u64 f_vco; msi001_set_tuner() local 219 f_vco = (u64) (f_rf + f_if + f_if1) * div_lo; msi001_set_tuner() 220 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); msi001_set_tuner() 240 "f_rf=%u:%u f_vco=%llu div_n=%u k_thresh=%u k_frac=%u div_lo=%u\n", msi001_set_tuner() 241 f_rf, uitmp, f_vco, div_n, k_thresh, k_frac, div_lo); msi001_set_tuner()
|
H A D | e4000.c | 115 u64 f_vco; e4000_set_params() local 154 f_vco = (u64) dev->f_frequency * div_out; e4000_set_params() 156 div_n = div_u64_rem(f_vco, F_REF, &k); e4000_set_params() 160 "frequency=%u bandwidth=%u f_vco=%llu F_REF=%u div_n=%u k=%u k_cw=%04x div_out=%u\n", e4000_set_params() 161 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_n, k, e4000_set_params()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
H A D | svgalib.c | 384 u32 f_vco, f_current, delta_current, delta_best; svga_compute_pll() local 389 f_vco = f_wanted << ar; svga_compute_pll() 392 if ((f_vco >> ar) != f_wanted) svga_compute_pll() 398 while ((ar > pll->r_min) && (f_vco > pll->f_vco_max)) { svga_compute_pll() 400 f_vco = f_vco >> 1; svga_compute_pll() 404 if ((f_vco < pll->f_vco_min) || (f_vco > pll->f_vco_max)) svga_compute_pll() 417 delta_current = abs_diff (f_current, f_vco); svga_compute_pll() 425 if (f_current <= f_vco) { svga_compute_pll()
|
/linux-4.4.14/drivers/media/usb/msi2500/ |
H A D | msi2500.c | 694 unsigned int f_vco, f_sr, div_n, k, k_cw, div_out; msi2500_set_usb_adc() local 795 f_vco = f_sr * div_out * DIV_LO_OUT; msi2500_set_usb_adc() 796 dev_dbg(dev->dev, "div_out=%u f_vco=%u\n", div_out, f_vco); msi2500_set_usb_adc() 797 if (f_vco >= 202000000) msi2500_set_usb_adc() 802 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); msi2500_set_usb_adc() 811 "f_sr=%u f_vco=%u div_n=%u k=%u div_out=%u reg3=%08x reg4=%08x\n", msi2500_set_usb_adc() 812 f_sr, f_vco, div_n, k, div_out, reg3, reg4); msi2500_set_usb_adc()
|
/linux-4.4.14/drivers/video/fbdev/ |
H A D | i740fb.c | 348 u32 f_err, f_vco; i740_calc_vclk() local 354 f_vco = (freq * (1 << p_best)) / I740_RFREQ_FIX; i740_calc_vclk() 360 m = ((f_vco * n) / I740_REF_FREQ + 2) / 4; i740_calc_vclk()
|
/linux-4.4.14/drivers/video/fbdev/intelfb/ |
H A D | intelfbhw.c | 939 u32 f_vco, p, p_best = 0, m, f_out = 0; calc_pll_params() local 971 f_vco = clock * p; calc_pll_params() 974 m = ROUND_UP_TO(f_vco * n, pll->ref_clk) / pll->ref_clk; calc_pll_params()
|