Home
last modified time | relevance | path

Searched refs:p_div (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/clk/nxp/
Dclk-lpc32xx.c328 unsigned long p_div; member
487 clk->p_div = ((val & PLL_CTRL_POSTDIV) >> 11) + 1; in clk_pll_recalc_rate()
490 clk->p_div = 0; in clk_pll_recalc_rate()
496 return parent_rate / (1 << clk->p_div); in clk_pll_recalc_rate()
499 clk->p_div = 0; in clk_pll_recalc_rate()
508 cco_rate *= (1 << clk->p_div); in clk_pll_recalc_rate()
511 rate /= (1 << clk->p_div); in clk_pll_recalc_rate()
519 clk->n_div, clk->m_div, (1 << clk->p_div), rate); in clk_pll_recalc_rate()
549 val |= (clk->p_div - 1) << 11; in clk_pll_set_rate()
550 new_rate = parent_rate / (1 << (clk->p_div)); in clk_pll_set_rate()
[all …]
/Linux-v5.10/drivers/clk/renesas/
Dclk-r8a7779.c60 unsigned int p_div; member
109 div = config->p_div; in r8a7779_cpg_register_clock()
/Linux-v5.10/drivers/clk/tegra/
Dclk-pll.c480 static int _p_div_to_hw(struct clk_hw *hw, u8 p_div) in _p_div_to_hw() argument
487 if (p_div <= p_tohw->pdiv) in _p_div_to_hw()
496 int tegra_pll_p_div_to_hw(struct tegra_clk_pll *pll, u8 p_div) in tegra_pll_p_div_to_hw() argument
498 return _p_div_to_hw(&pll->hw, p_div); in tegra_pll_p_div_to_hw()
558 u32 p_div = 0; in _calc_rate() local
589 p_div++; in _calc_rate()
596 cfg->n > divn_max(pll) || (1 << p_div) > divp_max(pll) || in _calc_rate()
602 cfg->output_rate >>= p_div; in _calc_rate()
605 ret = _p_div_to_hw(hw, 1 << p_div); in _calc_rate()
611 cfg->p = p_div; in _calc_rate()
[all …]
Dclk.h906 int tegra_pll_p_div_to_hw(struct tegra_clk_pll *pll, u8 p_div);
/Linux-v5.10/sound/soc/codecs/
Dtlv320aic31xx.c170 u8 p_div; member
840 if (!aic31xx->sysclk || !aic31xx->p_div) { in aic31xx_setup_pll()
844 mclk_p = aic31xx->sysclk / aic31xx->p_div; in aic31xx_setup_pll()
888 (aic31xx->p_div << 4) | 0x01); in aic31xx_setup_pll()
923 aic31xx->p_div, in aic31xx_setup_pll()
1141 aic31xx->p_div = i; in aic31xx_set_dai_sysclk()
1144 if (aic31xx_divs[i].mclk_p == freq / aic31xx->p_div) in aic31xx_set_dai_sysclk()
/Linux-v5.10/drivers/gpu/drm/radeon/
Dni_dpm.c2096 u32 p_div; in ni_init_smc_spll_table() local
2115 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in ni_init_smc_spll_table()
2124 if (p_div & ~(SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in ni_init_smc_spll_table()
2140 ((p_div << SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in ni_init_smc_spll_table()
Dsi_dpm.c2834 u32 fb_div, p_div; in si_init_smc_spll_table() local
2853 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in si_init_smc_spll_table()
2862 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table()
2875 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()
/Linux-v5.10/drivers/gpu/drm/amd/pm/powerplay/
Dsi_dpm.c2932 u32 fb_div, p_div; in si_init_smc_spll_table() local
2950 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in si_init_smc_spll_table()
2959 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table()
2972 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()