Home
last modified time | relevance | path

Searched refs:best_diff (Results 1 – 9 of 9) sorted by relevance

/external/u-boot/drivers/clk/at91/
Dclk-usb.c51 int tmp_diff, best_diff = -1; in at91_usb_clk_set_rate() local
71 if (best_diff < 0 || best_diff > tmp_diff) { in at91_usb_clk_set_rate()
73 best_diff = tmp_diff; in at91_usb_clk_set_rate()
80 if (!best_diff || tmp_rate < rate) in at91_usb_clk_set_rate()
84 if (!best_diff) in at91_usb_clk_set_rate()
Dclk-generated.c83 int tmp_diff, best_diff = -1; in generic_clk_set_rate() local
103 if (best_diff < 0 || best_diff > tmp_diff) { in generic_clk_set_rate()
105 best_diff = tmp_diff; in generic_clk_set_rate()
113 if (!best_diff || tmp_rate < rate) in generic_clk_set_rate()
117 if (!best_diff) in generic_clk_set_rate()
/external/u-boot/drivers/video/sunxi/
Dlcdc.c215 int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF; in lcdc_pll_set() local
245 if (diff < best_diff) { in lcdc_pll_set()
246 best_diff = diff; in lcdc_pll_set()
263 if (diff < best_diff) { in lcdc_pll_set()
264 best_diff = diff; in lcdc_pll_set()
Dsunxi_dw_hdmi.c213 int best_n = 0, best_m = 0, best_diff = 0x0FFFFFFF; in sunxi_dw_hdmi_pll_set() local
228 if (diff < best_diff) { in sunxi_dw_hdmi_pll_set()
229 best_diff = diff; in sunxi_dw_hdmi_pll_set()
/external/webp/src/enc/
Dpredictor_enc.c332 float best_diff = MAX_DIFF_COST; in GetBestPredictorForTile() local
391 if (cur_diff < best_diff) { in GetBestPredictorForTile()
395 best_diff = cur_diff; in GetBestPredictorForTile()
570 float best_diff = GetPredictionCostCrossColorRed( in GetBestGreenToRed() local
584 if (cur_diff < best_diff) { in GetBestGreenToRed()
585 best_diff = cur_diff; in GetBestGreenToRed()
641 float best_diff = GetPredictionCostCrossColorBlue( in GetBestGreenRedToBlue() local
654 if (cur_diff < best_diff) { in GetBestGreenRedToBlue()
655 best_diff = cur_diff; in GetBestGreenRedToBlue()
/external/u-boot/arch/arm/mach-sunxi/
Dclock_sun6i.c218 unsigned best_k = 0, best_m = 0, best_n = 0, best_diff = 0xffffffff; in clock_set_mipi_pll() local
234 if (diff < best_diff) { in clock_set_mipi_pll()
235 best_diff = diff; in clock_set_mipi_pll()
/external/u-boot/drivers/clk/
Dclk_stm32f.c502 u32 best_div, best_diff, diff; in stm32_set_rate() local
540 best_diff = ULONG_MAX; in stm32_set_rate()
563 if (diff < best_diff) { in stm32_set_rate()
564 best_diff = diff; in stm32_set_rate()
/external/u-boot/arch/arm/mach-tegra/tegra124/
Dclock.c1068 u32 diff, best_diff, best_m = 0, best_n = 0, best_p; in clock_set_display_rate() local
1084 best_diff = vco; in clock_set_display_rate()
1086 for (divm = 1; divm < max_m && best_diff; divm++) { in clock_set_display_rate()
1103 if (diff >= best_diff) in clock_set_display_rate()
1106 best_diff = diff; in clock_set_display_rate()
1120 if (best_diff) { in clock_set_display_rate()
1122 __func__, frequency, best_diff); in clock_set_display_rate()
/external/u-boot/drivers/usb/musb-new/
Dmusb_host.c1788 int best_diff; in musb_schedule() local
1812 best_diff = 4096; in musb_schedule()
1832 if (diff >= 0 && best_diff > diff) { in musb_schedule()
1854 best_diff = diff; in musb_schedule()