Searched refs:p_div (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/clk/nxp/ |
D | clk-lpc32xx.c | 328 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-6.1.9/drivers/clk/renesas/ |
D | clk-r8a7779.c | 54 unsigned int p_div; member 103 div = config->p_div; in r8a7779_cpg_register_clock()
|
/linux-6.1.9/drivers/clk/tegra/ |
D | clk-pll.c | 480 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 592 p_div++; in _calc_rate() 599 cfg->n > divn_max(pll) || (1 << p_div) > divp_max(pll) || in _calc_rate() 605 cfg->output_rate >>= p_div; in _calc_rate() 608 ret = _p_div_to_hw(hw, 1 << p_div); in _calc_rate() 614 cfg->p = p_div; in _calc_rate() [all …]
|
D | clk.h | 908 int tegra_pll_p_div_to_hw(struct tegra_clk_pll *pll, u8 p_div);
|
/linux-6.1.9/sound/soc/codecs/ |
D | tlv320aic31xx.c | 175 u8 p_div; member 866 if (!aic31xx->sysclk || !aic31xx->p_div) { in aic31xx_setup_pll() 870 mclk_p = aic31xx->sysclk / aic31xx->p_div; in aic31xx_setup_pll() 914 (aic31xx->p_div << 4) | aic31xx_divs[i].pll_r); in aic31xx_setup_pll() 949 aic31xx->p_div, in aic31xx_setup_pll() 1006 aic31xx->p_div = 1; in aic31xx_hw_params() 1177 aic31xx->p_div = i; in aic31xx_set_dai_sysclk() 1180 if (aic31xx_divs[i].mclk_p == freq / aic31xx->p_div) in aic31xx_set_dai_sysclk()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | ni_dpm.c | 2097 u32 p_div; in ni_init_smc_spll_table() local 2116 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in ni_init_smc_spll_table() 2125 if (p_div & ~(SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in ni_init_smc_spll_table() 2141 ((p_div << SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_NISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in ni_init_smc_spll_table()
|
D | si_dpm.c | 2831 u32 fb_div, p_div; in si_init_smc_spll_table() local 2850 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in si_init_smc_spll_table() 2859 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table() 2872 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | rtw8822c.c | 2581 struct rtw_path_div *p_div = &rtwdev->dm_path_div; in query_phy_status_page1() local 2629 p_div->path_a_sum += rssi; in query_phy_status_page1() 2630 p_div->path_a_cnt++; in query_phy_status_page1() 2632 p_div->path_b_sum += rssi; in query_phy_status_page1() 2633 p_div->path_b_cnt++; in query_phy_status_page1()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.c | 2947 u32 fb_div, p_div; in si_init_smc_spll_table() local 2965 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in si_init_smc_spll_table() 2974 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table() 2987 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()
|