Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/phy/rockchip/
Dphy-rockchip-inno-dsidphy.c300 unsigned long best_freq = 0; in inno_dsidphy_pll_calc_rate() local
347 best_freq = tmp; in inno_dsidphy_pll_calc_rate()
352 best_freq = tmp; in inno_dsidphy_pll_calc_rate()
357 if (best_freq) { in inno_dsidphy_pll_calc_rate()
360 inno->pll.rate = best_freq; in inno_dsidphy_pll_calc_rate()
363 return best_freq; in inno_dsidphy_pll_calc_rate()
/linux-6.12.1/drivers/tty/serial/8250/
D8250_bcm7271.c715 u32 best_freq = 0; in set_clock_mux() local
728 best_freq = priv->default_mux_rate; in set_clock_mux()
743 best_freq = freq; in set_clock_mux()
748 if (!best_freq) { in set_clock_mux()
752 rc = clk_set_rate(priv->baud_mux_clk, best_freq); in set_clock_mux()
761 real_baud = best_freq / 16 / best_quot; in set_clock_mux()
762 dev_dbg(up->dev, "Selecting BAUD MUX rate: %u\n", best_freq); in set_clock_mux()
771 up->uartclk = best_freq; in set_clock_mux()
/linux-6.12.1/drivers/gpu/drm/i2c/
Dch7006_mode.c262 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-6.12.1/drivers/media/i2c/
Dtc358746.c816 unsigned long best_freq = 0; in tc358746_find_pll_settings() local
859 best_freq = tmp; in tc358746_find_pll_settings()
866 if (!best_freq) { in tc358746_find_pll_settings()
875 if (best_freq != fout) in tc358746_find_pll_settings()
877 fout, best_freq); in tc358746_find_pll_settings()
880 best_freq, p_best, m_best, postdiv); in tc358746_find_pll_settings()
882 return best_freq; in tc358746_find_pll_settings()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_display.c1126 uint32_t best_freq = -1; in radeon_compute_pll_legacy() local
1240 best_freq = current_freq; in radeon_compute_pll_legacy()
1244 if (best_freq == -1) { in radeon_compute_pll_legacy()
1249 best_freq = current_freq; in radeon_compute_pll_legacy()
1262 best_freq = current_freq; in radeon_compute_pll_legacy()
1280 *dot_clock_p = best_freq / 10000; in radeon_compute_pll_legacy()
1287 best_freq / 1000, best_feedback_div, best_frac_feedback_div, in radeon_compute_pll_legacy()
/linux-6.12.1/drivers/mmc/host/
Dsh_mmcif.c493 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 >> (clkdiv + 1)), clk, best_freq, clkdiv); in sh_mmcif_clock_control()
523 clk_set_rate(host->clk, best_freq); in sh_mmcif_clock_control()
Drenesas_sdhi_core.c129 unsigned int freq, diff, best_freq = 0, diff_min = ~0; in renesas_sdhi_clk_update() local
176 best_freq = freq; in renesas_sdhi_clk_update()
181 clk_set_rate(ref_clk, best_freq); in renesas_sdhi_clk_update()
184 clk_set_rate(priv->clk, best_freq >> clkh_shift); in renesas_sdhi_clk_update()
/linux-6.12.1/drivers/spi/
Dspi-pl022.c1494 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local
1533 if (tmp > best_freq) { in calculate_effective_freq()
1534 best_freq = tmp; in calculate_effective_freq()
1551 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq()
1558 freq, best_freq); in calculate_effective_freq()
/linux-6.12.1/drivers/gpu/drm/rockchip/
Ddw-mipi-dsi-rockchip.c559 unsigned long best_freq = 0; in dw_mipi_dsi_get_lane_mbps() local
635 best_freq = tmp; in dw_mipi_dsi_get_lane_mbps()
639 if (best_freq) { in dw_mipi_dsi_get_lane_mbps()
640 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
/linux-6.12.1/drivers/iio/imu/
Dadis16480.c607 unsigned int i, best_freq; in adis16480_set_filter_freq() local
624 best_freq = 0; in adis16480_set_filter_freq()
631 best_freq = i; in adis16480_set_filter_freq()
637 val |= best_freq << offset; in adis16480_set_filter_freq()
/linux-6.12.1/drivers/gpu/drm/bridge/
Dsamsung-dsim.c570 unsigned long best_freq = 0; in samsung_dsim_pll_find_pms() local
606 best_freq = tmp; in samsung_dsim_pll_find_pms()
611 if (best_freq) { in samsung_dsim_pll_find_pms()
617 return best_freq; in samsung_dsim_pll_find_pms()