Searched refs:p_div (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/clk/nxp/ |
| H A D | clk-lpc32xx.c | 327 unsigned long p_div; member 486 clk->p_div = ((val & PLL_CTRL_POSTDIV) >> 11) + 1; in clk_pll_recalc_rate() 489 clk->p_div = 0; in clk_pll_recalc_rate() 495 return parent_rate / (1 << clk->p_div); in clk_pll_recalc_rate() 498 clk->p_div = 0; in clk_pll_recalc_rate() 507 cco_rate *= (1 << clk->p_div); in clk_pll_recalc_rate() 510 rate /= (1 << clk->p_div); in clk_pll_recalc_rate() 518 clk->n_div, clk->m_div, (1 << clk->p_div), rate); in clk_pll_recalc_rate() 548 val |= (clk->p_div - 1) << 11; in clk_pll_set_rate() 549 new_rate = parent_rate / (1 << (clk->p_div)); in clk_pll_set_rate() [all …]
|
| /linux/drivers/clk/renesas/ |
| H A D | clk-r8a7779.c | 54 unsigned int p_div; member 103 div = config->p_div; in r8a7779_cpg_register_clock()
|
| /linux/drivers/clk/tegra/ |
| H A 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 …]
|
| H A D | clk.h | 905 int tegra_pll_p_div_to_hw(struct tegra_clk_pll *pll, u8 p_div);
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | rtw8822c.c | 2601 struct rtw_path_div *p_div = &rtwdev->dm_path_div; in query_phy_status_page1() local 2651 p_div->path_a_sum += rssi; in query_phy_status_page1() 2652 p_div->path_a_cnt++; in query_phy_status_page1() 2654 p_div->path_b_sum += rssi; in query_phy_status_page1() 2655 p_div->path_b_cnt++; in query_phy_status_page1()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | si_dpm.c | 2787 u32 fb_div, p_div; in si_init_smc_spll_table() local 2806 p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & SPLL_PDIV_A_MASK) >> SPLL_PDIV_A_SHIFT; in si_init_smc_spll_table() 2815 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table() 2828 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 2961 u32 fb_div, p_div; in si_init_smc_spll_table() local 2979 …p_div = (sclk_params.vCG_SPLL_FUNC_CNTL & CG_SPLL_FUNC_CNTL__SPLL_PDIV_A_MASK) >> CG_SPLL_FUNC_CNT… in si_init_smc_spll_table() 2988 if (p_div & ~(SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK >> SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT)) in si_init_smc_spll_table() 3001 ((p_div << SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_SHIFT) & SMC_SISLANDS_SPLL_DIV_TABLE_PDIV_MASK); in si_init_smc_spll_table()
|