/linux/drivers/gpu/drm/sun4i/ |
A D | sun4i_hdmi_ddc_clk.c | 34 u8 best_m = 0, best_n = 0, _m, _n; in sun4i_ddc_calc_divider() local 48 best_m = _m; in sun4i_ddc_calc_divider() 55 *m = best_m; in sun4i_ddc_calc_divider()
|
A D | sun8i_hdmi_phy_clk.c | 86 u8 best_m = 0, m; in sun8i_phy_clk_set_rate() local 97 best_m = m; in sun8i_phy_clk_set_rate() 103 SUN8I_HDMI_PHY_PLL_CFG2_PREDIV(best_m)); in sun8i_phy_clk_set_rate()
|
A D | sun4i_hdmi_tmds_clk.c | 34 u8 best_m = 0, m; in sun4i_tmds_calc_divider() local 51 best_m = m; in sun4i_tmds_calc_divider() 58 *div = best_m; in sun4i_tmds_calc_divider()
|
/linux/drivers/video/fbdev/ |
A D | asiliantfb.c | 116 unsigned best_m = 0xffffffff, in asiliant_calc_dclk2() local 146 best_m = m; in asiliant_calc_dclk2() 158 best_m = m; in asiliant_calc_dclk2() 163 if (best_m > 257) in asiliant_calc_dclk2() 164 best_m >>= 2; /* divide m by 4, and leave VCO loop divide at 4 */ in asiliant_calc_dclk2() 167 *dclk2_m = best_m - 2; in asiliant_calc_dclk2()
|
A D | gbefb.c | 457 int pll_m, pll_n, pll_p, error, best_m, best_n, best_p, best_error; in compute_gbe_timing() local 472 best_n = best_m = best_p = 0; in compute_gbe_timing() 490 best_m = pll_m; in compute_gbe_timing() 496 if (!best_n || !best_m) in compute_gbe_timing() 500 (best_n << best_p) / best_m; in compute_gbe_timing() 506 timing->pll_m = best_m; in compute_gbe_timing()
|
A D | tridentfb.c | 840 unsigned char best_m = 0, best_n = 0, best_k = 0; in set_vclk() local 854 best_m = m; in set_vclk() 863 lo = best_n | (best_m << 7); in set_vclk() 864 hi = (best_m >> 1) | (best_k << 4); in set_vclk() 867 hi = best_m | (best_k << 6); in set_vclk()
|
A D | tdfxfb.c | 289 int m, n, k, best_m, best_n, best_k, best_error; in do_calc_pll() local 293 best_n = best_m = best_k = 0; in do_calc_pll() 321 best_m = m; in do_calc_pll() 329 m = best_m; in do_calc_pll()
|
A D | sstfb.c | 295 int best_m = -1; in sst_calc_pll() local 314 best_m = m; in sst_calc_pll() 324 t->m = best_m; in sst_calc_pll()
|
/linux/drivers/clk/sunxi/ |
A D | clk-sun4i-tcon-ch1.c | 104 u8 best_m = 0, m; in tcon_ch1_calc_divider() local 121 best_m = m; in tcon_ch1_calc_divider() 128 *div = best_m; in tcon_ch1_calc_divider()
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_nkm.c | 23 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best() local 39 best_m = _m; in ccu_nkm_find_best() 47 nkm->m = best_m; in ccu_nkm_find_best()
|
A D | ccu_nm.c | 34 unsigned long best_n = 0, best_m = 0; in ccu_nm_find_best() local 48 best_m = _m; in ccu_nm_find_best() 54 nm->m = best_m; in ccu_nm_find_best()
|
A D | ccu_mp.c | 18 unsigned int best_m = 0, best_p = 0; in ccu_mp_find_best() local 30 best_m = _m; in ccu_mp_find_best() 36 *m = best_m; in ccu_mp_find_best()
|
A D | ccu_nkmp.c | 36 unsigned long best_n = 0, best_k = 0, best_m = 0, best_p = 0; in ccu_nkmp_find_best() local 56 best_m = _m; in ccu_nkmp_find_best() 66 nkmp->m = best_m; in ccu_nkmp_find_best()
|
/linux/drivers/gpu/drm/i2c/ |
A D | ch7006_mode.c | 261 int m, best_m = 0; in ch7006_setup_pll() local 272 best_m = m; in ch7006_setup_pll() 278 bitf(CH7006_PLLOV_M_8, best_m); in ch7006_setup_pll() 280 regs[CH7006_PLLM] = bitf(CH7006_PLLM_0, best_m); in ch7006_setup_pll() 289 best_n, best_m, best_freq, best_n < 108); in ch7006_setup_pll()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
A D | gk20a.c | 109 u32 best_m, best_n; in gk20a_pllg_calc_mnp() local 119 best_m = clk->params->max_m; in gk20a_pllg_calc_mnp() 177 best_m = m; in gk20a_pllg_calc_mnp() 197 pll->m = best_m; in gk20a_pllg_calc_mnp()
|
/linux/drivers/clk/ |
A D | clk-axi-clkgen.c | 127 unsigned int *best_d, unsigned int *best_m, unsigned int *best_dout) in axi_clkgen_calc_params() argument 140 *best_m = 0; in axi_clkgen_calc_params() 166 *best_m = m << (3 - fract_shift); in axi_clkgen_calc_params()
|
/linux/drivers/clk/meson/ |
A D | clk-pll.c | 217 unsigned int *best_m, in meson_clk_get_pll_settings() argument 234 *best_m = m; in meson_clk_get_pll_settings()
|
/linux/drivers/gpu/drm/kmb/ |
A D | kmb_dsi.c | 865 u32 best_n = 0, best_m = 0; in mipi_tx_pll_setup() local 921 best_m = m; in mipi_tx_pll_setup() 935 dev_dbg(kmb_dsi->dev, "m = %d n = %d\n", best_m, best_n); in mipi_tx_pll_setup() 945 (best_m & 0x1f)); in mipi_tx_pll_setup() 951 ((best_m >> 5) & 0x1f) | PLL_FEEDBACK_DIVIDER_HIGH); in mipi_tx_pll_setup()
|
/linux/drivers/video/fbdev/savage/ |
A D | savagefb_driver.c | 421 unsigned char n1, n2, best_n1=16+2, best_n2=2, best_m=125+2; in SavageCalcClock() local 448 best_m = m; in SavageCalcClock() 458 *mdiv = best_m - 2; in SavageCalcClock() 469 unsigned char best_n1 = 16+2, best_n2 = 2, best_m = 125+2; in common_calc_clock() local 486 best_m = m; in common_calc_clock() 499 *mdiv = best_m - 2; in common_calc_clock()
|
/linux/drivers/gpu/drm/exynos/ |
A D | exynos_drm_dsi.c | 550 u16 _m, best_m; in exynos_dsi_pll_find_pms() local 579 best_m = _m; in exynos_dsi_pll_find_pms() 589 *m = best_m; in exynos_dsi_pll_find_pms()
|