Home
last modified time | relevance | path

Searched refs:best_n (Results 1 – 21 of 21) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/gpu/drm/sun4i/
H A Dsun4i_hdmi_ddc_clk.c34 u8 best_m = 0, best_n = 0, _m, _n; in sun4i_ddc_calc_divider() local
49 best_n = _n; in sun4i_ddc_calc_divider()
56 *n = best_n; in sun4i_ddc_calc_divider()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i2c/
H A Dch7006_mode.c260 int n, best_n = 0; in ch7006_setup_pll() local
271 best_n = n; in ch7006_setup_pll()
277 regs[CH7006_PLLOV] = bitf(CH7006_PLLOV_N_8, best_n) | in ch7006_setup_pll()
281 regs[CH7006_PLLN] = bitf(CH7006_PLLN_0, best_n); in ch7006_setup_pll()
283 if (best_n < 108) 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/sunxi/
H A Dsunxi_dw_hdmi.c214 int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF; in sunxi_dw_hdmi_pll_set() local
232 best_n = n; in sunxi_dw_hdmi_pll_set()
237 clock_set_pll3_factors(best_m, best_n); in sunxi_dw_hdmi_pll_set()
240 best_n, best_m, div); in sunxi_dw_hdmi_pll_set()
H A Dsunxi_display.c527 int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF; in sunxi_lcdc_pll_set() local
558 best_n = n; in sunxi_lcdc_pll_set()
574 best_n = n; in sunxi_lcdc_pll_set()
585 if (tcon == 0 && best_n == 0) { in sunxi_lcdc_pll_set()
598 clock_set_pll3(best_n * 3000000); in sunxi_lcdc_pll_set()
602 best_double + 1, best_n, best_m); in sunxi_lcdc_pll_set()
/OK3568_Linux_fs/kernel/drivers/clk/sunxi-ng/
H A Dccu_nk.c22 unsigned int best_k = 0, best_n = 0; in ccu_nk_find_best() local
35 best_n = _n; in ccu_nk_find_best()
41 nk->n = best_n; in ccu_nk_find_best()
H A Dccu_nkm.c23 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best() local
37 best_n = _n; in ccu_nkm_find_best()
45 nkm->n = best_n; in ccu_nkm_find_best()
H A Dccu_nm.c34 unsigned long best_n = 0, best_m = 0; in ccu_nm_find_best() local
47 best_n = _n; in ccu_nm_find_best()
53 nm->n = best_n; in ccu_nm_find_best()
H A Dccu_nkmp.c36 unsigned long best_n = 0, best_k = 0, best_m = 0, best_p = 0; in ccu_nkmp_find_best() local
54 best_n = _n; in ccu_nkmp_find_best()
64 nkmp->n = best_n; in ccu_nkmp_find_best()
/OK3568_Linux_fs/u-boot/arch/arm/mach-sunxi/
H A Dclock_sun6i.c219 unsigned best_k = 0, best_m = 0, best_n = 0, best_diff = 0xffffffff; in clock_set_mipi_pll() local
239 best_n = n; in clock_set_mipi_pll()
249 CCM_MIPI_PLL_CTRL_N(best_n) | CCM_MIPI_PLL_CTRL_K(best_k) | in clock_set_mipi_pll()
/OK3568_Linux_fs/u-boot/arch/arm/mach-tegra/tegra124/
H A Dclock.c1069 u32 diff, best_diff, best_m = 0, best_n = 0, best_p; in clock_set_display_rate() local
1109 best_n = divn; in clock_set_display_rate()
1112 if (best_n < 50) in clock_set_display_rate()
1114 else if (best_n < 300) in clock_set_display_rate()
1116 else if (best_n < 600) in clock_set_display_rate()
1124 rounded_rate = (ref / best_m * best_n) >> best_p; in clock_set_display_rate()
1128 __func__, rounded_rate, ref, best_m, best_n, best_p, cpcon); in clock_set_display_rate()
1133 clock_set_rate(CLOCK_ID_DISPLAY, best_n, best_m, best_p, cpcon); in clock_set_display_rate()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/
H A Dasiliantfb.c117 best_n = 0xffffffff; in asiliant_calc_dclk2() local
145 best_n = n; in asiliant_calc_dclk2()
157 best_n = n; in asiliant_calc_dclk2()
168 *dclk2_n = best_n - 2; in asiliant_calc_dclk2()
H A Dgbefb.c459 int pll_m, pll_n, pll_p, error, best_m, best_n, best_p, best_error; in compute_gbe_timing() local
474 best_n = best_m = best_p = 0; in compute_gbe_timing()
493 best_n = pll_n; in compute_gbe_timing()
498 if (!best_n || !best_m) in compute_gbe_timing()
502 (best_n << best_p) / best_m; in compute_gbe_timing()
509 timing->pll_n = best_n; in compute_gbe_timing()
H A Dsstfb.c294 int best_n = -1; in sst_calc_pll() local
313 best_n = n; in sst_calc_pll()
320 if (best_n == -1) /* unlikely, but who knows ? */ in sst_calc_pll()
323 t->n = best_n; in sst_calc_pll()
H A Dtdfxfb.c291 int m, n, k, best_m, best_n, best_k, best_error; in do_calc_pll() local
295 best_n = best_m = best_k = 0; in do_calc_pll()
322 best_n = n; in do_calc_pll()
330 n = best_n; in do_calc_pll()
H A Dtridentfb.c840 unsigned char best_m = 0, best_n = 0, best_k = 0; in set_vclk() local
853 best_n = n; in set_vclk()
863 lo = best_n | (best_m << 7); in set_vclk()
866 lo = best_n; in set_vclk()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgk20a.c109 u32 best_m, best_n; in gk20a_pllg_calc_mnp() local
120 best_n = clk->params->min_n; in gk20a_pllg_calc_mnp()
178 best_n = n; in gk20a_pllg_calc_mnp()
198 pll->n = best_n; in gk20a_pllg_calc_mnp()
/OK3568_Linux_fs/external/xserver/hw/xfree86/ramdac/
H A DTI.c57 unsigned long best_m = 0, best_n = 0; in TIramdacCalculateMNPForClock() local
104 best_n = n; in TIramdacCalculateMNPForClock()
110 *rN = 65 - best_n; in TIramdacCalculateMNPForClock()
114 VCO = 8.0 * IntRef * best_m / best_n; in TIramdacCalculateMNPForClock()
/OK3568_Linux_fs/kernel/drivers/clk/meson/
H A Dclk-pll.c218 unsigned int *best_n, in meson_clk_get_pll_settings() argument
235 *best_n = n; in meson_clk_get_pll_settings()
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Ddw_hdmi.c1846 unsigned int best_n = 0; in hdmi_compute_n() local
1859 best_n = n; in hdmi_compute_n()
1861 best_n_distance = abs(best_n - ideal_n); in hdmi_compute_n()
1872 return best_n; in hdmi_compute_n()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bridge/synopsys/
H A Ddw-hdmi-qp.c480 unsigned int best_n = 0; in hdmi_compute_n() local
493 best_n = n; in hdmi_compute_n()
495 best_n_distance = abs(best_n - ideal_n); in hdmi_compute_n()
506 return best_n; in hdmi_compute_n()
H A Ddw-hdmi.c993 unsigned int best_n = 0; in hdmi_compute_n() local
1006 best_n = n; in hdmi_compute_n()
1008 best_n_distance = abs(best_n - ideal_n); in hdmi_compute_n()
1019 return best_n; in hdmi_compute_n()