Home
last modified time | relevance | path

Searched refs:pclk_rate (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/clocksource/
Dtimer-microchip-pit64b.c286 unsigned long pclk_rate, diff = 0, best_diff = ULONG_MAX; in mchp_pit64b_init_mode() local
290 pclk_rate = clk_get_rate(timer->pclk); in mchp_pit64b_init_mode()
291 if (!pclk_rate) in mchp_pit64b_init_mode()
301 if (pclk_rate / gclk_round < 3) in mchp_pit64b_init_mode()
316 mchp_pit64b_pres_compute(&pres, pclk_rate, max_rate); in mchp_pit64b_init_mode()
317 diff = abs(pclk_rate / (pres + 1) - max_rate); in mchp_pit64b_init_mode()
334 gclk_round / (best_pres + 1) : pclk_rate / (best_pres + 1)); in mchp_pit64b_init_mode()
/linux-6.1.9/drivers/watchdog/
Drzg2l_wdt.c214 unsigned long pclk_rate; in rzg2l_wdt_probe() local
239 pclk_rate = clk_get_rate(priv->pclk); in rzg2l_wdt_probe()
240 if (!pclk_rate) in rzg2l_wdt_probe()
243 priv->delay = F2CYCLE_NSEC(priv->osc_clk_rate) * 6 + F2CYCLE_NSEC(pclk_rate) * 9; in rzg2l_wdt_probe()
/linux-6.1.9/drivers/ufs/host/
Dufs-exynos.c418 unsigned long pclk_rate; in exynos_ufs_get_clk_info() local
442 pclk_rate = clk_get_rate(ufs->clk_hci_core); in exynos_ufs_get_clk_info()
448 pclk_rate /= (div + 1); in exynos_ufs_get_clk_info()
450 if (pclk_rate <= f_max) in exynos_ufs_get_clk_info()
453 } while (pclk_rate >= f_min); in exynos_ufs_get_clk_info()
456 if (unlikely(pclk_rate < f_min || pclk_rate > f_max)) { in exynos_ufs_get_clk_info()
457 dev_err(hba->dev, "not available pclk range %lu\n", pclk_rate); in exynos_ufs_get_clk_info()
462 ufs->pclk_rate = pclk_rate; in exynos_ufs_get_clk_info()
523 long pclk_rate = ufs->pclk_rate; in exynos_ufs_calc_time_cntr() local
527 fraction = ((NSEC_PER_SEC % pclk_rate) * precise) / pclk_rate; in exynos_ufs_calc_time_cntr()
Dufs-exynos.h102 #define UNIPRO_PCLK_PERIOD(ufs) (NSEC_PER_SEC / ufs->pclk_rate)
202 u32 pclk_rate; member
/linux-6.1.9/sound/soc/codecs/
Dmax9860.c33 unsigned long pclk_rate; member
367 switch (max9860->pclk_rate) { in max9860_hw_params()
399 max9860->pclk_rate); in max9860_hw_params()
661 max9860->pclk_rate = mclk_rate >> (max9860->psclk - 1); in max9860_probe()
663 dev_dbg(dev, "mclk %lu pclk %lu\n", mclk_rate, max9860->pclk_rate); in max9860_probe()
/linux-6.1.9/drivers/gpu/drm/tilcdc/
Dtilcdc_crtc.c207 unsigned long clk_rate, real_pclk_rate, pclk_rate; in tilcdc_crtc_set_clk() local
214 pclk_rate = crtc->mode.clock * 1000; in tilcdc_crtc_set_clk()
216 ret = clk_set_rate(priv->clk, pclk_rate * clkdiv); in tilcdc_crtc_set_clk()
219 if (ret < 0 || tilcdc_pclk_diff(pclk_rate, real_pclk_rate) > 5) { in tilcdc_crtc_set_clk()
234 clkdiv = DIV_ROUND_CLOSEST(clk_rate, pclk_rate); in tilcdc_crtc_set_clk()
245 if (tilcdc_pclk_diff(pclk_rate, real_pclk_rate) > 5) { in tilcdc_crtc_set_clk()
248 real_pclk_rate, pclk_rate); in tilcdc_crtc_set_clk()
/linux-6.1.9/sound/soc/atmel/
Datmel-pdmic.c366 unsigned long pclk_rate, gclk_rate; in atmel_pdmic_cpu_dai_hw_params() local
405 pclk_rate = clk_get_rate(dd->pclk); in atmel_pdmic_cpu_dai_hw_params()
409 pclk_prescal = (u32)(pclk_rate/(f_pdmic << 1)) - 1; in atmel_pdmic_cpu_dai_hw_params()
414 pclk_rate/((pclk_prescal + 1) << 1))) { in atmel_pdmic_cpu_dai_hw_params()
/linux-6.1.9/drivers/gpu/drm/msm/dsi/
Ddsi_host.c576 unsigned long pclk_rate; in dsi_get_pclk_rate() local
578 pclk_rate = mode->clock * 1000; in dsi_get_pclk_rate()
587 pclk_rate /= 2; in dsi_get_pclk_rate()
589 return pclk_rate; in dsi_get_pclk_rate()
596 unsigned long pclk_rate = dsi_get_pclk_rate(msm_host, is_bonded_dsi); in dsi_calc_pclk() local
597 u64 pclk_bpp = (u64)pclk_rate * bpp; in dsi_calc_pclk()
610 msm_host->pixel_clk_rate = pclk_rate; in dsi_calc_pclk()
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_encoder.c1660 u64 pclk_rate; in _dpu_encoder_calculate_linetime() local
1675 pclk_rate = mode->clock; /* pixel clock in kHz */ in _dpu_encoder_calculate_linetime()
1676 if (pclk_rate == 0) { in _dpu_encoder_calculate_linetime()
1681 pclk_period = DIV_ROUND_UP_ULL(1000000000ull, pclk_rate); in _dpu_encoder_calculate_linetime()
1699 pclk_rate, pclk_period, line_time); in _dpu_encoder_calculate_linetime()