| /linux/drivers/clk/x86/ |
| H A D | clk-lgm.c | 124 static const struct clk_div_table pll_div[] = { variable 196 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 198 4, PLL_DIV_WIDTH, 25, 1, 0, 0, pll_div), 200 8, PLL_DIV_WIDTH, 26, 1, 0, 0, pll_div), 202 12, PLL_DIV_WIDTH, 27, 1, 0, 0, pll_div), 205 pll_div), 207 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 211 1, 0, 0, pll_div), 214 8, PLL_DIV_WIDTH, 26, 1, 0, 0, pll_div), 218 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | wm8940.c | 529 static struct pll_ pll_div; 544 pll_div.pre_scale = 0; in pll_factors() 549 pll_div.pre_scale = 3; in pll_factors() 554 pll_div.pre_scale = 2; in pll_factors() 557 pll_div.pre_scale = 1; in pll_factors() 564 pll_div.n = Ndiv; in pll_factors() 579 pll_div.k = K; in pll_factors() 604 if (pll_div.k) in wm8940_set_dai_pll() 606 (pll_div.pre_scale << 4) | pll_div in wm8940_set_dai_pll() 528 static struct pll_ pll_div; global() variable [all...] |
| H A D | wm8974.c | 272 static void pll_factors(struct pll_ *pll_div, in pll_factors() argument 284 pll_div->pre_div = 1; in pll_factors() 287 pll_div->pre_div = 0; in pll_factors() 294 pll_div->n = Ndiv; in pll_factors() 309 pll_div->k = K; in pll_factors() 316 struct pll_ pll_div; in wm8974_set_dai_pll() local 330 pll_factors(&pll_div, freq_out, freq_in); in wm8974_set_dai_pll() 332 snd_soc_component_write(component, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll() 333 snd_soc_component_write(component, WM8974_PLLK1, pll_div in wm8974_set_dai_pll() [all...] |
| /linux/drivers/clk/imx/ |
| H A D | clk-fracn-gppll.c | 164 u32 pll_numerator, pll_denominator, pll_div; in clk_fracn_gppll_recalc_rate() local 176 pll_div = readl_relaxed(pll->base + PLL_DIV); in clk_fracn_gppll_recalc_rate() 177 mfi = FIELD_GET(PLL_MFI_MASK, pll_div); in clk_fracn_gppll_recalc_rate() 179 rdiv = FIELD_GET(PLL_RDIV_MASK, pll_div); in clk_fracn_gppll_recalc_rate() 180 odiv = FIELD_GET(PLL_ODIV_MASK, pll_div); in clk_fracn_gppll_recalc_rate() 238 u32 tmp, pll_div, ana_mfn; in clk_fracn_gppll_set_rate() local 261 pll_div = FIELD_PREP(PLL_RDIV_MASK, rate->rdiv) | rate->odiv | in clk_fracn_gppll_set_rate() 263 writel_relaxed(pll_div, pll->base + PLL_DIV); in clk_fracn_gppll_set_rate()
|
| H A D | clk-pll14xx.c | 275 u32 pll_div) in clk_pll14xx_mp_change() argument 279 old_mdiv = FIELD_GET(MDIV_MASK, pll_div); in clk_pll14xx_mp_change() 280 old_pdiv = FIELD_GET(PDIV_MASK, pll_div); in clk_pll14xx_mp_change()
|
| /linux/drivers/clk/ |
| H A D | clk-stm32f4.c | 785 struct stm32f4_pll_div *pll_div = to_pll_div_clk(div); in stm32f4_pll_div_set_rate() local 787 pll_state = stm32f4_pll_is_enabled(pll_div->hw_pll); in stm32f4_pll_div_set_rate() 790 stm32f4_pll_disable(pll_div->hw_pll); in stm32f4_pll_div_set_rate() 795 stm32f4_pll_enable(pll_div->hw_pll); in stm32f4_pll_div_set_rate() 812 struct stm32f4_pll_div *pll_div; in clk_register_pll_div() local 818 pll_div = kzalloc_obj(*pll_div); in clk_register_pll_div() 819 if (!pll_div) in clk_register_pll_div() 829 pll_div->div.reg = reg; in clk_register_pll_div() 830 pll_div->div.shift = shift; in clk_register_pll_div() 831 pll_div->div.width = width; in clk_register_pll_div() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9002_phy.c | 308 int pll_div = 0x2c; in ar9002_hw_compute_pll_control() local 314 pll_div = 0x50; in ar9002_hw_compute_pll_control() 316 pll_div = 0x28; in ar9002_hw_compute_pll_control() 321 pll |= SM(pll_div, AR_RTC_9160_PLL_DIV); in ar9002_hw_compute_pll_control()
|
| /linux/drivers/media/i2c/ |
| H A D | ds90ub960.c | 2306 u8 pll_div; in ub960_init_tx_ports_ub9702() local 2312 pll_div = 0x10; in ub960_init_tx_ports_ub9702() 2317 pll_div = 0x10; in ub960_init_tx_ports_ub9702() 2322 pll_div = 0x18; in ub960_init_tx_ports_ub9702() 2327 pll_div = 0x0f; in ub960_init_tx_ports_ub9702() 2333 pll_div = 0x10; in ub960_init_tx_ports_ub9702() 2338 pll_div = 0x19; in ub960_init_tx_ports_ub9702() 2344 ub960_write(priv, UB9702_SR_CSI_PLL_DIV, pll_div, &ret); in ub960_init_tx_ports_ub9702()
|