| /linux-4.4.14/drivers/clk/samsung/ |
| D | clk-pll.c | 79 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local 84 pdiv = (pll_con >> PLL2126_PDIV_SHIFT) & PLL2126_PDIV_MASK; in samsung_pll2126_recalc_rate() 88 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate() 112 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local 117 pdiv = (pll_con >> PLL3000_PDIV_SHIFT) & PLL3000_PDIV_MASK; in samsung_pll3000_recalc_rate() 121 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate() 149 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local 154 pdiv = (pll_con >> PLL35XX_PDIV_SHIFT) & PLL35XX_PDIV_MASK; in samsung_pll35xx_recalc_rate() 158 do_div(fvco, (pdiv << sdiv)); in samsung_pll35xx_recalc_rate() 171 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change() [all …]
|
| D | clk-pll.h | 46 .pdiv = (_p), \ 54 .pdiv = (_p), \ 63 .pdiv = (_p), \ 72 .pdiv = (_p), \ 82 .pdiv = (_p), \ 94 unsigned int pdiv; member
|
| /linux-4.4.14/arch/arm/mach-s3c24xx/include/mach/ |
| D | regs-s3c2443-clock.h | 154 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.4.14/drivers/cpufreq/ |
| D | s3c2412-cpufreq.c | 43 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()
|
| D | s3c2440-cpufreq.c | 57 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()
|
| D | s3c2410-cpufreq.c | 49 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.4.14/drivers/clk/tegra/ |
| D | clk-tegra124.c | 172 { .pdiv = 1, .hw_val = 0 }, 173 { .pdiv = 2, .hw_val = 1 }, 174 { .pdiv = 3, .hw_val = 2 }, 175 { .pdiv = 4, .hw_val = 3 }, 176 { .pdiv = 5, .hw_val = 4 }, 177 { .pdiv = 6, .hw_val = 5 }, 178 { .pdiv = 8, .hw_val = 6 }, 179 { .pdiv = 10, .hw_val = 7 }, 180 { .pdiv = 12, .hw_val = 8 }, 181 { .pdiv = 16, .hw_val = 9 }, [all …]
|
| D | clk-tegra114.c | 186 { .pdiv = 1, .hw_val = 0 }, 187 { .pdiv = 2, .hw_val = 1 }, 188 { .pdiv = 3, .hw_val = 2 }, 189 { .pdiv = 4, .hw_val = 3 }, 190 { .pdiv = 5, .hw_val = 4 }, 191 { .pdiv = 6, .hw_val = 5 }, 192 { .pdiv = 8, .hw_val = 6 }, 193 { .pdiv = 10, .hw_val = 7 }, 194 { .pdiv = 12, .hw_val = 8 }, 195 { .pdiv = 16, .hw_val = 9 }, [all …]
|
| D | clk-pll.c | 365 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 …]
|
| D | clk-tegra20.c | 374 { .pdiv = 1, .hw_val = 1 }, 375 { .pdiv = 2, .hw_val = 0 }, 376 { .pdiv = 0, .hw_val = 0 },
|
| D | clk-tegra30.c | 330 { .pdiv = 1, .hw_val = 1 }, 331 { .pdiv = 2, .hw_val = 0 }, 332 { .pdiv = 0, .hw_val = 0 },
|
| D | clk.h | 130 u8 pdiv; member
|
| /linux-4.4.14/drivers/clk/bcm/ |
| D | clk-iproc-armpll.c | 200 unsigned int pdiv; in iproc_arm_pll_recalc_rate() local 216 pdiv = (val >> IPROC_CLK_PLLARMA_PDIV_SHIFT) & in iproc_arm_pll_recalc_rate() 218 if (pdiv == 0) in iproc_arm_pll_recalc_rate() 219 pdiv = 16; in iproc_arm_pll_recalc_rate() 228 pll->rate = (pll->rate / pdiv) / mdiv; in iproc_arm_pll_recalc_rate() 233 (unsigned int)(ndiv >> 20), pdiv, mdiv); in iproc_arm_pll_recalc_rate()
|
| D | clk-iproc-pll.c | 259 if (vco->pdiv == 0) in pll_set_rate() 262 ref_freq = parent_rate / vco->pdiv; in pll_set_rate() 326 val = readl(pll->control_base + ctrl->pdiv.offset); in pll_set_rate() 327 val &= ~(bit_mask(ctrl->pdiv.width) << ctrl->pdiv.shift); in pll_set_rate() 328 val |= vco->pdiv << ctrl->pdiv.shift; in pll_set_rate() 329 iproc_pll_write(pll, pll->control_base, ctrl->pdiv.offset, val); in pll_set_rate() 370 unsigned int pdiv; in iproc_pll_recalc_rate() local 399 val = readl(pll->control_base + ctrl->pdiv.offset); in iproc_pll_recalc_rate() 400 pdiv = (val >> ctrl->pdiv.shift) & bit_mask(ctrl->pdiv.width); in iproc_pll_recalc_rate() 404 if (pdiv == 0) in iproc_pll_recalc_rate() [all …]
|
| D | clk-ns2.c | 47 .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),
|
| D | clk-iproc.h | 73 unsigned int pdiv; member 149 struct iproc_clk_reg_op pdiv; member
|
| D | clk-cygnus.c | 66 .pdiv = REG_VAL(0x14, 0, 4), 124 .pdiv = REG_VAL(0x4, 26, 4), 202 .pdiv = REG_VAL(0x14, 0, 4),
|
| D | clk-nsp.c | 52 .pdiv = REG_VAL(0x18, 24, 3), 109 .pdiv = REG_VAL(0x4, 28, 3),
|
| D | clk-bcm2835.c | 840 u32 ndiv, u32 fdiv, u32 pdiv) in bcm2835_pll_rate_from_divisors() argument 844 if (pdiv == 0) in bcm2835_pll_rate_from_divisors() 848 do_div(rate, pdiv); in bcm2835_pll_rate_from_divisors() 869 u32 ndiv, pdiv, fdiv; in bcm2835_pll_get_rate() local 877 pdiv = (a2wctrl & A2W_PLL_CTRL_PDIV_MASK) >> A2W_PLL_CTRL_PDIV_SHIFT; in bcm2835_pll_get_rate() 884 return bcm2835_pll_rate_from_divisors(parent_rate, ndiv, fdiv, pdiv); in bcm2835_pll_get_rate()
|
| /linux-4.4.14/drivers/clk/ |
| D | clk-cdce925.c | 46 u16 pdiv; /* 1..127 for Y2-Y5; 1..1023 for Y1 */ member 268 static void cdce925_clk_set_pdiv(struct clk_cdce925_output *data, u16 pdiv) in cdce925_clk_set_pdiv() argument 274 0x03, (pdiv >> 8) & 0x03); in cdce925_clk_set_pdiv() 275 regmap_write(data->chip->regmap, 0x03, pdiv & 0xFF); in cdce925_clk_set_pdiv() 278 regmap_update_bits(data->chip->regmap, 0x16, 0x7F, pdiv); in cdce925_clk_set_pdiv() 281 regmap_update_bits(data->chip->regmap, 0x17, 0x7F, pdiv); in cdce925_clk_set_pdiv() 284 regmap_update_bits(data->chip->regmap, 0x26, 0x7F, pdiv); in cdce925_clk_set_pdiv() 287 regmap_update_bits(data->chip->regmap, 0x27, 0x7F, pdiv); in cdce925_clk_set_pdiv() 314 cdce925_clk_set_pdiv(data, data->pdiv); in cdce925_clk_prepare() 332 if (data->pdiv) in cdce925_clk_recalc_rate() [all …]
|
| /linux-4.4.14/drivers/clk/st/ |
| D | clk-flexgen.c | 26 struct clk_divider pdiv; member 124 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_recalc_rate() 140 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_set_rate() 216 fgxbar->pdiv.lock = lock; in clk_register_flexgen() 217 fgxbar->pdiv.reg = reg + 0x58 + idx * 4; in clk_register_flexgen() 218 fgxbar->pdiv.width = 10; in clk_register_flexgen()
|
| D | clkgen-pll.c | 60 struct clkgen_field pdiv; member 95 .pdiv = CLKGEN_FIELD(0x0, C65_PDIV_MASK, 16), 319 unsigned long pdiv; member 417 unsigned long mdiv, ndiv, pdiv; in recalc_stm_pll800c65() local 424 pdiv = CLKGEN_READ(pll, pdiv); in recalc_stm_pll800c65() 432 rate = (unsigned long)div64_u64(res, mdiv * (1 << pdiv)); in recalc_stm_pll800c65()
|
| D | clkgen-fsyn.c | 530 unsigned long pdiv = 1, n; in clk_fs660c32_vco_get_params() local 544 n = output * pdiv / input; in clk_fs660c32_vco_get_params()
|
| /linux-4.4.14/drivers/gpu/drm/sti/ |
| D | sti_hdmi_tx3g0c55phy.c | 139 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.4.14/arch/arm/mach-ep93xx/ |
| D | clock.c | 355 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.4.14/drivers/thermal/ |
| D | tegra_soctherm.c | 81 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.4.14/drivers/net/wireless/b43/ |
| D | phy_lp.c | 562 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()
|
| D | phy_lp.h | 891 unsigned int pdiv; member
|
| /linux-4.4.14/drivers/gpu/drm/i915/ |
| D | intel_ddi.c | 1416 uint32_t pdiv; member 1440 params->pdiv = 0; in skl_wrpll_params_populate() 1443 params->pdiv = 1; in skl_wrpll_params_populate() 1446 params->pdiv = 2; in skl_wrpll_params_populate() 1449 params->pdiv = 4; in skl_wrpll_params_populate() 1591 DPLL_CFGCR2_PDIV(wrpll_params.pdiv) | in skl_ddi_pll_select()
|
| /linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
| D | phy_int.h | 657 u8 pdiv; member
|