/linux-6.6.21/drivers/phy/rockchip/ |
D | phy-rockchip-inno-dsidphy.c | 300 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.6.21/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-6.6.21/drivers/media/i2c/ |
D | tc358746.c | 812 unsigned long best_freq = 0; in tc358746_find_pll_settings() local 856 best_freq = tmp; in tc358746_find_pll_settings() 863 if (!best_freq) { in tc358746_find_pll_settings() 872 if (best_freq != fout) in tc358746_find_pll_settings() 874 fout, best_freq); in tc358746_find_pll_settings() 877 best_freq, p_best, m_best, postdiv); in tc358746_find_pll_settings() 879 return best_freq; in tc358746_find_pll_settings()
|
/linux-6.6.21/drivers/mmc/host/ |
D | sh_mmcif.c | 495 unsigned int freq, best_freq, myclk, div, diff_min, diff; in sh_mmcif_clock_control() local 500 best_freq = 0; in sh_mmcif_clock_control() 516 best_freq = freq; in sh_mmcif_clock_control() 523 (best_freq >> (clkdiv + 1)), clk, best_freq, clkdiv); in sh_mmcif_clock_control() 525 clk_set_rate(host->clk, best_freq); in sh_mmcif_clock_control()
|
D | renesas_sdhi_core.c | 129 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.6.21/drivers/gpu/drm/radeon/ |
D | radeon_display.c | 1132 uint32_t best_freq = -1; in radeon_compute_pll_legacy() local 1246 best_freq = current_freq; in radeon_compute_pll_legacy() 1250 if (best_freq == -1) { in radeon_compute_pll_legacy() 1255 best_freq = current_freq; in radeon_compute_pll_legacy() 1268 best_freq = current_freq; in radeon_compute_pll_legacy() 1286 *dot_clock_p = best_freq / 10000; in radeon_compute_pll_legacy() 1293 best_freq / 1000, best_feedback_div, best_frac_feedback_div, in radeon_compute_pll_legacy()
|
/linux-6.6.21/drivers/iio/imu/ |
D | adis16480.c | 612 unsigned int i, best_freq; in adis16480_set_filter_freq() local 629 best_freq = 0; in adis16480_set_filter_freq() 636 best_freq = i; in adis16480_set_filter_freq() 642 val |= best_freq << offset; in adis16480_set_filter_freq()
|
/linux-6.6.21/drivers/gpu/drm/rockchip/ |
D | dw-mipi-dsi-rockchip.c | 550 unsigned long best_freq = 0; in dw_mipi_dsi_get_lane_mbps() local 626 best_freq = tmp; in dw_mipi_dsi_get_lane_mbps() 630 if (best_freq) { in dw_mipi_dsi_get_lane_mbps() 631 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
|
/linux-6.6.21/drivers/spi/ |
D | spi-pl022.c | 1741 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local 1780 if (tmp > best_freq) { in calculate_effective_freq() 1781 best_freq = tmp; in calculate_effective_freq() 1798 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq() 1805 freq, best_freq); in calculate_effective_freq()
|
/linux-6.6.21/drivers/gpu/drm/bridge/ |
D | samsung-dsim.c | 557 unsigned long best_freq = 0; in samsung_dsim_pll_find_pms() local 593 best_freq = tmp; in samsung_dsim_pll_find_pms() 598 if (best_freq) { in samsung_dsim_pll_find_pms() 604 return best_freq; in samsung_dsim_pll_find_pms()
|