/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp4/ |
D | mdp4_lvds_pll.c | 25 struct pll_rate { struct 34 static const struct pll_rate freqtbl[] = { argument 48 static const struct pll_rate *find_rate(unsigned long rate) in find_rate() 61 const struct pll_rate *pll_rate = find_rate(lvds_pll->pixclk); in mpd4_lvds_pll_enable() local 64 DBG("pixclk=%lu (%lu)", lvds_pll->pixclk, pll_rate->rate); in mpd4_lvds_pll_enable() 66 if (WARN_ON(!pll_rate)) in mpd4_lvds_pll_enable() 71 for (i = 0; pll_rate->conf[i].reg; i++) in mpd4_lvds_pll_enable() 72 mdp4_write(mdp4_kms, pll_rate->conf[i].reg, pll_rate->conf[i].val); in mpd4_lvds_pll_enable() 104 const struct pll_rate *pll_rate = find_rate(rate); in mpd4_lvds_pll_round_rate() local 105 return pll_rate->rate; in mpd4_lvds_pll_round_rate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_pll_8960.c | 30 struct pll_rate { struct 40 static const struct pll_rate freqtbl[] = { argument 357 static const struct pll_rate *find_rate(unsigned long rate) in find_rate() 379 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_round_rate() local 381 return pll_rate->rate; in hdmi_pll_round_rate() 388 const struct pll_rate *pll_rate = find_rate(rate); in hdmi_pll_set_rate() local 393 for (i = 0; i < pll_rate->num_reg; i++) in hdmi_pll_set_rate() 394 pll_write(pll, pll_rate->conf[i].reg, pll_rate->conf[i].val); in hdmi_pll_set_rate()
|
/kernel/linux/linux-5.10/arch/mips/ralink/ |
D | mt7620.c | 451 mt7620_get_cpu_rate(unsigned long pll_rate) in mt7620_get_cpu_rate() argument 463 return mt7620_calc_rate(pll_rate, mul, div); in mt7620_get_cpu_rate() 475 mt7620_get_dram_rate(unsigned long pll_rate) in mt7620_get_dram_rate() argument 478 return pll_rate / 4; in mt7620_get_dram_rate() 480 return pll_rate / 3; in mt7620_get_dram_rate() 509 unsigned long pll_rate; in ralink_clk_init() local 535 pll_rate = mt7620_get_pll_rate(xtal_rate, cpu_pll_rate); in ralink_clk_init() 537 cpu_rate = mt7620_get_cpu_rate(pll_rate); in ralink_clk_init() 538 dram_rate = mt7620_get_dram_rate(pll_rate); in ralink_clk_init() 546 RINT(pll_rate), RFRAC(pll_rate)); in ralink_clk_init()
|
/kernel/linux/linux-5.10/sound/soc/samsung/ |
D | snow.c | 30 static const unsigned int pll_rate[] = { in snow_card_hw_params() local 79 for (i = 0; i < ARRAY_SIZE(pll_rate); i++) { in snow_card_hw_params() 80 if ((pll_rate[i] - rclk * psr) <= 2) { in snow_card_hw_params() 81 freq = pll_rate[i]; in snow_card_hw_params()
|
/kernel/linux/linux-5.10/sound/soc/tegra/ |
D | tegra_asoc_utils.c | 93 const int pll_rate = 73728000; in tegra_asoc_utils_set_ac97_rate() local 103 err = clk_set_rate(data->clk_pll_a, pll_rate); in tegra_asoc_utils_set_ac97_rate() 123 data->set_baseclock = pll_rate; in tegra_asoc_utils_set_ac97_rate()
|
/kernel/linux/linux-5.10/sound/soc/ti/ |
D | j721e-evm.c | 561 unsigned int min_rate, max_rate, pll_rate; in j721e_calculate_rate_range() local 591 pll_rate = priv->pll_rates[J721E_CLK_PARENT_44100]; in j721e_calculate_rate_range() 593 pll_rate = priv->pll_rates[J721E_CLK_PARENT_48000]; in j721e_calculate_rate_range() 595 min_rate = pll_rate / J721E_MAX_CLK_HSDIV; in j721e_calculate_rate_range() 599 pll_rate = priv->pll_rates[J721E_CLK_PARENT_48000]; in j721e_calculate_rate_range() 601 pll_rate = priv->pll_rates[J721E_CLK_PARENT_44100]; in j721e_calculate_rate_range() 603 if (pll_rate > PCM1368A_MAX_SYSCLK) in j721e_calculate_rate_range() 604 pll_rate = PCM1368A_MAX_SYSCLK; in j721e_calculate_rate_range() 606 max_rate = pll_rate / ratios_for_pcm3168a[0]; in j721e_calculate_rate_range()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
D | mtk_dpi.c | 440 unsigned long pll_rate; in mtk_dpi_set_display_mode() local 446 pll_rate = vm.pixelclock * factor; in mtk_dpi_set_display_mode() 449 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode() 451 clk_set_rate(dpi->tvd_clk, pll_rate); in mtk_dpi_set_display_mode() 452 pll_rate = clk_get_rate(dpi->tvd_clk); in mtk_dpi_set_display_mode() 454 vm.pixelclock = pll_rate / factor; in mtk_dpi_set_display_mode() 459 pll_rate, vm.pixelclock); in mtk_dpi_set_display_mode()
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
D | opp.h | 18 unsigned long pll_rate; member
|
D | clock.c | 221 ck_dpll1_p->rate = ptr->pll_rate; in omap1_select_table_rate()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | pcm512x.c | 748 unsigned long pll_rate) in pcm512x_find_pll_coeff() argument 759 common = gcd(pll_rate, pllin_rate); in pcm512x_find_pll_coeff() 761 pll_rate, pllin_rate, common); in pcm512x_find_pll_coeff() 762 num = pll_rate / common; in pcm512x_find_pll_coeff() 786 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff() 816 pcm512x->real_pll = pll_rate; in pcm512x_find_pll_coeff() 835 K = DIV_ROUND_CLOSEST_ULL(10000ULL * pll_rate * P, pllin_rate); in pcm512x_find_pll_coeff() 892 unsigned long pll_rate; in pcm512x_set_dividers() local 945 pll_rate = 4 * sck_rate; in pcm512x_set_dividers() 947 ret = pcm512x_find_pll_coeff(dai, pllin_rate, pll_rate); in pcm512x_set_dividers()
|
D | adau17x1.c | 429 unsigned int pll_rate; in adau17x1_auto_pll() local 439 pll_rate = 48000 * 1024; in adau17x1_auto_pll() 448 pll_rate = 44100 * 1024; in adau17x1_auto_pll() 455 clk_get_rate(adau->mclk), pll_rate); in adau17x1_auto_pll()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | db8500-prcmu.c | 1396 static unsigned long pll_rate(void __iomem *reg, unsigned long src_rate, in pll_rate() function 1452 rate = pll_rate(PRCM_PLLSOC0_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1454 rate = pll_rate(PRCM_PLLSOC1_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1456 rate = pll_rate(PRCM_PLLDDR_FREQ, rate, clk_mgt[clock].branch); in clock_rate() 1484 rate = pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_FIX); in armss_rate() 1496 rate = pll_rate(PRCM_PLLARM_FREQ, ROOT_CLOCK_RATE, PLL_DIV); in armss_rate() 1523 return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), in dsiclk_rate() 1549 return pll_rate(PRCM_PLLSOC0_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() 1551 return pll_rate(PRCM_PLLSOC1_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() 1555 return pll_rate(PRCM_PLLDDR_FREQ, ROOT_CLOCK_RATE, PLL_RAW); in prcmu_clock_rate() [all …]
|
/kernel/linux/linux-5.10/drivers/phy/mediatek/ |
D | phy-mtk-hdmi.h | 36 unsigned long pll_rate; member
|
D | phy-mtk-hdmi-mt8173.c | 147 hdmi_phy->pll_rate = rate; in mtk_hdmi_pll_round_rate() 247 return hdmi_phy->pll_rate; in mtk_hdmi_pll_recalc_rate()
|
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
D | ctatc.h | 78 unsigned int pll_rate; /* current rate of Phase Lock Loop */ member
|
D | ctatc.c | 792 unsigned int pitch, rsr = atc->pll_rate; in spdif_passthru_playback_get_resources() 851 atc->pll_rate = err ? 0 : rate; in atc_pll_init() 886 if ((rate != atc->pll_rate) && (32000 != rate)) in spdif_passthru_playback_setup() 1132 if (atc->pll_rate != atc->rsr) in atc_spdif_out_passthru()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-cdce925.c | 419 long pll_rate = clk_round_rate(pll, target_rate); in cdce925_clk_best_parent_rate() local 423 if (pll_rate <= 0) in cdce925_clk_best_parent_rate() 425 actual_rate = pll_rate / pdiv_now; in cdce925_clk_best_parent_rate()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
D | 0020_linux_drivers_gpu.patch | 6483 + unsigned long pll_rate; 6499 + pll_rate = nwl_dsi_get_lcm(config->clock, config->phy_rates[i]); 6500 + if (pll_rate > MAX_PLL_FREQ) { 6501 + /* Drop pll_rate to a realistic value */ 6502 + while (pll_rate > MAX_PLL_FREQ) 6503 + pll_rate >>= 1; 6504 + /* Make sure pll_rate can provide phy_ref rate */ 6505 + div = DIV_ROUND_UP(pll_rate, config->phy_rates[i]); 6506 + pll_rate = config->phy_rates[i] * div; 6512 + while (pll_rate <= MAX_PLL_FREQ) [all …]
|