/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | fc0012.c | 126 unsigned long f_vco; in fc0012_set_params() local 193 f_vco = freq * multi; in fc0012_set_params() 195 if (f_vco >= 3060000) { in fc0012_set_params() 202 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0012_set_params() 203 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0012_set_params() 227 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); in fc0012_set_params()
|
D | fc0013.c | 217 unsigned long f_vco; in fc0013_set_params() local 346 f_vco = freq * multi; in fc0013_set_params() 348 if (f_vco >= 3060000) { in fc0013_set_params() 355 xdiv = (unsigned short)(f_vco / xtal_freq_khz_2); in fc0013_set_params() 356 if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2)) in fc0013_set_params() 380 xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2); in fc0013_set_params()
|
D | fc2580.c | 33 u64 f_vco; in fc2580_set_params() local 69 f_vco = (u64) dev->f_frequency * div_out; in fc2580_set_params() 71 if (f_vco < 2600000000ULL) in fc2580_set_params() 78 if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 1)) { in fc2580_set_params() 81 } else if (f_vco >= div_u64((u64) DIV_PRE_N * DIV_N_MIN * F_REF, 2)) { in fc2580_set_params() 91 div_n = div_u64_rem(f_vco, uitmp, &k); in fc2580_set_params() 96 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_ref, in fc2580_set_params()
|
D | msi001.c | 89 u64 f_vco; in msi001_set_tuner() local 210 f_vco = (u64) (f_rf + f_if + f_if1) * div_lo; in msi001_set_tuner() 211 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); in msi001_set_tuner() 232 f_rf, uitmp, f_vco, div_n, k_thresh, k_frac, div_lo); in msi001_set_tuner()
|
D | e4000.c | 102 u64 f_vco; in e4000_set_params() local 141 f_vco = (u64) dev->f_frequency * div_out; in e4000_set_params() 143 div_n = div_u64_rem(f_vco, F_REF, &k); in e4000_set_params() 148 dev->f_frequency, dev->f_bandwidth, f_vco, F_REF, div_n, k, in e4000_set_params()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mgag200/ |
D | mgag200_mode.c | 125 long f_vco; in mgag200_g200_set_plls() local 140 f_vco = clock; in mgag200_g200_set_plls() 142 p <= post_div_max && f_vco < p_clk_min; in mgag200_g200_set_plls() 143 p = (p << 1) + 1, f_vco <<= 1) in mgag200_g200_set_plls() 151 if (computed < f_vco) in mgag200_g200_set_plls() 152 tmp_delta = f_vco - computed; in mgag200_g200_set_plls() 154 tmp_delta = computed - f_vco; in mgag200_g200_set_plls() 162 f_vco = ref_clk * (n + 1) / (m + 1); in mgag200_g200_set_plls() 163 if (f_vco < 100000) in mgag200_g200_set_plls() 165 else if (f_vco < 140000) in mgag200_g200_set_plls() [all …]
|
/kernel/linux/linux-5.10/drivers/media/usb/msi2500/ |
D | msi2500.c | 673 unsigned int f_vco, f_sr, div_n, k, k_cw, div_out; in msi2500_set_usb_adc() local 774 f_vco = f_sr * div_out * DIV_LO_OUT; in msi2500_set_usb_adc() 775 dev_dbg(dev->dev, "div_out=%u f_vco=%u\n", div_out, f_vco); in msi2500_set_usb_adc() 776 if (f_vco >= 202000000) in msi2500_set_usb_adc() 781 div_n = div_u64_rem(f_vco, DIV_PRE_N * F_REF, &k); in msi2500_set_usb_adc() 791 f_sr, f_vco, div_n, k, div_out, reg3, reg4); in msi2500_set_usb_adc()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/ |
D | i740fb.c | 349 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()
|
/kernel/linux/linux-5.10/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 941 u32 f_vco, p, p_best = 0, m, f_out = 0; in calc_pll_params() local 969 f_vco = clock * p; in calc_pll_params() 972 m = ROUND_UP_TO(f_vco * n, pll->ref_clk) / pll->ref_clk; in calc_pll_params()
|