Home
last modified time | relevance | path

Searched refs:best_m (Results 1 – 14 of 14) sorted by relevance

/drivers/clk/sunxi-ng/
Dccu_mp.c21 unsigned int best_m = 0, best_p = 0; in ccu_mp_find_best() local
33 best_m = _m; in ccu_mp_find_best()
39 *m = best_m; in ccu_mp_find_best()
Dccu_nkm.c27 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best() local
45 best_m = _m; in ccu_nkm_find_best()
51 nkm->m = best_m; in ccu_nkm_find_best()
Dccu_nkmp.c28 unsigned long best_n = 0, best_k = 0, best_m = 0, best_p = 0; in ccu_nkmp_find_best() local
48 best_m = _m; in ccu_nkmp_find_best()
56 nkmp->m = best_m; in ccu_nkmp_find_best()
/drivers/video/fbdev/
Dasiliantfb.c116 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()
Dgbefb.c465 int pll_m, pll_n, pll_p, error, best_m, best_n, best_p, best_error; in compute_gbe_timing() local
480 best_n = best_m = best_p = 0; in compute_gbe_timing()
498 best_m = pll_m; in compute_gbe_timing()
504 if (!best_n || !best_m) in compute_gbe_timing()
508 (best_n << best_p) / best_m; in compute_gbe_timing()
514 timing->pll_m = best_m; in compute_gbe_timing()
Dtridentfb.c842 unsigned char best_m = 0, best_n = 0, best_k = 0; in set_vclk() local
856 best_m = m; in set_vclk()
865 lo = best_n | (best_m << 7); in set_vclk()
866 hi = (best_m >> 1) | (best_k << 4); in set_vclk()
869 hi = best_m | (best_k << 6); in set_vclk()
Dtdfxfb.c290 int m, n, k, best_m, best_n, best_k, best_error; in do_calc_pll() local
294 best_n = best_m = best_k = 0; in do_calc_pll()
322 best_m = m; in do_calc_pll()
330 m = best_m; in do_calc_pll()
Dsstfb.c294 int best_m = -1; in sst_calc_pll() local
313 best_m = m; in sst_calc_pll()
323 t->m = best_m; in sst_calc_pll()
/drivers/clk/sunxi/
Dclk-sun4i-tcon-ch1.c112 u8 best_m = 0, m; in tcon_ch1_calc_divider() local
129 best_m = m; in tcon_ch1_calc_divider()
136 *div = best_m; in tcon_ch1_calc_divider()
/drivers/gpu/drm/i2c/
Dch7006_mode.c262 int m, best_m = 0; in ch7006_setup_pll() local
273 best_m = m; in ch7006_setup_pll()
279 bitf(CH7006_PLLOV_M_8, best_m); in ch7006_setup_pll()
281 regs[CH7006_PLLM] = bitf(CH7006_PLLM_0, best_m); in ch7006_setup_pll()
290 best_n, best_m, best_freq, best_n < 108); in ch7006_setup_pll()
/drivers/clk/
Dclk-axi-clkgen.c107 unsigned int *best_d, unsigned int *best_m, unsigned int *best_dout) in axi_clkgen_calc_params() argument
118 *best_m = 0; in axi_clkgen_calc_params()
140 *best_m = m; in axi_clkgen_calc_params()
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk20a.c109 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()
/drivers/video/fbdev/savage/
Dsavagefb_driver.c422 unsigned char n1, n2, best_n1=16+2, best_n2=2, best_m=125+2; in SavageCalcClock() local
449 best_m = m; in SavageCalcClock()
459 *mdiv = best_m - 2; in SavageCalcClock()
470 unsigned char best_n1 = 16+2, best_n2 = 2, best_m = 125+2; in common_calc_clock() local
487 best_m = m; in common_calc_clock()
500 *mdiv = best_m - 2; in common_calc_clock()
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c563 u16 _m, uninitialized_var(best_m); in exynos_dsi_pll_find_pms()
592 best_m = _m; in exynos_dsi_pll_find_pms()
602 *m = best_m; in exynos_dsi_pll_find_pms()