/linux-4.19.296/drivers/clk/tegra/ |
D | clk-tegra124.c | 146 { .pdiv = 1, .hw_val = 0 }, 147 { .pdiv = 2, .hw_val = 1 }, 148 { .pdiv = 3, .hw_val = 2 }, 149 { .pdiv = 4, .hw_val = 3 }, 150 { .pdiv = 5, .hw_val = 4 }, 151 { .pdiv = 6, .hw_val = 5 }, 152 { .pdiv = 8, .hw_val = 6 }, 153 { .pdiv = 10, .hw_val = 7 }, 154 { .pdiv = 12, .hw_val = 8 }, 155 { .pdiv = 16, .hw_val = 9 }, [all …]
|
D | clk-tegra114.c | 160 { .pdiv = 1, .hw_val = 0 }, 161 { .pdiv = 2, .hw_val = 1 }, 162 { .pdiv = 3, .hw_val = 2 }, 163 { .pdiv = 4, .hw_val = 3 }, 164 { .pdiv = 5, .hw_val = 4 }, 165 { .pdiv = 6, .hw_val = 5 }, 166 { .pdiv = 8, .hw_val = 6 }, 167 { .pdiv = 10, .hw_val = 7 }, 168 { .pdiv = 12, .hw_val = 8 }, 169 { .pdiv = 16, .hw_val = 9 }, [all …]
|
D | clk-tegra210.c | 1393 pllx->params->pdiv_tohw[cfg->p].pdiv / 1000); in tegra210_pllx_dyn_ramp() 1414 u32 pdiv; in tegra210_pll_fixed_mdiv_cfg() local 1421 p = params->round_p_to_pdiv(p, &pdiv); in tegra210_pll_fixed_mdiv_cfg() 1508 { .pdiv = 1, .hw_val = 0 }, 1509 { .pdiv = 2, .hw_val = 1 }, 1510 { .pdiv = 3, .hw_val = 2 }, 1511 { .pdiv = 4, .hw_val = 3 }, 1512 { .pdiv = 5, .hw_val = 4 }, 1513 { .pdiv = 6, .hw_val = 5 }, 1514 { .pdiv = 8, .hw_val = 6 }, [all …]
|
D | clk-pll.c | 484 while (p_tohw->pdiv) { in _p_div_to_hw() 485 if (p_div <= p_tohw->pdiv) in _p_div_to_hw() 505 while (p_tohw->pdiv) { in _hw_to_p_div() 507 return p_tohw->pdiv; in _hw_to_p_div() 854 int pdiv; in clk_pll_recalc_rate() local 877 pdiv = 1; in clk_pll_recalc_rate() 879 pdiv = _hw_to_p_div(hw, cfg.p); in clk_pll_recalc_rate() 880 if (pdiv < 0) { in clk_pll_recalc_rate() 883 pdiv = 1; in clk_pll_recalc_rate() 890 cfg.m *= pdiv; in clk_pll_recalc_rate() [all …]
|
D | clk-tegra20.c | 278 { .pdiv = 1, .hw_val = 1 }, 279 { .pdiv = 0, .hw_val = 0 }, 371 { .pdiv = 1, .hw_val = 1 }, 372 { .pdiv = 2, .hw_val = 0 }, 373 { .pdiv = 0, .hw_val = 0 },
|
D | clk-tegra30.c | 282 { .pdiv = 1, .hw_val = 1 }, 283 { .pdiv = 2, .hw_val = 0 }, 284 { .pdiv = 0, .hw_val = 0 }, 349 { .pdiv = 18, .hw_val = 18 }, 350 { .pdiv = 24, .hw_val = 24 }, 351 { .pdiv = 0, .hw_val = 0 },
|
D | clk.h | 133 u8 pdiv; member 287 u32 (*round_p_to_pdiv)(u32 p, u32 *pdiv);
|
/linux-4.19.296/drivers/clk/samsung/ |
D | clk-pll.c | 111 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll2126_recalc_rate() local 116 pdiv = (pll_con >> PLL2126_PDIV_SHIFT) & PLL2126_PDIV_MASK; in samsung_pll2126_recalc_rate() 120 do_div(fvco, (pdiv + 2) << sdiv); in samsung_pll2126_recalc_rate() 144 u32 pll_con, mdiv, pdiv, sdiv; in samsung_pll3000_recalc_rate() local 149 pdiv = (pll_con >> PLL3000_PDIV_SHIFT) & PLL3000_PDIV_MASK; in samsung_pll3000_recalc_rate() 153 do_div(fvco, pdiv << sdiv); in samsung_pll3000_recalc_rate() 181 u32 mdiv, pdiv, sdiv, pll_con; in samsung_pll35xx_recalc_rate() local 186 pdiv = (pll_con >> PLL35XX_PDIV_SHIFT) & PLL35XX_PDIV_MASK; in samsung_pll35xx_recalc_rate() 190 do_div(fvco, (pdiv << sdiv)); in samsung_pll35xx_recalc_rate() 203 return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); in samsung_pll35xx_mp_change() [all …]
|
D | clk-pll.h | 54 .pdiv = (_p), \ 63 .pdiv = (_p), \ 72 .pdiv = (_p), \ 81 .pdiv = (_p), \ 91 .pdiv = (_p), \ 101 .pdiv = (_p), \ 112 .pdiv = (_p), \ 124 unsigned int pdiv; member
|
/linux-4.19.296/drivers/cpufreq/ |
D | s3c2412-cpufreq.c | 45 unsigned int hdiv, pdiv, armdiv, dvs; in s3c2412_cpufreq_calcdivs() local 93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs() 95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs() 96 pdiv++; in s3c2412_cpufreq_calcdivs() 98 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs() 100 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2412_cpufreq_calcdivs() 102 if (pdiv > 2) in s3c2412_cpufreq_calcdivs() 105 pdiv *= hdiv; in s3c2412_cpufreq_calcdivs() 110 cfg->divs.p_divisor = pdiv * armdiv; in s3c2412_cpufreq_calcdivs()
|
D | s3c2440-cpufreq.c | 59 unsigned int hdiv, pdiv; in s3c2440_cpufreq_calcdivs() local 93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs() 95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs() 96 pdiv++; in s3c2440_cpufreq_calcdivs() 98 s3c_freq_dbg("%s: pdiv %d\n", __func__, pdiv); in s3c2440_cpufreq_calcdivs() 100 if (pdiv > 2) in s3c2440_cpufreq_calcdivs() 103 pdiv *= hdiv; in s3c2440_cpufreq_calcdivs() 124 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()
|
D | brcmstb-avs-cpufreq.c | 318 static void brcm_avs_parse_p1(u32 p1, unsigned int *mdiv_p0, unsigned int *pdiv, in brcm_avs_parse_p1() argument 322 *pdiv = (p1 >> PDIV_SHIFT) & PDIV_MASK; in brcm_avs_parse_p1() 652 unsigned int ndiv, pdiv; in show_brcm_avs_pmap() local 658 brcm_avs_parse_p1(pmap.p1, &mdiv_p0, &pdiv, &ndiv); in show_brcm_avs_pmap() 662 pmap.p1, pmap.p2, ndiv, pdiv, mdiv_p0, mdiv_p1, mdiv_p2, in show_brcm_avs_pmap()
|
D | tegra186-cpufreq.c | 182 point->frequency = data->ref_clk_hz * ndiv / data->pdiv / in init_vhint_table()
|
/linux-4.19.296/drivers/clk/ |
D | clk-cdce925.c | 67 u16 pdiv; /* 1..127 for Y2-Y9; 1..1023 for Y1 */ member 288 static void cdce925_clk_set_pdiv(struct clk_cdce925_output *data, u16 pdiv) in cdce925_clk_set_pdiv() argument 294 0x03, (pdiv >> 8) & 0x03); in cdce925_clk_set_pdiv() 295 regmap_write(data->chip->regmap, 0x03, pdiv & 0xFF); in cdce925_clk_set_pdiv() 298 regmap_update_bits(data->chip->regmap, 0x16, 0x7F, pdiv); in cdce925_clk_set_pdiv() 301 regmap_update_bits(data->chip->regmap, 0x17, 0x7F, pdiv); in cdce925_clk_set_pdiv() 304 regmap_update_bits(data->chip->regmap, 0x26, 0x7F, pdiv); in cdce925_clk_set_pdiv() 307 regmap_update_bits(data->chip->regmap, 0x27, 0x7F, pdiv); in cdce925_clk_set_pdiv() 310 regmap_update_bits(data->chip->regmap, 0x36, 0x7F, pdiv); in cdce925_clk_set_pdiv() 313 regmap_update_bits(data->chip->regmap, 0x37, 0x7F, pdiv); in cdce925_clk_set_pdiv() [all …]
|
/linux-4.19.296/drivers/clk/bcm/ |
D | clk-iproc-pll.c | 114 vco_out->pdiv = 1; in pll_calc_param() 292 unsigned int pdiv; in pll_fractional_change_only() local 306 val = readl(pll->control_base + ctrl->pdiv.offset); in pll_fractional_change_only() 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() 334 ref_freq = parent_rate / vco->pdiv; in pll_set_rate() 421 val = readl(pll->control_base + ctrl->pdiv.offset); 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() [all …]
|
D | clk-iproc-armpll.c | 202 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()
|
D | clk-sr.c | 54 .pdiv = REG_VAL(0x14, 0, 4), 114 .pdiv = REG_VAL(0x14, 0, 4), 173 .pdiv = REG_VAL(0x14, 0, 4), 208 .pdiv = REG_VAL(0x14, 0, 4), 262 .pdiv = REG_VAL(0x14, 0, 4), 298 .pdiv = REG_VAL(0x4, 26, 4), 343 .pdiv = REG_VAL(0x4, 26, 4), 382 .pdiv = REG_VAL(0x4, 26, 4),
|
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 | 98 unsigned int pdiv; member 174 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), 281 .pdiv = REG_VAL(0x44, 0, 4),
|
D | clk-nsp.c | 52 .pdiv = REG_VAL(0x18, 24, 3), 109 .pdiv = REG_VAL(0x4, 28, 3),
|
D | clk-bcm2835.c | 541 u32 ndiv, u32 fdiv, u32 pdiv) in bcm2835_pll_rate_from_divisors() argument 545 if (pdiv == 0) in bcm2835_pll_rate_from_divisors() 549 do_div(rate, pdiv); in bcm2835_pll_rate_from_divisors() 574 u32 ndiv, pdiv, fdiv; in bcm2835_pll_get_rate() local 582 pdiv = (a2wctrl & A2W_PLL_CTRL_PDIV_MASK) >> A2W_PLL_CTRL_PDIV_SHIFT; in bcm2835_pll_get_rate() 591 return bcm2835_pll_rate_from_divisors(parent_rate, ndiv, fdiv, pdiv); in bcm2835_pll_get_rate()
|
/linux-4.19.296/drivers/clk/st/ |
D | clk-flexgen.c | 31 struct clk_divider pdiv; member 134 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_recalc_rate() 150 struct clk_hw *pdiv_hw = &flexgen->pdiv.hw; in flexgen_set_rate() 235 fgxbar->pdiv.lock = lock; in clk_register_flexgen() 236 fgxbar->pdiv.reg = reg + 0x58 + idx * 4; in clk_register_flexgen() 237 fgxbar->pdiv.width = 10; in clk_register_flexgen()
|
D | clkgen-pll.c | 52 struct clkgen_field pdiv; member 177 unsigned long pdiv; member
|