Searched refs:best_freq (Results 1 – 9 of 9) sorted by relevance
| /Linux-v5.10/drivers/phy/rockchip/ |
| D | phy-rockchip-inno-dsidphy.c | 223 unsigned long best_freq = 0; in inno_dsidphy_pll_calc_rate() local 270 best_freq = tmp; in inno_dsidphy_pll_calc_rate() 275 best_freq = tmp; in inno_dsidphy_pll_calc_rate() 280 if (best_freq) { in inno_dsidphy_pll_calc_rate() 283 inno->pll.rate = best_freq; in inno_dsidphy_pll_calc_rate() 286 return best_freq; in inno_dsidphy_pll_calc_rate()
|
| /Linux-v5.10/drivers/gpu/drm/i2c/ |
| D | ch7006_mode.c | 262 int freq, best_freq = 0; in ch7006_setup_pll() local 269 abs(best_freq - mode->mode.clock)) { in ch7006_setup_pll() 270 best_freq = freq; in ch7006_setup_pll() 289 best_n, best_m, best_freq, best_n < 108); in ch7006_setup_pll()
|
| /Linux-v5.10/drivers/mmc/host/ |
| D | sh_mmcif.c | 493 unsigned int freq, best_freq, myclk, div, diff_min, diff; in sh_mmcif_clock_control() local 498 best_freq = 0; in sh_mmcif_clock_control() 514 best_freq = freq; in sh_mmcif_clock_control() 521 (best_freq / (1 << (clkdiv + 1))), clk, in sh_mmcif_clock_control() 522 best_freq, clkdiv); in sh_mmcif_clock_control() 524 clk_set_rate(host->clk, best_freq); in sh_mmcif_clock_control()
|
| D | renesas_sdhi_core.c | 120 unsigned int freq, diff, best_freq = 0, diff_min = ~0; in renesas_sdhi_clk_update() local 149 best_freq = freq; in renesas_sdhi_clk_update() 154 clk_set_rate(priv->clk, best_freq); in renesas_sdhi_clk_update()
|
| /Linux-v5.10/drivers/gpu/drm/radeon/ |
| D | radeon_display.c | 1130 uint32_t best_freq = -1; in radeon_compute_pll_legacy() local 1244 best_freq = current_freq; in radeon_compute_pll_legacy() 1248 if (best_freq == -1) { in radeon_compute_pll_legacy() 1253 best_freq = current_freq; in radeon_compute_pll_legacy() 1266 best_freq = current_freq; in radeon_compute_pll_legacy() 1284 *dot_clock_p = best_freq / 10000; in radeon_compute_pll_legacy() 1291 best_freq / 1000, best_feedback_div, best_frac_feedback_div, in radeon_compute_pll_legacy()
|
| /Linux-v5.10/drivers/gpu/drm/rockchip/ |
| D | dw-mipi-dsi-rockchip.c | 517 unsigned long best_freq = 0; in dw_mipi_dsi_get_lane_mbps() local 593 best_freq = tmp; in dw_mipi_dsi_get_lane_mbps() 597 if (best_freq) { in dw_mipi_dsi_get_lane_mbps() 598 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
|
| /Linux-v5.10/drivers/iio/imu/ |
| D | adis16480.c | 558 unsigned int i, best_freq; in adis16480_set_filter_freq() local 575 best_freq = 0; in adis16480_set_filter_freq() 582 best_freq = i; in adis16480_set_filter_freq() 588 val |= best_freq << offset; in adis16480_set_filter_freq()
|
| /Linux-v5.10/drivers/spi/ |
| D | spi-pl022.c | 1747 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local 1786 if (tmp > best_freq) { in calculate_effective_freq() 1787 best_freq = tmp; in calculate_effective_freq() 1804 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq() 1811 freq, best_freq); in calculate_effective_freq()
|
| /Linux-v5.10/drivers/gpu/drm/exynos/ |
| D | exynos_drm_dsi.c | 547 unsigned long best_freq = 0; in exynos_dsi_pll_find_pms() local 583 best_freq = tmp; in exynos_dsi_pll_find_pms() 588 if (best_freq) { in exynos_dsi_pll_find_pms() 594 return best_freq; in exynos_dsi_pll_find_pms()
|