Home
last modified time | relevance | path

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

/linux/drivers/clk/sunxi-ng/
H A Dccu_nkm.c39 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best_with_parent_adj() local
58 best_n = _n; in ccu_nkm_find_best_with_parent_adj()
66 nkm->n = best_n; in ccu_nkm_find_best_with_parent_adj()
79 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best() local
94 best_n = _n; in ccu_nkm_find_best()
102 nkm->n = best_n; in ccu_nkm_find_best()
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_nm.c34 unsigned long best_n = 0, best_m = 0; in ccu_nm_find_best() local
44 best_n = _n; in ccu_nm_find_best()
50 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()
/linux/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()
/linux/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()
/linux/drivers/video/fbdev/
H A Dasiliantfb.c116 best_n = 0xffffffff; in asiliant_calc_dclk2() local
144 best_n = n; in asiliant_calc_dclk2()
156 best_n = n; in asiliant_calc_dclk2()
167 *dclk2_n = best_n - 2; in asiliant_calc_dclk2()
H A Dgbefb.c457 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()
491 best_n = pll_n; 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()
507 timing->pll_n = best_n; in compute_gbe_timing()
H A Dsstfb.c295 int best_n = -1; in sst_calc_pll() local
314 best_n = n; in sst_calc_pll()
321 if (best_n == -1) /* unlikely, but who knows ? */ in sst_calc_pll()
324 t->n = best_n; in sst_calc_pll()
H A 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()
321 best_n = n; in do_calc_pll()
329 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()
/linux/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()
/linux/drivers/clk/meson/
H A Dclk-pll.c217 unsigned int *best_n, in meson_clk_get_pll_settings() argument
234 *best_n = n; in meson_clk_get_pll_settings()
/linux/drivers/gpu/drm/bridge/imx/
H A Dimx93-mipi-dsi.c229 unsigned int min_n, max_n, n, best_n = UINT_MAX; in dphy_pll_get_configure_from_opts() local
276 best_n = n; in dphy_pll_get_configure_from_opts()
285 cfg->n = best_n; in dphy_pll_get_configure_from_opts()
/linux/drivers/gpu/drm/kmb/
H A Dkmb_dsi.c866 u32 best_n = 0, best_m = 0; in mipi_tx_pll_setup() local
921 best_n = n; in mipi_tx_pll_setup()
936 dev_dbg(kmb_dsi->dev, "m = %d n = %d\n", best_m, best_n); in mipi_tx_pll_setup()
940 (best_n & 0x0f)); in mipi_tx_pll_setup()