Home
last modified time | relevance | path

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

12

/linux/drivers/clk/tegra/
A Dclk-tegra124.c153 { .pdiv = 1, .hw_val = 0 },
154 { .pdiv = 2, .hw_val = 1 },
155 { .pdiv = 3, .hw_val = 2 },
156 { .pdiv = 4, .hw_val = 3 },
157 { .pdiv = 5, .hw_val = 4 },
158 { .pdiv = 6, .hw_val = 5 },
249 { .pdiv = 1, .hw_val = 0 },
250 { .pdiv = 2, .hw_val = 1 },
251 { .pdiv = 3, .hw_val = 2 },
252 { .pdiv = 4, .hw_val = 3 },
[all …]
A Dclk-tegra114.c211 { .pdiv = 1, .hw_val = 0 },
212 { .pdiv = 2, .hw_val = 1 },
213 { .pdiv = 4, .hw_val = 3 },
214 { .pdiv = 8, .hw_val = 5 },
215 { .pdiv = 16, .hw_val = 7 },
216 { .pdiv = 0, .hw_val = 0 },
285 { .pdiv = 1, .hw_val = 0 },
286 { .pdiv = 2, .hw_val = 1 },
287 { .pdiv = 0, .hw_val = 0 },
442 { .pdiv = 1, .hw_val = 1 },
[all …]
A Dclk-tegra210.c1486 u32 pdiv; in tegra210_pll_fixed_mdiv_cfg() local
1580 { .pdiv = 1, .hw_val = 0 },
1581 { .pdiv = 2, .hw_val = 1 },
1582 { .pdiv = 3, .hw_val = 2 },
1583 { .pdiv = 4, .hw_val = 3 },
1584 { .pdiv = 5, .hw_val = 4 },
1585 { .pdiv = 6, .hw_val = 5 },
1606 if (pdiv) in pll_qlin_p_to_pdiv()
1607 *pdiv = i; in pll_qlin_p_to_pdiv()
1637 if (pdiv) in pll_expo_p_to_pdiv()
[all …]
/linux/drivers/clk/samsung/
A Dclk-pll.c153 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local
186 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local
195 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate()
223 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local
232 do_div(fvco, (pdiv << sdiv)); in samsung_pll35xx_recalc_rate()
339 do_div(fvco, (pdiv << sdiv)); in samsung_pll36xx_recalc_rate()
446 do_div(fvco, (pdiv << sdiv)); in samsung_pll0822x_recalc_rate()
534 do_div(fvco, (pdiv << sdiv)); in samsung_pll0831x_recalc_rate()
632 do_div(fvco, (pdiv << sdiv)); in samsung_pll45xx_recalc_rate()
768 do_div(fvco, (pdiv << sdiv)); in samsung_pll46xx_recalc_rate()
[all …]
A Dclk-pll.h53 .pdiv = (_p), \
62 .pdiv = (_p), \
71 .pdiv = (_p), \
80 .pdiv = (_p), \
90 .pdiv = (_p), \
100 .pdiv = (_p), \
111 .pdiv = (_p), \
123 unsigned int pdiv; member
/linux/drivers/cpufreq/
A Ds3c2412-cpufreq.c51 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local
99 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
101 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
102 pdiv++; in s3c2412_cpufreq_calcdivs()
104 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
106 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2412_cpufreq_calcdivs()
108 if (pdiv > 2) in s3c2412_cpufreq_calcdivs()
111 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs()
116 cfg->divs.p_divisor = pdiv * armdiv; in s3c2412_cpufreq_calcdivs()
A Ds3c2440-cpufreq.c69 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local
103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
105 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
106 pdiv++; in s3c2440_cpufreq_calcdivs()
108 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2440_cpufreq_calcdivs()
110 if (pdiv > 2) in s3c2440_cpufreq_calcdivs()
113 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs()
134 cfg->divs.p_divisor = pdiv; in s3c2440_cpufreq_calcdivs()
A Ds3c2410-cpufreq.c46 unsigned int hdiv, pdiv; in s3c2410_cpufreq_calcdivs() local
65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
73 pdiv *= hdiv; in s3c2410_cpufreq_calcdivs()
76 cfg->divs.p_divisor = pdiv; in s3c2410_cpufreq_calcdivs()
A Dbrcmstb-avs-cpufreq.c341 static void brcm_avs_parse_p1(u32 p1, unsigned int *mdiv_p0, unsigned int *pdiv, in brcm_avs_parse_p1() argument
345 *pdiv = (p1 >> PDIV_SHIFT) & PDIV_MASK; in brcm_avs_parse_p1()
679 unsigned int ndiv, pdiv; in show_brcm_avs_pmap() local
685 brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv); in show_brcm_avs_pmap()
689 pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2, in show_brcm_avs_pmap()
/linux/arch/arm/mach-s3c/
A Dregs-s3c2443-clock.h153 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_mpll() local
157 pdiv = pllval >> S3C2443_PLLCON_PDIVSHIFT; in s3c2443_get_mpll()
161 pdiv &= S3C2443_PLLCON_PDIVMASK; in s3c2443_get_mpll()
165 do_div(fvco, pdiv << sdiv); in s3c2443_get_mpll()
173 unsigned int mdiv, pdiv, sdiv; in s3c2443_get_epll() local
177 pdiv = pllval >> S3C2443_PLLCON_PDIVSHIFT; in s3c2443_get_epll()
181 pdiv &= S3C2443_PLLCON_PDIVMASK; in s3c2443_get_epll()
185 do_div(fvco, (pdiv + 2) << sdiv); in s3c2443_get_epll()
/linux/drivers/clk/
A Dclk-cdce925.c68 u16 pdiv; /* 1..127 for Y2-Y9; 1..1023 for Y1 */ member
295 0x03, (pdiv >> 8) & 0x03); in cdce925_clk_set_pdiv()
296 regmap_write(data->chip->regmap, 0x03, pdiv & 0xFF); in cdce925_clk_set_pdiv()
299 regmap_update_bits(data->chip->regmap, 0x16, 0x7F, pdiv); in cdce925_clk_set_pdiv()
355 cdce925_clk_set_pdiv(data, data->pdiv); in cdce925_clk_prepare()
373 if (data->pdiv) in cdce925_clk_recalc_rate()
374 return parent_rate / data->pdiv; in cdce925_clk_recalc_rate()
460 data->pdiv = cdce925_calc_divider(rate, parent_rate); in cdce925_clk_set_rate()
507 data->pdiv = cdce925_y1_calc_divider(rate, parent_rate); in cdce925_clk_y1_set_rate()
752 data->clk[0].pdiv = 1; in cdce925_probe()
[all …]
/linux/drivers/clk/bcm/
A Dclk-iproc-pll.c114 vco_out->pdiv = 1; in pll_calc_param()
292 unsigned int pdiv; in pll_fractional_change_only() local
307 pdiv = (val >> ctrl->pdiv.shift) & bit_mask(ctrl->pdiv.width); in pll_fractional_change_only()
309 if (pdiv != vco->pdiv) in pll_fractional_change_only()
331 if (vco->pdiv == 0) in pll_set_rate()
422 val &= ~(bit_mask(ctrl->pdiv.width) << ctrl->pdiv.shift); in pll_set_rate()
423 val |= vco->pdiv << ctrl->pdiv.shift; in pll_set_rate()
465 unsigned int pdiv; in iproc_pll_recalc_rate() local
494 pdiv = (val >> ctrl->pdiv.shift) & bit_mask(ctrl->pdiv.width); in iproc_pll_recalc_rate()
498 if (pdiv == 0) in iproc_pll_recalc_rate()
[all …]
A Dclk-iproc-armpll.c202 unsigned int pdiv; in iproc_arm_pll_recalc_rate() local
218 pdiv = (val >> IPROC_CLK_PLLARMA_PDIV_SHIFT) & in iproc_arm_pll_recalc_rate()
220 if (pdiv == 0) in iproc_arm_pll_recalc_rate()
221 pdiv = 16; in iproc_arm_pll_recalc_rate()
230 pll->rate = (pll->rate / pdiv) / mdiv; in iproc_arm_pll_recalc_rate()
235 (unsigned int)(ndiv >> 20), pdiv, mdiv); in iproc_arm_pll_recalc_rate()
A Dclk-sr.c43 .pdiv = REG_VAL(0x14, 0, 4),
103 .pdiv = REG_VAL(0x14, 0, 4),
162 .pdiv = REG_VAL(0x14, 0, 4),
197 .pdiv = REG_VAL(0x14, 0, 4),
251 .pdiv = REG_VAL(0x14, 0, 4),
287 .pdiv = REG_VAL(0x4, 26, 4),
332 .pdiv = REG_VAL(0x4, 26, 4),
371 .pdiv = REG_VAL(0x4, 26, 4),
A Dclk-ns2.c47 .pdiv = REG_VAL(0x8, 0, 4),
110 .pdiv = REG_VAL(0x8, 0, 4),
172 .pdiv = REG_VAL(0x8, 0, 4),
234 .pdiv = REG_VAL(0x8, 0, 4),
A Dclk-cygnus.c66 .pdiv = REG_VAL(0x14, 0, 4),
124 .pdiv = REG_VAL(0x4, 26, 4),
202 .pdiv = REG_VAL(0x14, 0, 4),
281 .pdiv = REG_VAL(0x44, 0, 4),
A Dclk-iproc.h98 unsigned int pdiv; member
174 struct iproc_clk_reg_op pdiv; member
A Dclk-nsp.c52 .pdiv = REG_VAL(0x18, 24, 3),
109 .pdiv = REG_VAL(0x4, 28, 3),
/linux/drivers/clk/imx/
A Dclk-pll14xx.c122 u32 mdiv, pdiv, sdiv, pll_div; in clk_pll1416x_recalc_rate() local
127 pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT; in clk_pll1416x_recalc_rate()
131 do_div(fvco, pdiv << sdiv); in clk_pll1416x_recalc_rate()
140 u32 mdiv, pdiv, sdiv, pll_div_ctl0, pll_div_ctl1; in clk_pll1443x_recalc_rate() local
147 pdiv = (pll_div_ctl0 & PDIV_MASK) >> PDIV_SHIFT; in clk_pll1443x_recalc_rate()
153 pdiv *= 65536; in clk_pll1443x_recalc_rate()
155 do_div(fvco, pdiv << sdiv); in clk_pll1443x_recalc_rate()
168 return rate->mdiv != old_mdiv || rate->pdiv != old_pdiv; in clk_pll14xx_mp_change()
217 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1416x_set_rate()
282 div_val = (rate->mdiv << MDIV_SHIFT) | (rate->pdiv << PDIV_SHIFT) | in clk_pll1443x_set_rate()
/linux/drivers/thermal/tegra/
A Dtegra124-soctherm.c51 .pdiv = 8,
70 .pdiv = 8,
89 .pdiv = 8,
106 .pdiv = 8,
A Dtegra132-soctherm.c51 .pdiv = 8,
70 .pdiv = 8,
89 .pdiv = 8,
106 .pdiv = 8,
A Dtegra210-soctherm.c52 .pdiv = 8,
71 .pdiv = 8,
90 .pdiv = 8,
107 .pdiv = 8,
A Dsoctherm.h77 u32 pdiv, pdiv_ate, pdiv_mask; member
89 u32 tall, tiddq_en, ten_count, pdiv, pdiv_ate, tsample, tsample_ate; member
/linux/drivers/gpu/drm/i915/display/
A Dintel_dpll_mgr.c1391 u32 pdiv; member
1416 params->pdiv = 0; in skl_wrpll_params_populate()
1419 params->pdiv = 1; in skl_wrpll_params_populate()
1422 params->pdiv = 2; in skl_wrpll_params_populate()
1425 params->pdiv = 4; in skl_wrpll_params_populate()
2321 *pdiv = 2; in icl_wrpll_get_multipliers()
2325 *pdiv = 2; in icl_wrpll_get_multipliers()
2329 *pdiv = 3; in icl_wrpll_get_multipliers()
2333 *pdiv = 5; in icl_wrpll_get_multipliers()
2337 *pdiv = 7; in icl_wrpll_get_multipliers()
[all …]
/linux/drivers/clk/st/
A Dclk-flexgen.c39 struct clk_divider pdiv; member
142 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_recalc_rate()
158 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_set_rate()
243 fgxbar->pdiv.lock = lock; in clk_register_flexgen()
244 fgxbar->pdiv.reg = reg + 0x58 + idx * 4; in clk_register_flexgen()
245 fgxbar->pdiv.width = 10; in clk_register_flexgen()

Completed in 58 milliseconds

12