Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/clk/sunxi-ng/
Dccu_nkm.c25 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best_with_parent_adj() local
43 best_m = _m; in ccu_nkm_find_best_with_parent_adj()
51 nkm->m = best_m; in ccu_nkm_find_best_with_parent_adj()
62 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best() local
76 best_m = _m; in ccu_nkm_find_best()
84 nkm->m = best_m; in ccu_nkm_find_best()
Dccu_mp.c18 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()
Dccu_nkmp.c36 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()
Dccu_nm.c34 unsigned long best_n = 0, best_m = 0; in ccu_nm_find_best() local
45 best_m = _m; in ccu_nm_find_best()
51 nm->m = best_m; in ccu_nm_find_best()
/linux-6.6.21/drivers/gpu/drm/sun4i/
Dsun4i_hdmi_ddc_clk.c34 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()
Dsun8i_hdmi_phy_clk.c86 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()
Dsun4i_hdmi_tmds_clk.c34 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-6.6.21/drivers/video/fbdev/
Dasiliantfb.c115 unsigned best_m = 0xffffffff, in asiliant_calc_dclk2() local
145 best_m = m; in asiliant_calc_dclk2()
157 best_m = m; in asiliant_calc_dclk2()
162 if (best_m > 257) in asiliant_calc_dclk2()
163 best_m >>= 2; /* divide m by 4, and leave VCO loop divide at 4 */ in asiliant_calc_dclk2()
166 *dclk2_m = best_m - 2; in asiliant_calc_dclk2()
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()
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()
Dtridentfb.c841 unsigned char best_m = 0, best_n = 0, best_k = 0; in set_vclk() local
855 best_m = m; in set_vclk()
864 lo = best_n | (best_m << 7); in set_vclk()
865 hi = (best_m >> 1) | (best_k << 4); in set_vclk()
868 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.c296 int best_m = -1; in sst_calc_pll() local
315 best_m = m; in sst_calc_pll()
325 t->m = best_m; in sst_calc_pll()
/linux-6.6.21/drivers/clk/sunxi/
Dclk-sun4i-tcon-ch1.c104 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-6.6.21/drivers/gpu/drm/i2c/
Dch7006_mode.c261 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-6.6.21/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()
/linux-6.6.21/drivers/gpu/drm/bridge/
Dchipone-icn6211.c253 unsigned int best_p = 0, best_m = 0, best_s = 0; in chipone_configure_pll() local
317 best_m = m; in chipone_configure_pll()
328 best_p >> best_p_pot, best_p_pot, best_m, best_s + 1, in chipone_configure_pll()
330 (fin * best_m) / (best_p << (best_s + 1))); in chipone_configure_pll()
340 chipone_writeb(icn, PLL_INT(0), best_m); in chipone_configure_pll()
Dsamsung-dsim.c561 u16 _m, best_m; in samsung_dsim_pll_find_pms() local
590 best_m = _m; in samsung_dsim_pll_find_pms()
600 *m = best_m; in samsung_dsim_pll_find_pms()
/linux-6.6.21/drivers/clk/
Dclk-axi-clkgen.c127 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-6.6.21/drivers/clk/meson/
Dclk-pll.c216 unsigned int *best_m, in meson_clk_get_pll_settings() argument
233 *best_m = m; in meson_clk_get_pll_settings()
/linux-6.6.21/drivers/gpu/drm/kmb/
Dkmb_dsi.c866 u32 best_n = 0, best_m = 0; in mipi_tx_pll_setup() local
922 best_m = m; 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()
946 (best_m & 0x1f)); in mipi_tx_pll_setup()
952 ((best_m >> 5) & 0x1f) | PLL_FEEDBACK_DIVIDER_HIGH); in mipi_tx_pll_setup()
/linux-6.6.21/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()
/linux-6.6.21/drivers/leds/rgb/
Dleds-qcom-lpg.c274 unsigned int m, best_m = 0; in lpg_calc_freq() local
359 best_m = m; in lpg_calc_freq()
369 chan->pre_div_exp = best_m; in lpg_calc_freq()