Home
last modified time | relevance | path

Searched refs:pll_cfg (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/clk/axs10x/
Dpll_clock.c94 const struct axs10x_pll_cfg *pll_cfg; member
158 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_round_rate() local
160 if (pll_cfg[0].rate == 0) in axs10x_pll_round_rate()
163 best_rate = pll_cfg[0].rate; in axs10x_pll_round_rate()
165 for (i = 1; pll_cfg[i].rate != 0; i++) { in axs10x_pll_round_rate()
166 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in axs10x_pll_round_rate()
167 best_rate = pll_cfg[i].rate; in axs10x_pll_round_rate()
178 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_set_rate() local
180 for (i = 0; pll_cfg[i].rate != 0; i++) { in axs10x_pll_set_rate()
181 if (pll_cfg[i].rate == rate) { in axs10x_pll_set_rate()
[all …]
Di2s_pll_clock.c115 const struct i2s_pll_cfg *pll_cfg = i2s_pll_get_cfg(*prate); in i2s_pll_round_rate() local
118 if (!pll_cfg) { in i2s_pll_round_rate()
123 for (i = 0; pll_cfg[i].rate != 0; i++) in i2s_pll_round_rate()
124 if (pll_cfg[i].rate == rate) in i2s_pll_round_rate()
134 const struct i2s_pll_cfg *pll_cfg = i2s_pll_get_cfg(parent_rate); in i2s_pll_set_rate() local
137 if (!pll_cfg) { in i2s_pll_set_rate()
142 for (i = 0; pll_cfg[i].rate != 0; i++) { in i2s_pll_set_rate()
143 if (pll_cfg[i].rate == rate) { in i2s_pll_set_rate()
144 i2s_pll_write(clk, PLL_IDIV_REG, pll_cfg[i].idiv); in i2s_pll_set_rate()
145 i2s_pll_write(clk, PLL_FBDIV_REG, pll_cfg[i].fbdiv); in i2s_pll_set_rate()
[all …]
/Linux-v6.6/drivers/clk/
Dclk-hsdk-pll.c96 const struct hsdk_pll_cfg *pll_cfg; member
107 .pll_cfg = asdt_pll_cfg,
112 .pll_cfg = asdt_pll_cfg,
117 .pll_cfg = hdmi_pll_cfg,
206 const struct hsdk_pll_cfg *pll_cfg = clk->pll_devdata->pll_cfg; in hsdk_pll_round_rate() local
208 if (pll_cfg[0].rate == 0) in hsdk_pll_round_rate()
211 best_rate = pll_cfg[0].rate; in hsdk_pll_round_rate()
213 for (i = 1; pll_cfg[i].rate != 0; i++) { in hsdk_pll_round_rate()
214 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in hsdk_pll_round_rate()
215 best_rate = pll_cfg[i].rate; in hsdk_pll_round_rate()
[all …]
Dclk-k210.c391 struct k210_pll_cfg *pll_cfg = &k210_plls_cfg[pll->id]; in k210_pll_enable_hw() local
407 reg |= FIELD_PREP(K210_PLL_CLKR, pll_cfg->r); in k210_pll_enable_hw()
408 reg |= FIELD_PREP(K210_PLL_CLKF, pll_cfg->f); in k210_pll_enable_hw()
409 reg |= FIELD_PREP(K210_PLL_CLKOD, pll_cfg->od); in k210_pll_enable_hw()
410 reg |= FIELD_PREP(K210_PLL_BWADJ, pll_cfg->bwadj); in k210_pll_enable_hw()
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/cfg/
D1000.c36 .pll_cfg = true,
D5000.c37 .pll_cfg = true,
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/
Diwl-config.h134 u8 pll_cfg:1, /* for iwl_pcie_apm_init() */ member
/Linux-v6.6/drivers/net/ethernet/sun/
Dniu.c449 u16 pll_cfg, pll_sts; in serdes_init_niu_1g_serdes() local
476 pll_cfg = (PLL_CFG_ENPLL | PLL_CFG_MPY_8X); in serdes_init_niu_1g_serdes()
479 ESR2_TI_PLL_CFG_L, pll_cfg); in serdes_init_niu_1g_serdes()
546 u32 tx_cfg, rx_cfg, pll_cfg, pll_sts; in serdes_init_niu_10g_serdes() local
568 pll_cfg = (PLL_CFG_ENPLL | PLL_CFG_MPY_10X); in serdes_init_niu_10g_serdes()
571 ESR2_TI_PLL_CFG_L, pll_cfg & 0xffff); in serdes_init_niu_10g_serdes()
929 unsigned long ctrl_reg, test_cfg_reg, pll_cfg, i; in serdes_init_1g_serdes() local
942 pll_cfg = ENET_SERDES_0_PLL_CFG; in serdes_init_1g_serdes()
948 pll_cfg = ENET_SERDES_1_PLL_CFG; in serdes_init_1g_serdes()
983 nw64(pll_cfg, val); in serdes_init_1g_serdes()
[all …]
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c320 if (trans->trans_cfg->base_params->pll_cfg) in iwl_pcie_apm_init()