Home
last modified time | relevance | path

Searched refs:pdiv (Results 1 – 22 of 22) sorted by relevance

/linux-4.1.27/drivers/clk/samsung/
Dclk-pll.c77 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local
82 pdiv = (pll_con >> PLL2126_PDIV_SHIFT) & PLL2126_PDIV_MASK; in samsung_pll2126_recalc_rate()
86 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate()
110 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local
115 pdiv = (pll_con >> PLL3000_PDIV_SHIFT) & PLL3000_PDIV_MASK; in samsung_pll3000_recalc_rate()
119 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate()
147 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local
152 pdiv = (pll_con >> PLL35XX_PDIV_SHIFT) & PLL35XX_PDIV_MASK; in samsung_pll35xx_recalc_rate()
156 do_div(fvco, (pdiv << sdiv)); in samsung_pll35xx_recalc_rate()
169 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change()
[all …]
Dclk-pll.h46 .pdiv = (_p), \
54 .pdiv = (_p), \
63 .pdiv = (_p), \
72 .pdiv = (_p), \
82 .pdiv = (_p), \
94 unsigned int pdiv; member
/linux-4.1.27/arch/arm/mach-s3c24xx/include/mach/
Dregs-s3c2443-clock.h154 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_mpll() local
158 pdiv = pllval >> S3C2443_PLLCON_PDIVSHIFT; in s3c2443_get_mpll()
162 pdiv &= S3C2443_PLLCON_PDIVMASK; in s3c2443_get_mpll()
166 do_div(fvco, pdiv << sdiv); in s3c2443_get_mpll()
174 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_epll() local
178 pdiv = pllval >> S3C2443_PLLCON_PDIVSHIFT; in s3c2443_get_epll()
182 pdiv &= S3C2443_PLLCON_PDIVMASK; in s3c2443_get_epll()
186 do_div(fvco, (pdiv + 2) << sdiv); in s3c2443_get_epll()
/linux-4.1.27/drivers/clk/tegra/
Dclk-tegra124.c170 { .pdiv = 1, .hw_val = 0 },
171 { .pdiv = 2, .hw_val = 1 },
172 { .pdiv = 3, .hw_val = 2 },
173 { .pdiv = 4, .hw_val = 3 },
174 { .pdiv = 5, .hw_val = 4 },
175 { .pdiv = 6, .hw_val = 5 },
176 { .pdiv = 8, .hw_val = 6 },
177 { .pdiv = 10, .hw_val = 7 },
178 { .pdiv = 12, .hw_val = 8 },
179 { .pdiv = 16, .hw_val = 9 },
[all …]
Dclk-tegra114.c188 { .pdiv = 1, .hw_val = 0 },
189 { .pdiv = 2, .hw_val = 1 },
190 { .pdiv = 3, .hw_val = 2 },
191 { .pdiv = 4, .hw_val = 3 },
192 { .pdiv = 5, .hw_val = 4 },
193 { .pdiv = 6, .hw_val = 5 },
194 { .pdiv = 8, .hw_val = 6 },
195 { .pdiv = 10, .hw_val = 7 },
196 { .pdiv = 12, .hw_val = 8 },
197 { .pdiv = 16, .hw_val = 9 },
[all …]
Dclk-pll.c365 while (p_tohw->pdiv) { in _p_div_to_hw()
366 if (p_div <= p_tohw->pdiv) in _p_div_to_hw()
381 while (p_tohw->pdiv) { in _hw_to_p_div()
383 return p_tohw->pdiv; in _hw_to_p_div()
653 int pdiv; in clk_pll_recalc_rate() local
674 pdiv = _hw_to_p_div(hw, cfg.p); in clk_pll_recalc_rate()
675 if (pdiv < 0) { in clk_pll_recalc_rate()
677 pdiv = 1; in clk_pll_recalc_rate()
680 cfg.m *= pdiv; in clk_pll_recalc_rate()
1739 while (p_tohw->pdiv) { in tegra_clk_register_pllc()
[all …]
Dclk-tegra20.c375 { .pdiv = 1, .hw_val = 1 },
376 { .pdiv = 2, .hw_val = 0 },
377 { .pdiv = 0, .hw_val = 0 },
Dclk-tegra30.c331 { .pdiv = 1, .hw_val = 1 },
332 { .pdiv = 2, .hw_val = 0 },
333 { .pdiv = 0, .hw_val = 0 },
Dclk.h130 u8 pdiv; member
/linux-4.1.27/drivers/cpufreq/
Ds3c2412-cpufreq.c43 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local
91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
94 pdiv++; in s3c2412_cpufreq_calcdivs()
96 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
98 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2412_cpufreq_calcdivs()
100 if (pdiv > 2) in s3c2412_cpufreq_calcdivs()
103 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs()
108 cfg->divs.p_divisor = pdiv * armdiv; in s3c2412_cpufreq_calcdivs()
Ds3c2440-cpufreq.c57 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local
91 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
93 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
94 pdiv++; in s3c2440_cpufreq_calcdivs()
96 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2440_cpufreq_calcdivs()
98 if (pdiv > 2) in s3c2440_cpufreq_calcdivs()
101 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs()
122 cfg->divs.p_divisor = pdiv; in s3c2440_cpufreq_calcdivs()
Ds3c2410-cpufreq.c49 unsigned int hdiv, pdiv; in s3c2410_cpufreq_calcdivs() local
68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
76 pdiv *= hdiv; in s3c2410_cpufreq_calcdivs()
79 cfg->divs.p_divisor = pdiv; in s3c2410_cpufreq_calcdivs()
/linux-4.1.27/drivers/clk/st/
Dclk-flexgen.c25 struct clk_divider pdiv; member
123 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_recalc_rate()
139 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_set_rate()
215 fgxbar->pdiv.lock = lock; in clk_register_flexgen()
216 fgxbar->pdiv.reg = reg + 0x58 + idx * 4; in clk_register_flexgen()
217 fgxbar->pdiv.width = 10; in clk_register_flexgen()
Dclkgen-pll.c48 struct clkgen_field pdiv; member
75 .pdiv = CLKGEN_FIELD(0x0, C65_PDIV_MASK, 16),
277 unsigned long mdiv, ndiv, pdiv; in recalc_stm_pll800c65() local
284 pdiv = CLKGEN_READ(pll, pdiv); in recalc_stm_pll800c65()
292 rate = (unsigned long)div64_u64(res, mdiv * (1 << pdiv)); in recalc_stm_pll800c65()
Dclkgen-fsyn.c529 unsigned long pdiv = 1, n; in clk_fs660c32_vco_get_params() local
543 n = output * pdiv / input; in clk_fs660c32_vco_get_params()
/linux-4.1.27/drivers/gpu/drm/sti/
Dsti_hdmi_tx3g0c55phy.c139 u32 mdiv, ndiv, pdiv, val; in enable_pll_rejection() local
166 pdiv = 4; in enable_pll_rejection()
170 pdiv = 2; in enable_pll_rejection()
182 val |= (pdiv << REJECTION_PLL_HDMI_PDIV_SHIFT) | in enable_pll_rejection()
/linux-4.1.27/arch/arm/mach-ep93xx/
Dclock.c355 int *psel, int *esel, int *pdiv, int *div) in calc_clk_div() argument
392 *pdiv = __pdiv - 3; in calc_clk_div()
412 int err, psel = 0, esel = 0, pdiv = 0, div = 0; in set_div_rate() local
415 err = calc_clk_div(clk, rate, &psel, &esel, &pdiv, &div); in set_div_rate()
426 (pdiv << EP93XX_SYSCON_CLKDIV_PDIV_SHIFT) | div; in set_div_rate()
/linux-4.1.27/drivers/thermal/
Dtegra_soctherm.c81 u32 tall, tsample, tiddq_en, ten_count, pdiv, tsample_ate, pdiv_ate; member
101 .pdiv = 8,
240 mult = sensor->config->pdiv * sensor->config->tsample_ate; in calculate_tsensor_calibration()
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_ddi.c995 uint32_t pdiv; member
1091 wrpll_params->pdiv = 0; in skl_ddi_calculate_wrpll()
1094 wrpll_params->pdiv = 1; in skl_ddi_calculate_wrpll()
1097 wrpll_params->pdiv = 2; in skl_ddi_calculate_wrpll()
1100 wrpll_params->pdiv = 4; in skl_ddi_calculate_wrpll()
1174 DPLL_CFGCR2_PDIV(wrpll_params.pdiv) | in skl_ddi_pll_select()
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_lp.c562 lpphy->pdiv = 1; in lpphy_2062_init()
565 lpphy->pdiv = 2; in lpphy_2062_init()
569 tmp = (((800000000 * lpphy->pdiv + crystalfreq) / in lpphy_2062_init()
573 tmp = (((100 * crystalfreq + 16000000 * lpphy->pdiv) / in lpphy_2062_init()
574 (32000000 * lpphy->pdiv)) - 1) & 0xFF; in lpphy_2062_init()
577 tmp = (((2 * crystalfreq + 1000000 * lpphy->pdiv) / in lpphy_2062_init()
578 (2000000 * lpphy->pdiv)) - 1) & 0xFF; in lpphy_2062_init()
581 ref = (1000 * lpphy->pdiv + 2 * crystalfreq) / (2000 * lpphy->pdiv); in lpphy_2062_init()
2441 tmp2 = lpphy->pdiv * 1000; in lpphy_b2062_tune()
Dphy_lp.h891 unsigned int pdiv; member
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_int.h657 u8 pdiv; member