Home
last modified time | relevance | path

Searched refs:prediv (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/drivers/clk/mmp/
Dclk-audio.c118 unsigned int prediv; in audio_pll_recalc_rate() local
135 for (prediv = 0; prediv < ARRAY_SIZE(predivs); prediv++) { in audio_pll_recalc_rate()
136 if (predivs[prediv].parent_rate != parent_rate) in audio_pll_recalc_rate()
145 val |= SSPA_AUD_PLL_CTRL0_FRACT(predivs[prediv].fract); in audio_pll_recalc_rate()
146 val |= SSPA_AUD_PLL_CTRL0_DIV_FBCCLK(predivs[prediv].fbcclk); in audio_pll_recalc_rate()
147 val |= SSPA_AUD_PLL_CTRL0_DIV_MCLK(predivs[prediv].mclk); in audio_pll_recalc_rate()
156 freq = predivs[prediv].freq_vco; in audio_pll_recalc_rate()
168 unsigned int prediv; in audio_pll_round_rate() local
172 for (prediv = 0; prediv < ARRAY_SIZE(predivs); prediv++) { in audio_pll_round_rate()
173 if (predivs[prediv].parent_rate != *parent_rate) in audio_pll_round_rate()
[all …]
/linux-6.1.9/arch/mips/ar7/
Dclock.c73 u32 prediv; member
100 static void approximate(int base, int target, int *prediv, in approximate() argument
111 *prediv = j; in approximate()
117 static void calculate(int base, int target, int *prediv, int *postdiv, in calculate() argument
122 for (*prediv = 1; *prediv <= 32; (*prediv)++) { in calculate()
123 tmp_base = base / *prediv; in calculate()
133 if (base / *prediv * *mul / *postdiv != target) { in calculate()
134 approximate(base, target, prediv, postdiv, mul); in calculate()
135 tmp_freq = base / *prediv * *mul / *postdiv; in calculate()
142 *prediv, *postdiv, *mul); in calculate()
[all …]
/linux-6.1.9/drivers/media/dvb-frontends/
Dtua6100.c62 u32 prediv; in tua6100_set_params() local
105 prediv = (c->frequency * _R_VAL) / (_ri / 1000); in tua6100_set_params()
106 div = prediv / _P_VAL; in tua6100_set_params()
113 reg1[3] |= (prediv - (div*_P_VAL)) & 0x7f; in tua6100_set_params()
Ddib7000p.c493 u8 loopdiv, prediv; in dib7000p_update_pll() local
497 prediv = reg_1856 & 0x3f; in dib7000p_update_pll()
500 if ((bw != NULL) && (bw->pll_prediv != prediv || bw->pll_ratio != loopdiv)) { in dib7000p_update_pll()
501 …dprintk("Updating pll (prediv: old = %d new = %d ; loopdiv : old = %d new = %d)\n", prediv, bw->p… in dib7000p_update_pll()
510 xtal = (internal / loopdiv) * prediv; in dib7000p_update_pll()
/linux-6.1.9/drivers/clk/sunxi-ng/
Dccu_mux.c21 u16 prediv = 1; in ccu_mux_get_prediv() local
30 return common->prediv; in ccu_mux_get_prediv()
43 prediv = cm->fixed_predivs[i].div; in ccu_mux_get_prediv()
55 prediv = div + 1; in ccu_mux_get_prediv()
59 return prediv; in ccu_mux_get_prediv()
Dccu_gate.c85 rate /= cg->common.prediv; in ccu_gate_recalc_rate()
97 div = cg->common.prediv; in ccu_gate_round_rate()
Dccu_gate.h77 .prediv = _prediv, \
105 .prediv = _prediv, \
Dccu_common.h31 u32 prediv; member
Dccu-sun6i-rtc.c227 .prediv = 750,
Dccu-sun5i.c90 .prediv = 8,
164 .prediv = 8,
/linux-6.1.9/drivers/clk/pistachio/
Dclk-pll.c273 u64 val, prediv, fbdiv, frac, postdiv1, postdiv2, rate; in pll_gf40lp_frac_recalc_rate() local
276 prediv = (val >> PLL_CTRL1_REFDIV_SHIFT) & PLL_CTRL1_REFDIV_MASK; in pll_gf40lp_frac_recalc_rate()
293 rate = do_div_round_closest(rate, (prediv * postdiv1 * postdiv2) << 24); in pll_gf40lp_frac_recalc_rate()
413 u32 val, prediv, fbdiv, postdiv1, postdiv2; in pll_gf40lp_laint_recalc_rate() local
417 prediv = (val >> PLL_CTRL1_REFDIV_SHIFT) & PLL_CTRL1_REFDIV_MASK; in pll_gf40lp_laint_recalc_rate()
425 rate = do_div_round_closest(rate, prediv * postdiv1 * postdiv2); in pll_gf40lp_laint_recalc_rate()
/linux-6.1.9/arch/arm/mach-davinci/
Dda850.c355 unsigned int prediv; member
364 .prediv = 1,
373 .prediv = 1,
382 .prediv = 2,
391 .prediv = 1,
400 .prediv = 1,
409 .prediv = 1,
/linux-6.1.9/drivers/clk/imx/
Dclk-composite-8m.c52 int *prediv, int *postdiv) in imx8m_clk_composite_compute_dividers() argument
58 *prediv = 1; in imx8m_clk_composite_compute_dividers()
66 *prediv = div1; in imx8m_clk_composite_compute_dividers()
/linux-6.1.9/drivers/clk/
Dclk-vt8500.c351 u32 *multiplier, u32 *prediv) in vt8500_find_pll_bits() argument
359 *prediv = 1; in vt8500_find_pll_bits()
364 *prediv = 2; in vt8500_find_pll_bits()
366 *prediv = 1; in vt8500_find_pll_bits()
368 *multiplier = rate / (parent_rate / *prediv); in vt8500_find_pll_bits()
369 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits()
Dclk-versaclock5.c343 unsigned int prediv, div; in vc5_pfd_recalc_rate() local
346 ret = regmap_read(vc5->regmap, VC5_VCO_CTRL_AND_PREDIV, &prediv); in vc5_pfd_recalc_rate()
351 if (prediv & VC5_VCO_CTRL_AND_PREDIV_BYPASS_PREDIV) in vc5_pfd_recalc_rate()
/linux-6.1.9/drivers/clk/keystone/
Dpll.c81 u32 mult = 0, prediv, postdiv, val; in clk_pllclk_recalc() local
96 prediv = (val & pll_data->plld_mask); in clk_pllclk_recalc()
109 rate /= (prediv + 1); in clk_pllclk_recalc()
/linux-6.1.9/drivers/phy/rockchip/
Dphy-rockchip-inno-dsidphy.c220 u8 prediv; member
363 inno->pll.prediv = best_prediv; in inno_dsidphy_pll_calc_rate()
390 REG_PREDIV_MASK, REG_PREDIV(inno->pll.prediv)); in inno_dsidphy_mipi_mode_enable()
534 u8 prediv = 2; in inno_dsidphy_lvds_mode_enable() local
548 REG_PREDIV_MASK, REG_PREDIV(prediv)); in inno_dsidphy_lvds_mode_enable()
Dphy-rockchip-inno-hdmi.c253 u8 prediv; member
268 u8 prediv; member
644 RK3228_PRE_PLL_PRE_DIV(cfg->prediv)); in inno_hdmi_phy_rk3228_clk_set_rate()
795 inno_write(inno, 0xa1, RK3328_PRE_PLL_PRE_DIV(cfg->prediv)); in inno_hdmi_phy_rk3328_clk_set_rate()
912 RK3228_POST_PLL_PRE_DIV(cfg->prediv)); in inno_hdmi_phy_rk3228_power_on()
1026 RK3328_POST_PLL_PRE_DIV(cfg->prediv)); in inno_hdmi_phy_rk3328_power_on()
1032 RK3328_POST_PLL_PRE_DIV(cfg->prediv)); in inno_hdmi_phy_rk3328_power_on()
/linux-6.1.9/drivers/clk/ralink/
Dclk-mt7621.c256 u32 pll, prediv, fbdiv; in mt7621_cpu_recalc_rate() local
273 prediv = FIELD_GET(CPU_PLL_PREDIV_MASK, pll); in mt7621_cpu_recalc_rate()
274 cpu_clk = ((fbdiv + 1) * xtal_clk) >> prediv_tbl[prediv]; in mt7621_cpu_recalc_rate()
/linux-6.1.9/drivers/media/usb/dvb-usb/
Ddib0700_devices.c2042 u8 spur = 0, prediv = 0, loopdiv = 0, min_prediv = 1, max_prediv = 1; in dib8096p_get_best_sampling() local
2053 adc->pll_prediv = prediv; in dib8096p_get_best_sampling()
2072 for (prediv = min_prediv; prediv < max_prediv; prediv++) { in dib8096p_get_best_sampling()
2073 fcp = xtal / prediv; in dib8096p_get_best_sampling()
2076 fmem = ((xtal/prediv) * loopdiv); in dib8096p_get_best_sampling()
2093 adc->pll_prediv = prediv; in dib8096p_get_best_sampling()
2097 …he.frequency, fe->dtv_property_cache.bandwidth_hz, xtal, fmem, fdem, fs, prediv, loopdiv, adc->tim… in dib8096p_get_best_sampling()
2555 u8 spur = 0, prediv = 0, loopdiv = 0, min_prediv = 1, max_prediv = 1; in dib7090p_get_best_sampling() local
2566 adc->pll_prediv = prediv; in dib7090p_get_best_sampling()
2586 for (prediv = min_prediv ; prediv < max_prediv; prediv++) { in dib7090p_get_best_sampling()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/clock/
Dsprd,sc9860-clk.txt9 - "sprd,sc9860-aon-prediv"
/linux-6.1.9/drivers/media/i2c/
Dov5640.c1446 u8 prediv, mult, sysdiv; in ov5640_set_mipi_pclk() local
1469 ov5640_calc_sys_clk(sensor, sysclk, &prediv, &mult, &sysdiv); in ov5640_set_mipi_pclk()
1527 root_div | prediv); in ov5640_set_mipi_pclk()
1570 u8 prediv, mult, sysdiv, pll_rdiv, bit_div, pclk_div; in ov5640_set_dvp_pclk() local
1578 ov5640_calc_pclk(sensor, rate, &prediv, &mult, &sysdiv, &pll_rdiv, in ov5640_set_dvp_pclk()
1604 0x1f, prediv | ((pll_rdiv - 1) << 4)); in ov5640_set_dvp_pclk()
1851 u32 multiplier, prediv, VCO, sysdiv, pll_rdiv; in ov5640_get_sysclk() local
1879 prediv = temp1 & 0x0f; in ov5640_get_sysclk()
1888 if (!prediv || !sysdiv || !pll_rdiv || !bit_div2x) in ov5640_get_sysclk()
1891 VCO = xvclk * multiplier / prediv; in ov5640_get_sysclk()
Dov2659.c897 u32 prediv, postdiv, mult; in ov2659_pll_calc_params() local
905 prediv = ctrl3[j].div; in ov2659_pll_calc_params()
909 actual /= prediv; in ov2659_pll_calc_params()
/linux-6.1.9/arch/arm64/boot/dts/sprd/
Dsc9860.dtsi210 aon_prediv: aon-prediv {
211 compatible = "sprd,sc9860-aon-prediv";
/linux-6.1.9/drivers/tty/serial/
Dsh-sci.c2270 unsigned int sr, br, prediv, scrate, c; in sci_scbrr_calc() local
2294 prediv = sr << (2 * c + 1); in sci_scbrr_calc()
2305 if (bps > UINT_MAX / prediv) in sci_scbrr_calc()
2308 scrate = prediv * bps; in sci_scbrr_calc()
2312 err = DIV_ROUND_CLOSEST(freq, br * prediv) - bps; in sci_scbrr_calc()

12