/openbmc/u-boot/drivers/video/sunxi/ |
H A D | lcdc.c | 215 int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF; in lcdc_pll_set() local 254 best_n = n; in lcdc_pll_set() 272 best_n = n; in lcdc_pll_set() 283 if (tcon == 0 && best_n == 0) { in lcdc_pll_set() 296 clock_set_pll3(best_n * step * 1000); in lcdc_pll_set() 300 best_double + 1, step, best_n, best_m); in lcdc_pll_set()
|
H A D | sunxi_dw_hdmi.c | 213 int best_n = 0, best_m = 0, best_div = 0, best_diff = 0x0FFFFFFF; in sunxi_dw_hdmi_pll_set() local 237 best_n = n; in sunxi_dw_hdmi_pll_set() 246 clock_set_pll3_factors(best_m, best_n); in sunxi_dw_hdmi_pll_set() 249 best_n, best_m, best_div); in sunxi_dw_hdmi_pll_set()
|
/openbmc/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_nkm.c | 25 unsigned long best_n = 0, best_k = 0, best_m = 0; in ccu_nkm_find_best_with_parent_adj() local 41 best_n = _n; in ccu_nkm_find_best_with_parent_adj() 49 nkm->n = best_n; 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 74 best_n = _n; in ccu_nkm_find_best() 82 nkm->n = best_n; in ccu_nkm_find_best()
|
H A D | ccu_nk.c | 22 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 D | ccu_nm.c | 34 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 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 54 best_n = _n; in ccu_nkmp_find_best() 64 nkmp->n = best_n; in ccu_nkmp_find_best()
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_ddc_clk.c | 34 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()
|
/openbmc/linux/drivers/gpu/drm/i2c/ |
H A D | ch7006_mode.c | 260 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()
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | clock_sun6i.c | 222 unsigned best_k = 0, best_m = 0, best_n = 0, best_diff = 0xffffffff; in clock_set_mipi_pll() local 242 best_n = n; in clock_set_mipi_pll() 252 CCM_MIPI_PLL_CTRL_N(best_n) | CCM_MIPI_PLL_CTRL_K(best_k) | in clock_set_mipi_pll()
|
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/ |
H A D | clock.c | 1068 u32 diff, best_diff, best_m = 0, best_n = 0, best_p; in clock_set_display_rate() local 1108 best_n = divn; in clock_set_display_rate() 1111 if (best_n < 50) in clock_set_display_rate() 1113 else if (best_n < 300) in clock_set_display_rate() 1115 else if (best_n < 600) in clock_set_display_rate() 1123 rounded_rate = (ref / best_m * best_n) >> best_p; in clock_set_display_rate() 1127 __func__, rounded_rate, ref, best_m, best_n, best_p, cpcon); in clock_set_display_rate() 1132 clock_set_rate(CLOCK_ID_DISPLAY, best_n, best_m, best_p, cpcon); in clock_set_display_rate()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | asiliantfb.c | 116 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 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() 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 D | sstfb.c | 295 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 D | tdfxfb.c | 290 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 D | tridentfb.c | 841 unsigned char best_m = 0, best_n = 0, best_k = 0; in set_vclk() local 854 best_n = n; in set_vclk() 864 lo = best_n | (best_m << 7); in set_vclk() 867 lo = best_n; in set_vclk()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk20a.c | 109 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()
|
/openbmc/linux/drivers/clk/meson/ |
H A D | clk-pll.c | 217 unsigned int *best_n, in meson_clk_get_pll_settings() argument 234 *best_n = n; in meson_clk_get_pll_settings()
|
/openbmc/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_dsi.c | 866 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()
|