Home
last modified time | relevance | path

Searched refs:best_freq (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/i2c/
Dch7006_mode.c263 int freq, best_freq = 0; in ch7006_setup_pll() local
270 abs(best_freq - mode->mode.clock)) { in ch7006_setup_pll()
271 best_freq = freq; in ch7006_setup_pll()
290 best_n, best_m, best_freq, best_n < 108); in ch7006_setup_pll()
/Linux-v4.19/drivers/mmc/host/
Drenesas_sdhi_core.c123 unsigned int freq, diff, best_freq = 0, diff_min = ~0; in renesas_sdhi_clk_update() local
148 best_freq = freq; in renesas_sdhi_clk_update()
153 ret = clk_set_rate(priv->clk, best_freq); in renesas_sdhi_clk_update()
155 return ret == 0 ? best_freq : clk_get_rate(priv->clk); in renesas_sdhi_clk_update()
Dsh_mmcif.c492 unsigned int freq, best_freq, myclk, div, diff_min, diff; in sh_mmcif_clock_control() local
497 best_freq = 0; in sh_mmcif_clock_control()
513 best_freq = freq; in sh_mmcif_clock_control()
520 (best_freq / (1 << (clkdiv + 1))), clk, in sh_mmcif_clock_control()
521 best_freq, clkdiv); in sh_mmcif_clock_control()
523 clk_set_rate(host->clk, best_freq); in sh_mmcif_clock_control()
/Linux-v4.19/drivers/iio/imu/
Dadis16480.c470 unsigned int i, best_freq; in adis16480_set_filter_freq() local
485 best_freq = 0; in adis16480_set_filter_freq()
492 best_freq = i; in adis16480_set_filter_freq()
498 val |= best_freq << offset; in adis16480_set_filter_freq()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_display.c1119 uint32_t best_freq = -1; in radeon_compute_pll_legacy() local
1233 best_freq = current_freq; in radeon_compute_pll_legacy()
1237 if (best_freq == -1) { in radeon_compute_pll_legacy()
1242 best_freq = current_freq; in radeon_compute_pll_legacy()
1255 best_freq = current_freq; in radeon_compute_pll_legacy()
1273 *dot_clock_p = best_freq / 10000; in radeon_compute_pll_legacy()
1280 best_freq / 1000, best_feedback_div, best_frac_feedback_div, in radeon_compute_pll_legacy()
/Linux-v4.19/drivers/spi/
Dspi-pl022.c1727 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local
1766 if (tmp > best_freq) { in calculate_effective_freq()
1767 best_freq = tmp; in calculate_effective_freq()
1784 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq()
1791 freq, best_freq); in calculate_effective_freq()
/Linux-v4.19/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c544 unsigned long best_freq = 0; in exynos_dsi_pll_find_pms() local
580 best_freq = tmp; in exynos_dsi_pll_find_pms()
585 if (best_freq) { in exynos_dsi_pll_find_pms()
591 return best_freq; in exynos_dsi_pll_find_pms()