Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-inno-dsidphy.c333 unsigned long best_freq = 0; in inno_dsidphy_pll_calc_rate() local
380 best_freq = tmp; in inno_dsidphy_pll_calc_rate()
385 best_freq = tmp; in inno_dsidphy_pll_calc_rate()
390 if (best_freq) { in inno_dsidphy_pll_calc_rate()
393 inno->pll.rate = best_freq; in inno_dsidphy_pll_calc_rate()
396 return best_freq; in inno_dsidphy_pll_calc_rate()
H A Dphy-rockchip-inno-video-combo-phy.c604 unsigned long best_freq = 0; in inno_video_phy_pll_round_rate() local
651 best_freq = tmp; in inno_video_phy_pll_round_rate()
656 best_freq = tmp; in inno_video_phy_pll_round_rate()
661 if (best_freq) { in inno_video_phy_pll_round_rate()
666 return best_freq; in inno_video_phy_pll_round_rate()
H A Dphy-rockchip-inno-mipi-dphy.c525 unsigned long best_freq = 0; in inno_mipi_dphy_pll_round_rate() local
567 best_freq = tmp * USEC_PER_SEC; in inno_mipi_dphy_pll_round_rate()
571 if (best_freq) { in inno_mipi_dphy_pll_round_rate()
576 return best_freq / 2; in inno_mipi_dphy_pll_round_rate()
H A Dphy-rockchip-samsung-dcphy.c1510 u64 best_freq = 0; in samsung_mipi_dcphy_pll_round_rate() local
1526 while (!best_freq) { in samsung_mipi_dcphy_pll_round_rate()
1570 best_freq = DIV_ROUND_CLOSEST_ULL(tmp, 1000) * MSEC_PER_SEC; in samsung_mipi_dcphy_pll_round_rate()
1585 return best_freq >> best_scaler; in samsung_mipi_dcphy_pll_round_rate()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i2c/
H A 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()
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Dinno_video_combo_phy.c768 unsigned long best_freq = 0; in inno_video_phy_pll_round_rate() local
815 best_freq = tmp; in inno_video_phy_pll_round_rate()
820 best_freq = tmp; in inno_video_phy_pll_round_rate()
825 if (best_freq) { in inno_video_phy_pll_round_rate()
830 return best_freq; in inno_video_phy_pll_round_rate()
H A Dinno_mipi_phy.c469 unsigned long best_freq = 0; in inno_mipi_dphy_pll_round_rate() local
496 best_freq = tmp; in inno_mipi_dphy_pll_round_rate()
500 if (best_freq) { in inno_mipi_dphy_pll_round_rate()
505 return best_freq / 2; in inno_mipi_dphy_pll_round_rate()
H A Dsamsung_mipi_dcphy.c1654 u64 best_freq = 0; in samsung_mipi_dcphy_pll_round_rate() local
1670 while (!best_freq) { in samsung_mipi_dcphy_pll_round_rate()
1714 best_freq = DIV_ROUND_CLOSEST(tmp, 1000) * MSEC_PER_SEC; in samsung_mipi_dcphy_pll_round_rate()
1729 return best_freq >> best_scaler; in samsung_mipi_dcphy_pll_round_rate()
H A Ddw_mipi_dsi.c582 unsigned long fvco_min, fvco_max, best_freq = 984000000; in dw_mipi_dsi_set_pll() local
627 best_freq = _fout; in dw_mipi_dsi_set_pll()
632 best_freq = _fout; in dw_mipi_dsi_set_pll()
637 dsi->lane_mbps = best_freq / 1000 / 1000; in dw_mipi_dsi_set_pll()
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A 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 / (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()
H A Drenesas_sdhi_core.c120 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/radeon/
H A Dradeon_display.c1130 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()
/OK3568_Linux_fs/kernel/drivers/iio/imu/
H A Dadis16480.c558 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Ddw-mipi-dsi-rockchip.c620 unsigned long best_freq = 0; in dw_mipi_dsi_get_lane_mbps() local
700 best_freq = tmp; in dw_mipi_dsi_get_lane_mbps()
704 if (best_freq) { in dw_mipi_dsi_get_lane_mbps()
705 dsi->lane_mbps = DIV_ROUND_UP(best_freq, USEC_PER_SEC); in dw_mipi_dsi_get_lane_mbps()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-pl022.c1748 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local
1787 if (tmp > best_freq) { in calculate_effective_freq()
1788 best_freq = tmp; in calculate_effective_freq()
1805 WARN(!best_freq, "pl022: Matching cpsdvsr and scr not found for %d Hz rate \n", in calculate_effective_freq()
1812 freq, best_freq); in calculate_effective_freq()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/exynos/
H A Dexynos_drm_dsi.c547 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()