/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_lvds_pll.c | 36 struct pll_rate { struct 45 static const struct pll_rate freqtbl[] = { argument 59 static const struct pll_rate *find_rate(unsigned long rate) in find_rate() 72 const struct pll_rate *pll_rate = find_rate(lvds_pll->pixclk); in mpd4_lvds_pll_enable() local 75 DBG("pixclk=%lu (%lu)", lvds_pll->pixclk, pll_rate->rate); in mpd4_lvds_pll_enable() 77 if (WARN_ON(!pll_rate)) in mpd4_lvds_pll_enable() 82 for (i = 0; pll_rate->conf[i].reg; i++) in mpd4_lvds_pll_enable() 83 mdp4_write(mdp4_kms, pll_rate->conf[i].reg, pll_rate->conf[i].val); in mpd4_lvds_pll_enable() 115 const struct pll_rate *pll_rate = find_rate(rate); in mpd4_lvds_pll_round_rate() local 116 return pll_rate->rate; in mpd4_lvds_pll_round_rate()
|
/Linux-v4.19/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_pll_8960.c | 39 struct pll_rate { struct 49 static const struct pll_rate freqtbl[] = { argument 366 static const struct pll_rate *find_rate(unsigned long rate) in find_rate() 388 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_round_rate() local 390 return pll_rate->rate; in hdmi_pll_round_rate() 397 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_set_rate() local 402 for (i = 0; i < pll_rate->num_reg; i++) in hdmi_pll_set_rate() 403 pll_write(pll, pll_rate->conf[i].reg, pll_rate->conf[i].val); in hdmi_pll_set_rate()
|
/Linux-v4.19/arch/mips/ralink/ |
D | mt7620.c | 453 mt7620_get_cpu_rate(unsigned long pll_rate) in mt7620_get_cpu_rate() argument 465 return mt7620_calc_rate(pll_rate, mul, div); in mt7620_get_cpu_rate() 477 mt7620_get_dram_rate(unsigned long pll_rate) in mt7620_get_dram_rate() argument 480 return pll_rate / 4; in mt7620_get_dram_rate() 482 return pll_rate / 3; in mt7620_get_dram_rate() 511 unsigned long pll_rate; in ralink_clk_init() local 537 pll_rate = mt7620_get_pll_rate(xtal_rate, cpu_pll_rate); in ralink_clk_init() 539 cpu_rate = mt7620_get_cpu_rate(pll_rate); in ralink_clk_init() 540 dram_rate = mt7620_get_dram_rate(pll_rate); in ralink_clk_init() 548 RINT(pll_rate), RFRAC(pll_rate)); in ralink_clk_init()
|
/Linux-v4.19/sound/soc/samsung/ |
D | snow.c | 34 static const unsigned int pll_rate[] = { in snow_card_hw_params() local 83 for (i = 0; i < ARRAY_SIZE(pll_rate); i++) { in snow_card_hw_params() 84 if ((pll_rate[i] - rclk * psr) <= 2) { in snow_card_hw_params() 85 freq = pll_rate[i]; in snow_card_hw_params()
|
/Linux-v4.19/sound/soc/tegra/ |
D | tegra_asoc_utils.c | 121 const int pll_rate = 73728000; in tegra_asoc_utils_set_ac97_rate() local 133 err = clk_set_rate(data->clk_pll_a, pll_rate); in tegra_asoc_utils_set_ac97_rate() 165 data->set_baseclock = pll_rate; in tegra_asoc_utils_set_ac97_rate()
|
/Linux-v4.19/drivers/gpu/drm/mediatek/ |
D | mtk_dpi.c | 434 unsigned long pll_rate; in mtk_dpi_set_display_mode() local 448 pll_rate = vm.pixelclock * factor; in mtk_dpi_set_display_mode() 451 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode() 453 clk_set_rate(dpi->tvd_clk, pll_rate); in mtk_dpi_set_display_mode() 454 pll_rate = clk_get_rate(dpi->tvd_clk); in mtk_dpi_set_display_mode() 456 vm.pixelclock = pll_rate / factor; in mtk_dpi_set_display_mode() 461 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode()
|
D | mtk_mt8173_hdmi_phy.c | 131 unsigned long pll_rate; member 353 hdmi_phy->pll_rate = rate; in mtk_hdmi_pll_round_rate() 367 return hdmi_phy->pll_rate; in mtk_hdmi_pll_recalc_rate()
|
/Linux-v4.19/arch/arm/mach-omap1/ |
D | opp.h | 21 unsigned long pll_rate; member
|
D | clock.c | 224 ck_dpll1_p->rate = ptr->pll_rate; in omap1_select_table_rate()
|
/Linux-v4.19/sound/soc/codecs/ |
D | pcm512x.c | 691 unsigned long pll_rate) in pcm512x_find_pll_coeff() argument 702 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff() 704 pll_rate, pllin_rate, common); in pcm512x_find_pll_coeff() 705 num = pll_rate / common; in pcm512x_find_pll_coeff() 729 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff() 759 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff() 778 K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate); in pcm512x_find_pll_coeff() 835 unsigned long pll_rate; in pcm512x_set_dividers() local 883 pll_rate = 4 * sck_rate; in pcm512x_set_dividers() 885 ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate); in pcm512x_set_dividers()
|
D | adau17x1.c | 410 unsigned int pll_rate; in adau17x1_auto_pll() local 420 pll_rate = 48000 * 1024; in adau17x1_auto_pll() 429 pll_rate = 44100 * 1024; in adau17x1_auto_pll() 436 clk_get_rate(adau->mclk), pll_rate); in adau17x1_auto_pll()
|
/Linux-v4.19/arch/unicore32/kernel/ |
D | clock.c | 182 u32 pll_rate, divstatus = readl(PM_DIVSTATUS); in clk_set_rate() local 189 pll_rate = mclk_clk_table[i].prate; in clk_set_rate() 204 writel(pll_rate, PM_PLLSYSCFG); in clk_set_rate()
|
/Linux-v4.19/drivers/clk/spear/ |
D | clk-vco-pll.c | 70 unsigned long prate, int index, unsigned long *pll_rate) in pll_calc_rate() argument 78 if (pll_rate) in pll_calc_rate() 79 *pll_rate = (rate / (1 << rtbl[index].p)) * 10000; in pll_calc_rate()
|
/Linux-v4.19/drivers/mfd/ |
D | db8500-prcmu.c | 1469 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() function 1525 rate = pll_rate(PRCM_PLLSOC0_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1527 rate = pll_rate(PRCM_PLLSOC1_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1529 rate = pll_rate(PRCM_PLLDDR_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1557 rate = pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_FIX); in armss_rate() 1569 rate = pll_rate(PRCM_PLLARM_FREQ, ROOT_CLOCK_RATE, PLL_DIV); in armss_rate() 1594 return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in dsiclk_rate() 1619 return pll_rate(PRCM_PLLSOC0_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() 1621 return pll_rate(PRCM_PLLSOC1_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() 1625 return pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() [all …]
|
/Linux-v4.19/sound/pci/ctxfi/ |
D | ctatc.h | 82 unsigned int pll_rate; /* current rate of Phase Lock Loop */ member
|
D | ctatc.c | 795 unsigned int pitch, rsr = atc->pll_rate; in spdif_passthru_playback_get_resources() 854 atc->pll_rate = err ? 0 : rate; in atc_pll_init() 889 if ((rate != atc->pll_rate) && (32000 != rate)) in spdif_passthru_playback_setup() 1135 if (atc->pll_rate != atc->rsr) in atc_spdif_out_passthru()
|
/Linux-v4.19/drivers/clk/ |
D | clk-cdce925.c | 418 long pll_rate = clk_round_rate(pll, target_rate); in cdce925_clk_best_parent_rate() local 422 if (pll_rate <= 0) in cdce925_clk_best_parent_rate() 424 actual_rate = pll_rate / pdiv_now; in cdce925_clk_best_parent_rate()
|