/linux-5.19.10/drivers/media/tuners/ |
D | mt20xx.c | 108 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-5.19.10/sound/soc/codecs/ |
D | madera.c | 3443 static int madera_find_sync_fratio(unsigned int fref, int *fratio) in madera_find_sync_fratio() argument 3448 if (fll_sync_fratios[i].min <= fref && in madera_find_sync_fratio() 3449 fref <= fll_sync_fratios[i].max) { in madera_find_sync_fratio() 3460 static int madera_find_main_fratio(unsigned int fref, unsigned int fout, in madera_find_main_fratio() argument 3465 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) in madera_find_main_fratio() 3474 static int madera_find_fratio(struct madera_fll *fll, unsigned int fref, in madera_find_fratio() argument 3482 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio() 3485 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio() 3487 return madera_find_main_fratio(fref, in madera_find_fratio() 3495 return madera_find_sync_fratio(fref, fratio); in madera_find_fratio() [all …]
|
D | nau8540.c | 553 unsigned int fref, i, fvco_sel; in nau8540_calc_fll_param() local 560 fref = fll_in / fll_pre_scalar[i].param; in nau8540_calc_fll_param() 561 if (fref <= NAU_FREF_MAX) in nau8540_calc_fll_param() 570 if (fref >= fll_ratio[i].param) in nau8540_calc_fll_param() 599 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8540_calc_fll_param()
|
D | da7210.c | 212 int fref; member 986 int source, unsigned int fref, unsigned int fout) in da7210_set_dai_pll() argument 1000 if ((fref == da7210_pll_div[cnt].fref) && in da7210_set_dai_pll() 1029 dev_err(codec_dai->dev, "Unsupported PLL input frequency %d\n", fref); in da7210_set_dai_pll()
|
D | da9055.c | 240 int fref; member 1280 int source, unsigned int fref, unsigned int fout) in da9055_set_dai_pll() argument 1297 if ((fref == da9055_pll_div[cnt].fref) && in da9055_set_dai_pll()
|
D | nau8821.c | 1077 unsigned int fref, i, fvco_sel; in nau8821_calc_fll_param() local 1084 fref = fll_in >> fll_pre_scalar[i].param; in nau8821_calc_fll_param() 1085 if (fref <= NAU_FREF_MAX) in nau8821_calc_fll_param() 1094 if (fref >= fll_ratio[i].param) in nau8821_calc_fll_param() 1123 fvco = div_u64(fvco_max << 24, fref * fll_param->ratio); in nau8821_calc_fll_param()
|
D | da732x.c | 1118 int fref, indiv; in da732x_set_dai_pll() local 1156 fref = da732x->sysclk / BIT(indiv); in da732x_set_dai_pll() 1157 div_hi = freq_out / fref; in da732x_set_dai_pll() 1158 frac_div = (u64)(freq_out % fref) * 8192ULL; in da732x_set_dai_pll() 1159 do_div(frac_div, fref); in da732x_set_dai_pll()
|
D | madera.h | 413 unsigned int fref, unsigned int fout); 415 unsigned int fref, unsigned int fout);
|
D | cs47l85.c | 2224 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()
|
D | nau8824.c | 1250 unsigned int fref, i, fvco_sel; in nau8824_calc_fll_param() local 1257 fref = fll_in / fll_pre_scalar[i].param; in nau8824_calc_fll_param() 1258 if (fref <= NAU_FREF_MAX) in nau8824_calc_fll_param() 1267 if (fref >= fll_ratio[i].param) in nau8824_calc_fll_param() 1296 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8824_calc_fll_param()
|
D | cs47l15.c | 1127 int source, unsigned int fref, unsigned int fout) in cs47l15_set_fll() argument 1133 return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll() 1136 return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, in cs47l15_set_fll() 1139 return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
|
D | cs47l90.c | 2146 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()
|
D | nau8825.c | 2027 unsigned int fref, i, fvco_sel; in nau8825_calc_fll_param() local 2034 fref = fll_in / fll_pre_scalar[i].param; in nau8825_calc_fll_param() 2035 if (fref <= NAU_FREF_MAX) in nau8825_calc_fll_param() 2044 if (fref >= fll_ratio[i].param) in nau8825_calc_fll_param() 2073 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); in nau8825_calc_fll_param()
|
/linux-5.19.10/drivers/clk/ |
D | clk-clps711x.c | 47 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() 65 if (((tmp >= 10) && (tmp <= 50)) || !fref) in clps711x_clk_init_dt() 68 f_pll = fref; in clps711x_clk_init_dt()
|
D | clk-xgene.c | 74 unsigned long fref; in xgene_clk_pll_recalc_rate() local 100 fref = parent_rate / nref; in xgene_clk_pll_recalc_rate() 101 fvco = fref * nfb; in xgene_clk_pll_recalc_rate()
|
/linux-5.19.10/drivers/clk/imx/ |
D | clk-imx31.c | 54 static void __init _mx31_clocks_init(void __iomem *base, unsigned long fref) in _mx31_clocks_init() argument 57 clk[ckih] = imx_clk_fixed("ckih", fref); in _mx31_clocks_init() 128 u32 fref = 26000000; /* default */ in mx31_clocks_init_dt() local 135 if (!of_property_read_u32(osc_np, "clock-frequency", &fref)) { in mx31_clocks_init_dt() 145 _mx31_clocks_init(ccm, fref); in mx31_clocks_init_dt()
|
D | clk-imx27.c | 52 static void __init _mx27_clocks_init(unsigned long fref) in _mx27_clocks_init() argument 57 clk[IMX27_CLK_CKIH] = imx_clk_fixed("ckih", fref); in _mx27_clocks_init() 176 u32 fref = 26000000; /* default */ in mx27_clocks_init_dt() local 182 if (!of_property_read_u32(refnp, "clock-frequency", &fref)) { in mx27_clocks_init_dt() 190 _mx27_clocks_init(fref); in mx27_clocks_init_dt()
|
/linux-5.19.10/drivers/clk/pistachio/ |
D | clk-pll.c | 129 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() 149 if (i > 0 && pll->rates[i].fref == *parent_rate && in pll_round_rate() 210 vco = params->fref; in pll_gf40lp_frac_set_rate() 218 val = div64_u64(params->fref, params->refdiv); in pll_gf40lp_frac_set_rate() 366 vco = div_u64(params->fref * params->fbdiv, params->refdiv); in pll_gf40lp_laint_set_rate() 371 val = div_u64(params->fref, params->refdiv); in pll_gf40lp_laint_set_rate()
|
D | clk.h | 95 unsigned long long fref; member
|
/linux-5.19.10/arch/m68k/coldfire/ |
D | m53xx.c | 472 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-5.19.10/drivers/phy/rockchip/ |
D | phy-rockchip-inno-dsidphy.c | 225 unsigned long fref, fout; in inno_dsidphy_pll_calc_rate() local 236 fref = prate / 2; in inno_dsidphy_pll_calc_rate() 243 min_prediv = DIV_ROUND_UP(fref, 40000000); in inno_dsidphy_pll_calc_rate() 244 max_prediv = fref / 5000000; in inno_dsidphy_pll_calc_rate() 251 do_div(tmp, fref); in inno_dsidphy_pll_calc_rate() 264 tmp = (u64)_fbdiv * fref; in inno_dsidphy_pll_calc_rate()
|
/linux-5.19.10/drivers/tty/serial/8250/ |
D | 8250_lpss.c | 77 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-5.19.10/drivers/gpu/drm/msm/dsi/phy/ |
D | dsi_phy_14nm.c | 211 u64 fref = VCO_REF_CLK_RATE; in pll_14nm_dec_frac_calc() local 213 DBG("vco_clk_rate=%lld ref_clk_rate=%lld", vco_clk_rate, fref); in pll_14nm_dec_frac_calc() 215 dec_start_multiple = div_u64(vco_clk_rate * multiplier, fref); in pll_14nm_dec_frac_calc() 254 u64 fref = VCO_REF_CLK_RATE; in pll_14nm_calc_vco_count() local 260 data = fref * vco_measure_time; in pll_14nm_calc_vco_count() 271 data = fref * kvco_measure_time; in pll_14nm_calc_vco_count()
|
/linux-5.19.10/drivers/gpu/drm/vc4/ |
D | vc4_hdmi_phy.c | 209 unsigned long long fref = OSCILLATOR_FREQUENCY; in phy_get_rm_offset() local 215 do_div(offset, fref); in phy_get_rm_offset()
|
/linux-5.19.10/drivers/spi/ |
D | spi-pxa2xx.c | 811 unsigned long fref = xtal / 2; /* mandatory division by 2, in quark_x1000_get_clk_div() local 814 unsigned long fref1 = fref / 2; /* case 1 */ in quark_x1000_get_clk_div() 815 unsigned long fref2 = fref * 2 / 5; /* case 2 */ in quark_x1000_get_clk_div() 872 if (fref / rate >= 80) { in quark_x1000_get_clk_div() 877 q1 = DIV_ROUND_UP(fref, rate); in quark_x1000_get_clk_div() 881 fssp = (u64)fref * m; in quark_x1000_get_clk_div()
|