| /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 | wm8580.c | 399 static int pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 414 pll_div->freqmode = post_table[i].freqmode; in pll_factors() 415 pll_div->postscale = post_table[i].postscale; in pll_factors() 431 pll_div->prescale = 1; in pll_factors() 434 pll_div->prescale = 0; in pll_factors() 442 pll_div->n = Ndiv; in pll_factors() 450 pll_div->k = K; in pll_factors() 453 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, in pll_factors() 454 pll_div->postscale); in pll_factors() 466 struct _pll_div pll_div; in wm8580_set_dai_pll() local [all …]
|
| 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...] |
| H A D | wm8510.c | 270 static struct pll_ pll_div; variable 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() 331 snd_soc_component_write(component, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8510_set_dai_pll() 332 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll() 333 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll() 334 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
|
| H A D | wm8753.c | 701 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 710 pll_div->div2 = 1; in pll_factors() 713 pll_div->div2 = 0; in pll_factors() 719 pll_div->n = Ndiv; in pll_factors() 734 pll_div->k = K; in pll_factors() 764 struct _pll_div pll_div; in wm8753_set_dai_pll() local 766 pll_factors(&pll_div, freq_out * 8, freq_in); in wm8753_set_dai_pll() 770 value = (pll_div.n << 5) + ((pll_div.k & 0x3c0000) >> 18); in wm8753_set_dai_pll() 774 value = (pll_div.k & 0x03fe00) >> 9; in wm8753_set_dai_pll() 778 value = pll_div.k & 0x0001ff; in wm8753_set_dai_pll() [all …]
|
| H A D | fs210x.c | 650 const struct fs_pll_div **pll_div) in fs210x_get_pll_div() argument 654 if (!fs210x || !pll_div) in fs210x_get_pll_div() 660 *pll_div = fs210x_pll_div + i; in fs210x_get_pll_div() 671 const struct fs_pll_div *pll_div; in fs210x_set_hw_params() local 681 ret = fs210x_get_pll_div(fs210x, &pll_div); in fs210x_set_hw_params() 685 ret = fs210x_reg_write(fs210x, FS210X_A1H_PLLCTRL1, pll_div->pll1); in fs210x_set_hw_params() 686 ret |= fs210x_reg_write(fs210x, FS210X_A2H_PLLCTRL2, pll_div->pll2); in fs210x_set_hw_params() 687 ret |= fs210x_reg_write(fs210x, FS210X_A3H_PLLCTRL3, pll_div->pll3); in fs210x_set_hw_params()
|
| /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 …]
|
| H A D | clk-k230.c | 1987 struct clk_fixed_factor *pll_div; in k230_register_pll_divs() local 1993 pll_div = k230_pll_divs[i]; in k230_register_pll_divs() 1995 name = pll_div->hw.init->name; in k230_register_pll_divs() 1997 ret = devm_clk_hw_register(&pdev->dev, &pll_div->hw); in k230_register_pll_divs() 2001 ret = devm_clk_hw_register_clkdev(&pdev->dev, &pll_div->hw, in k230_register_pll_divs()
|
| /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/clk/imx/ |
| H A D | clk-pll14xx.c | 285 u32 pll_div) in clk_pll14xx_mp_change() argument 289 old_mdiv = FIELD_GET(MDIV_MASK, pll_div); in clk_pll14xx_mp_change() 290 old_pdiv = FIELD_GET(PDIV_MASK, pll_div); in clk_pll14xx_mp_change()
|