/linux-6.1.9/drivers/clk/mmp/ |
D | clk-audio.c | 118 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/ |
D | clock.c | 73 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/ |
D | tua6100.c | 62 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()
|
D | dib7000p.c | 493 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/ |
D | ccu_mux.c | 21 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()
|
D | ccu_gate.c | 85 rate /= cg->common.prediv; in ccu_gate_recalc_rate() 97 div = cg->common.prediv; in ccu_gate_round_rate()
|
D | ccu_gate.h | 77 .prediv = _prediv, \ 105 .prediv = _prediv, \
|
D | ccu_common.h | 31 u32 prediv; member
|
D | ccu-sun6i-rtc.c | 227 .prediv = 750,
|
D | ccu-sun5i.c | 90 .prediv = 8, 164 .prediv = 8,
|
/linux-6.1.9/drivers/clk/pistachio/ |
D | clk-pll.c | 273 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/ |
D | da850.c | 355 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/ |
D | clk-composite-8m.c | 52 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/ |
D | clk-vt8500.c | 351 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()
|
D | clk-versaclock5.c | 343 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/ |
D | pll.c | 81 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/ |
D | phy-rockchip-inno-dsidphy.c | 220 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()
|
D | phy-rockchip-inno-hdmi.c | 253 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/ |
D | clk-mt7621.c | 256 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/ |
D | dib0700_devices.c | 2042 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/ |
D | sprd,sc9860-clk.txt | 9 - "sprd,sc9860-aon-prediv"
|
/linux-6.1.9/drivers/media/i2c/ |
D | ov5640.c | 1446 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()
|
D | ov2659.c | 897 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/ |
D | sc9860.dtsi | 210 aon_prediv: aon-prediv { 211 compatible = "sprd,sc9860-aon-prediv";
|
/linux-6.1.9/drivers/tty/serial/ |
D | sh-sci.c | 2270 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()
|