Searched refs:best_freq (Results 1 – 4 of 4) sorted by relevance
/drivers/sh/clk/ |
D | core.c | 565 unsigned long *best_freq, unsigned long *parent_freq, in clk_round_parent() argument 574 *best_freq = clk_round_rate(clk, target); in clk_round_parent() 575 return abs(target - *best_freq); in clk_round_parent() 590 if (best_freq) in clk_round_parent() 591 *best_freq = freq_max; in clk_round_parent() 610 if (best_freq) in clk_round_parent() 611 *best_freq = freq_min; in clk_round_parent() 630 if (best_freq) in clk_round_parent() 631 *best_freq = freq_high; in clk_round_parent() 637 if (best_freq) in clk_round_parent() [all …]
|
/drivers/gpu/drm/i2c/ |
D | ch7006_mode.c | 263 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()
|
/drivers/gpu/drm/radeon/ |
D | radeon_display.c | 907 uint32_t best_freq = -1; in radeon_compute_pll_legacy() local 1021 best_freq = current_freq; in radeon_compute_pll_legacy() 1025 if (best_freq == -1) { in radeon_compute_pll_legacy() 1030 best_freq = current_freq; in radeon_compute_pll_legacy() 1043 best_freq = current_freq; in radeon_compute_pll_legacy() 1061 *dot_clock_p = best_freq / 10000; in radeon_compute_pll_legacy() 1068 best_freq / 1000, best_feedback_div, best_frac_feedback_div, in radeon_compute_pll_legacy()
|
/drivers/spi/ |
D | spi-pl022.c | 1666 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local 1705 if (tmp > best_freq) { in calculate_effective_freq() 1706 best_freq = tmp; in calculate_effective_freq() 1723 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq() 1730 freq, best_freq); in calculate_effective_freq()
|