Home
last modified time | relevance | path

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

/linux/drivers/phy/freescale/
H A Dphy-fsl-samsung-hdmi.c376 unsigned long best_freq = 0; in fsl_samsung_hdmi_phy_find_pms() local
435 best_freq = tmp; in fsl_samsung_hdmi_phy_find_pms()
444 if (best_freq) { in fsl_samsung_hdmi_phy_find_pms()
450 return best_freq / 5; in fsl_samsung_hdmi_phy_find_pms()
/linux/drivers/tty/serial/8250/
H A 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/drivers/gpu/drm/nouveau/dispnv04/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()
/linux/drivers/media/i2c/
H A Dtc358746.c920 unsigned long best_freq = 0; in tc358746_find_pll_settings() local
963 best_freq = tmp; in tc358746_find_pll_settings()
970 if (!best_freq) { in tc358746_find_pll_settings()
979 if (best_freq != fout) in tc358746_find_pll_settings()
981 fout, best_freq); in tc358746_find_pll_settings()
984 best_freq, p_best, m_best, postdiv); in tc358746_find_pll_settings()
986 return best_freq; in tc358746_find_pll_settings()
/linux/drivers/mmc/host/
H A Dsh_mmcif.c494 unsigned int freq, best_freq, myclk, div, diff_min, diff; in sh_mmcif_clock_control() local
499 best_freq = 0; in sh_mmcif_clock_control()
515 best_freq = freq; in sh_mmcif_clock_control()
522 (best_freq >> (clkdiv + 1)), clk, 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.c131 unsigned int freq, diff, best_freq = 0, diff_min = ~0; in renesas_sdhi_clk_update() local
178 best_freq = freq; in renesas_sdhi_clk_update()
183 clk_set_rate(ref_clk, best_freq); in renesas_sdhi_clk_update()
186 clk_set_rate(priv->clk, best_freq >> clkh_shift); in renesas_sdhi_clk_update()
/linux/drivers/gpu/drm/radeon/
H A 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/drivers/phy/rockchip/
H A Dphy-rockchip-samsung-dcphy.c1133 u64 best_freq = 0; in samsung_mipi_dcphy_pll_round_rate() local
1154 while (!best_freq) { in samsung_mipi_dcphy_pll_round_rate()
1198 best_freq = DIV_ROUND_CLOSEST_ULL(tmp, 1000) * MSEC_PER_SEC; in samsung_mipi_dcphy_pll_round_rate()
1213 return best_freq >> best_scaler; in samsung_mipi_dcphy_pll_round_rate()
/linux/drivers/spi/
H A Dspi-pl022.c1494 u32 rate, max_tclk, min_tclk, best_freq = 0, best_cpsdvsr = 0, in calculate_effective_freq() local
1516 * best_freq will give closest possible available rate (<= requested in calculate_effective_freq()
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/drivers/gpu/drm/rockchip/
H A 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()
645 DRM_DEV_ERROR(dsi->dev, "Can not find best_freq for DPHY\n"); in dw_mipi_dsi_get_lane_mbps()
/linux/drivers/iio/imu/
H A 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()