/linux/drivers/clk/x86/ |
A D | clk-lgm.c | 194 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 196 4, PLL_DIV_WIDTH, 25, 1, 0, 0, pll_div), 198 8, PLL_DIV_WIDTH, 26, 1, 0, 0, pll_div), 203 pll_div), 205 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 209 1, 0, 0, pll_div), 212 8, PLL_DIV_WIDTH, 26, 1, 0, 0, pll_div), 216 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 219 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), 229 0, PLL_DIV_WIDTH, 24, 1, 0, 0, pll_div), [all …]
|
/linux/sound/soc/codecs/ |
A D | wm8804.c | 319 struct pll_div { struct 344 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument 359 pll_div->freqmode = post_table[i].freqmode; in pll_factors() 360 pll_div->mclkdiv = post_table[i].mclkdiv; in pll_factors() 372 pll_div->prescale = 0; in pll_factors() 376 pll_div->prescale = 1; in pll_factors() 385 pll_div->n = Ndiv; in pll_factors() 396 pll_div->k = K; in pll_factors() 417 struct pll_div pll_div; in wm8804_set_pll() local 432 pll_div.n | (pll_div.prescale << 4)); in wm8804_set_pll() [all …]
|
A D | wm8580.c | 432 pll_div->prescale = 1; in pll_factors() 435 pll_div->prescale = 0; in pll_factors() 443 pll_div->n = Ndiv; in pll_factors() 451 pll_div->k = K; in pll_factors() 454 pll_div->n, pll_div->k, pll_div->prescale, pll_div->freqmode, in pll_factors() 455 pll_div->postscale); in pll_factors() 467 struct _pll_div pll_div; in wm8580_set_dai_pll() local 475 memset(&pll_div, 0, sizeof(pll_div)); in wm8580_set_dai_pll() 512 (pll_div.k >> 18 & 0xf) | (pll_div.n << 4)); in wm8580_set_dai_pll() 516 reg |= pll_div.prescale | pll_div.postscale << 1 | in wm8580_set_dai_pll() [all …]
|
A D | wm9713.c | 764 pll_div->divsel = 1; in pll_factors() 773 pll_div->divsel = 0; in pll_factors() 774 pll_div->divctl = 0; in pll_factors() 781 pll_div->lf = 1; in pll_factors() 784 pll_div->lf = 0; in pll_factors() 792 pll_div->n = Ndiv; in pll_factors() 807 pll_div->k = K; in pll_factors() 833 reg = (pll_div.n << 12) | (pll_div.lf << 11) | in wm9713_set_pll() 834 (pll_div.divsel << 9) | (pll_div.divctl << 8); in wm9713_set_pll() 838 reg2 = (pll_div.n << 12) | (pll_div.lf << 11) | (1 << 10) | in wm9713_set_pll() [all …]
|
A D | wm8940.c | 519 static struct pll_ pll_div; variable 534 pll_div.pre_scale = 0; in pll_factors() 539 pll_div.pre_scale = 3; in pll_factors() 544 pll_div.pre_scale = 2; in pll_factors() 547 pll_div.pre_scale = 1; in pll_factors() 554 pll_div.n = Ndiv; in pll_factors() 569 pll_div.k = K; in pll_factors() 594 if (pll_div.k) in wm8940_set_dai_pll() 596 (pll_div.pre_scale << 4) | pll_div.n | (1 << 6)); in wm8940_set_dai_pll() 599 (pll_div.pre_scale << 4) | pll_div.n); in wm8940_set_dai_pll() [all …]
|
A D | wm8978.c | 409 struct wm8978_pll_div *pll_div, unsigned int target, unsigned int source) in pll_factors() argument 417 pll_div->div2 = 1; in pll_factors() 420 pll_div->div2 = 0; in pll_factors() 428 pll_div->n = n_div; in pll_factors() 436 pll_div->k = k; in pll_factors() 474 struct wm8978_pll_div pll_div; in wm8978_configure_pll() local 536 pll_factors(component, &pll_div, f2, wm8978->f_mclk); in wm8978_configure_pll() 539 __func__, pll_div.n, pll_div.k, pll_div.div2); in wm8978_configure_pll() 544 snd_soc_component_write(component, WM8978_PLL_N, (pll_div.div2 << 4) | pll_div.n); in wm8978_configure_pll() 545 snd_soc_component_write(component, WM8978_PLL_K1, pll_div.k >> 18); in wm8978_configure_pll() [all …]
|
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.k >> 18); in wm8974_set_dai_pll() 334 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll() [all …]
|
A D | wm8510.c | 271 static struct pll_ pll_div; variable 285 pll_div.pre_div = 1; in pll_factors() 288 pll_div.pre_div = 0; in pll_factors() 295 pll_div.n = Ndiv; in pll_factors() 310 pll_div.k = K; in pll_factors() 332 snd_soc_component_write(component, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8510_set_dai_pll() 333 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18); in wm8510_set_dai_pll() 334 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8510_set_dai_pll() 335 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff); in wm8510_set_dai_pll()
|
A D | wm8983.c | 743 struct pll_div { struct 750 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument 756 pll_div->div2 = 0; in pll_factors() 760 pll_div->div2 = 1; in pll_factors() 769 pll_div->n = Ndiv; in pll_factors() 780 pll_div->k = K; in pll_factors() 790 struct pll_div pll_div; in wm8983_set_pll() local 799 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8983_set_pll() 809 (pll_div.div2 << WM8983_PLL_PRESCALE_SHIFT) in wm8983_set_pll() 810 | pll_div.n); in wm8983_set_pll() [all …]
|
A D | wm8985.c | 840 struct pll_div { struct 847 static int pll_factors(struct pll_div *pll_div, unsigned int target, in pll_factors() argument 853 pll_div->div2 = 0; in pll_factors() 857 pll_div->div2 = 1; in pll_factors() 866 pll_div->n = Ndiv; in pll_factors() 877 pll_div->k = K; in pll_factors() 888 struct pll_div pll_div; in wm8985_set_pll() local 896 ret = pll_factors(&pll_div, freq_out * 4 * 2, freq_in); in wm8985_set_pll() 902 (pll_div.div2 << WM8985_PLL_PRESCALE_SHIFT) in wm8985_set_pll() 903 | pll_div.n); in wm8985_set_pll() [all …]
|
A D | wm8960.c | 1141 struct _pll_div *pll_div) in pll_factors() argument 1154 pll_div->pre_div = 1; in pll_factors() 1157 pll_div->pre_div = 0; in pll_factors() 1164 pll_div->n = Ndiv; in pll_factors() 1179 pll_div->k = K; in pll_factors() 1182 pll_div->n, pll_div->k, pll_div->pre_div); in pll_factors() 1191 static struct _pll_div pll_div; in wm8960_set_pll() local 1195 ret = pll_factors(freq_in, freq_out, &pll_div); in wm8960_set_pll() 1209 reg |= pll_div.pre_div << 4; in wm8960_set_pll() 1210 reg |= pll_div.n; in wm8960_set_pll() [all …]
|
A D | wm8991.c | 877 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 887 pll_div->div2 = 1; in pll_factors() 890 pll_div->div2 = 0; in pll_factors() 896 pll_div->n = Ndiv; in pll_factors() 911 pll_div->k = K; in pll_factors() 919 struct _pll_div pll_div; in wm8991_set_dai_pll() local 922 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8991_set_dai_pll() 934 snd_soc_component_write(component, WM8991_PLL1, pll_div.n | WM8991_SDM | in wm8991_set_dai_pll() 935 (pll_div.div2 ? WM8991_PRESCALE : 0)); in wm8991_set_dai_pll() 936 snd_soc_component_write(component, WM8991_PLL2, (u8)(pll_div.k>>8)); in wm8991_set_dai_pll() [all …]
|
A D | wm8990.c | 806 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 816 pll_div->div2 = 1; in pll_factors() 819 pll_div->div2 = 0; in pll_factors() 825 pll_div->n = Ndiv; in pll_factors() 840 pll_div->k = K; in pll_factors() 847 struct _pll_div pll_div; in wm8990_set_dai_pll() local 850 pll_factors(&pll_div, freq_out * 4, freq_in); in wm8990_set_dai_pll() 861 snd_soc_component_write(component, WM8990_PLL1, pll_div.n | WM8990_SDM | in wm8990_set_dai_pll() 862 (pll_div.div2?WM8990_PRESCALE:0)); in wm8990_set_dai_pll() 863 snd_soc_component_write(component, WM8990_PLL2, (u8)(pll_div.k>>8)); in wm8990_set_dai_pll() [all …]
|
A D | wm8753.c | 702 static void pll_factors(struct _pll_div *pll_div, unsigned int target, in pll_factors() argument 711 pll_div->div2 = 1; in pll_factors() 714 pll_div->div2 = 0; in pll_factors() 720 pll_div->n = Ndiv; in pll_factors() 735 pll_div->k = K; in pll_factors() 765 struct _pll_div pll_div; in wm8753_set_dai_pll() local 767 pll_factors(&pll_div, freq_out * 8, freq_in); in wm8753_set_dai_pll() 771 value = (pll_div.n << 5) + ((pll_div.k & 0x3c0000) >> 18); in wm8753_set_dai_pll() 775 value = (pll_div.k & 0x03fe00) >> 9; in wm8753_set_dai_pll() 779 value = pll_div.k & 0x0001ff; in wm8753_set_dai_pll() [all …]
|
A D | alc5632.c | 682 int gbl_clk = 0, pll_div = 0; in alc5632_set_dai_pll() local 710 pll_div = codec_master_pll_div[i].regvalue; in alc5632_set_dai_pll() 721 pll_div = codec_slave_pll_div[i].regvalue; in alc5632_set_dai_pll() 732 pll_div = codec_slave_pll_div[i].regvalue; in alc5632_set_dai_pll() 741 if (!pll_div) in alc5632_set_dai_pll() 747 snd_soc_component_write(component, ALC5632_PLL1_CTRL, pll_div); in alc5632_set_dai_pll()
|
A D | alc5623.c | 525 int gbl_clk = 0, pll_div = 0; in alc5623_set_dai_pll() local 550 pll_div = codec_master_pll_div[i].regvalue; in alc5623_set_dai_pll() 561 pll_div = codec_slave_pll_div[i].regvalue; in alc5623_set_dai_pll() 570 if (!pll_div) in alc5623_set_dai_pll() 574 snd_soc_component_write(component, ALC5623_PLL_CTRL, pll_div); in alc5623_set_dai_pll()
|
A D | rt5631.c | 1217 struct pll_div { struct 1223 static const struct pll_div codec_master_pll_div[] = { argument 1260 static const struct pll_div codec_slave_pll_div[] = {
|
A D | da7210.c | 211 struct pll_div { struct 221 static const struct pll_div da7210_pll_div[] = { argument
|
A D | da9055.c | 239 struct pll_div { struct 249 static const struct pll_div da9055_pll_div[] = { argument
|
/linux/drivers/clk/imx/ |
A D | clk-pll14xx.c | 122 u32 mdiv, pdiv, sdiv, pll_div; in clk_pll1416x_recalc_rate() local 125 pll_div = readl_relaxed(pll->base + 4); in clk_pll1416x_recalc_rate() 126 mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT; in clk_pll1416x_recalc_rate() 127 pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT; in clk_pll1416x_recalc_rate() 128 sdiv = (pll_div & SDIV_MASK) >> SDIV_SHIFT; in clk_pll1416x_recalc_rate() 161 u32 pll_div) in clk_pll14xx_mp_change() argument 165 old_mdiv = (pll_div & MDIV_MASK) >> MDIV_SHIFT; in clk_pll14xx_mp_change() 166 old_pdiv = (pll_div & PDIV_MASK) >> PDIV_SHIFT; in clk_pll14xx_mp_change()
|
/linux/drivers/clk/meson/ |
A D | vid-pll-div.c | 79 struct meson_vid_pll_div_data *pll_div = meson_vid_pll_div_data(clk); in meson_vid_pll_div_recalc_rate() local 82 div = _get_table_val(meson_parm_read(clk->map, &pll_div->val), in meson_vid_pll_div_recalc_rate() 83 meson_parm_read(clk->map, &pll_div->sel)); in meson_vid_pll_div_recalc_rate()
|
/linux/drivers/gpu/drm/i915/display/ |
A D | vlv_dsi_pll.c | 265 u32 pll_ctl, pll_div; in vlv_dsi_get_pclk() local 274 pll_div = vlv_cck_read(dev_priv, CCK_REG_DSI_PLL_DIVIDER); in vlv_dsi_get_pclk() 278 config->dsi_pll.div = pll_div; in vlv_dsi_get_pclk() 285 n = (pll_div & DSI_PLL_N1_DIV_MASK) >> DSI_PLL_N1_DIV_SHIFT; in vlv_dsi_get_pclk() 289 pll_div &= DSI_PLL_M1_DIV_MASK; in vlv_dsi_get_pclk() 290 pll_div = pll_div >> DSI_PLL_M1_DIV_SHIFT; in vlv_dsi_get_pclk() 304 if (lfsr_converts[i] == pll_div) in vlv_dsi_get_pclk()
|
/linux/drivers/clk/ |
A D | clk-stm32f4.c | 757 pll_div = kzalloc(sizeof(*pll_div), GFP_KERNEL); in clk_register_pll_div() 758 if (!pll_div) in clk_register_pll_div() 768 pll_div->div.reg = reg; in clk_register_pll_div() 769 pll_div->div.shift = shift; in clk_register_pll_div() 770 pll_div->div.width = width; in clk_register_pll_div() 772 pll_div->div.lock = lock; in clk_register_pll_div() 773 pll_div->div.table = table; in clk_register_pll_div() 774 pll_div->div.hw.init = &init; in clk_register_pll_div() 776 pll_div->hw_pll = pll_hw; in clk_register_pll_div() 779 hw = &pll_div->div.hw; in clk_register_pll_div() [all …]
|
/linux/drivers/net/wireless/ath/ath9k/ |
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/qcom/ |
A D | gcc-ipq4019.c | 1210 static u64 clk_fepll_vco_calc_rate(struct clk_fepll *pll_div, in clk_fepll_vco_calc_rate() argument 1213 const struct clk_fepll_vco *pll_vco = pll_div->pll_vco; in clk_fepll_vco_calc_rate() 1217 regmap_read(pll_div->cdiv.clkr.regmap, pll_vco->reg, &cdiv); in clk_fepll_vco_calc_rate()
|