Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/media/dvb-frontends/
Dtua6100.c70 u32 prediv; in tua6100_set_params() local
113 prediv = (c->frequency * _R_VAL) / (_ri / 1000); in tua6100_set_params()
114 div = prediv / _P_VAL; in tua6100_set_params()
121 reg1[3] |= (prediv - (div*_P_VAL)) & 0x7f; in tua6100_set_params()
Ddib7000p.c496 u8 loopdiv, prediv; in dib7000p_update_pll() local
500 prediv = reg_1856 & 0x3f; in dib7000p_update_pll()
503 if (loopdiv && bw && (bw->pll_prediv != prediv || bw->pll_ratio != loopdiv)) { in dib7000p_update_pll()
504 …dprintk("Updating pll (prediv: old = %d new = %d ; loopdiv : old = %d new = %d)\n", prediv, bw->p… in dib7000p_update_pll()
513 xtal = (internal / loopdiv) * prediv; in dib7000p_update_pll()
Ddib8000.c753 u8 loopdiv, prediv, oldprediv = state->cfg.pll->pll_prediv ; in dib8000_update_pll() local
757 prediv = reg_1856 & 0x3f; in dib8000_update_pll()
760 if ((pll == NULL) || (pll->pll_prediv == prediv && in dib8000_update_pll()
764 …dprintk("Updating pll (prediv: old = %d new = %d ; loopdiv : old = %d new = %d)\n", prediv, pll->… in dib8000_update_pll()
778 xtal = 2 * (internal / loopdiv) * prediv; in dib8000_update_pll()
/linux-4.19.296/drivers/clk/sunxi-ng/
Dccu_mux.c22 u16 prediv = 1; in ccu_mux_get_prediv() local
31 return common->prediv; in ccu_mux_get_prediv()
44 prediv = cm->fixed_predivs[i].div; in ccu_mux_get_prediv()
56 prediv = div + 1; in ccu_mux_get_prediv()
60 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_common.h38 u32 prediv; member
Dccu-sun5i.c97 .prediv = 8,
171 .prediv = 8,
Dccu-sun4i-a10.c95 .prediv = 8,
196 .prediv = 8,
Dccu-sun8i-a83t.c485 .prediv = 2,
/linux-4.19.296/drivers/clk/pistachio/
Dclk-pll.c276 u64 val, prediv, fbdiv, frac, postdiv1, postdiv2, rate; in pll_gf40lp_frac_recalc_rate() local
279 prediv = (val >> PLL_CTRL1_REFDIV_SHIFT) & PLL_CTRL1_REFDIV_MASK; in pll_gf40lp_frac_recalc_rate()
296 rate = do_div_round_closest(rate, (prediv * postdiv1 * postdiv2) << 24); in pll_gf40lp_frac_recalc_rate()
416 u32 val, prediv, fbdiv, postdiv1, postdiv2; in pll_gf40lp_laint_recalc_rate() local
420 prediv = (val >> PLL_CTRL1_REFDIV_SHIFT) & PLL_CTRL1_REFDIV_MASK; in pll_gf40lp_laint_recalc_rate()
428 rate = do_div_round_closest(rate, prediv * postdiv1 * postdiv2); in pll_gf40lp_laint_recalc_rate()
/linux-4.19.296/drivers/clk/
Dclk-vt8500.c360 u32 *multiplier, u32 *prediv) in vt8500_find_pll_bits() argument
368 *prediv = 1; in vt8500_find_pll_bits()
373 *prediv = 2; in vt8500_find_pll_bits()
375 *prediv = 1; in vt8500_find_pll_bits()
377 *multiplier = rate / (parent_rate / *prediv); in vt8500_find_pll_bits()
378 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits()
Dclk-versaclock5.c332 unsigned int prediv, div; in vc5_pfd_recalc_rate() local
334 regmap_read(vc5->regmap, VC5_VCO_CTRL_AND_PREDIV, &prediv); in vc5_pfd_recalc_rate()
337 if (prediv & VC5_VCO_CTRL_AND_PREDIV_BYPASS_PREDIV) in vc5_pfd_recalc_rate()
/linux-4.19.296/drivers/clk/keystone/
Dpll.c85 u32 mult = 0, prediv, postdiv, val; in clk_pllclk_recalc() local
100 prediv = (val & pll_data->plld_mask); in clk_pllclk_recalc()
113 rate /= (prediv + 1); in clk_pllclk_recalc()