Home
last modified time | relevance | path

Searched refs:best_diff (Results 1 – 11 of 11) 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
251 if (diff < best_diff) { in lcdc_pll_set()
252 best_diff = diff; in lcdc_pll_set()
269 if (diff < best_diff) { in lcdc_pll_set()
270 best_diff = diff; in lcdc_pll_set()
Dsunxi_dw_hdmi.c214 int best_n = 0, best_m = 0, best_div = 0, best_diff = 0x0FFFFFFF; in sunxi_dw_hdmi_pll_set() local
235 if (diff < best_diff) { in sunxi_dw_hdmi_pll_set()
236 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/tensorflow/tensorflow/lite/delegates/gpu/common/memory_management/
Dgreedy_by_size_assignment.cc82 size_t best_diff = kNotAssigned; in GreedyBySizeAssignment() local
98 if (diff >= rec->tensor_size && diff < best_diff) { in GreedyBySizeAssignment()
99 best_diff = diff; in GreedyBySizeAssignment()
/external/u-boot/arch/arm/mach-sunxi/
Dclock_sun6i.c222 unsigned best_k = 0, best_m = 0, best_n = 0, best_diff = 0xffffffff; in clock_set_mipi_pll() local
238 if (diff < best_diff) { in clock_set_mipi_pll()
239 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/skia/modules/skplaintexteditor/src/
Deditor.cpp269 float best_diff = ::fabsf(bounds[best_index].x() - x); in find_closest_x() local
272 if (d < best_diff) { in find_closest_x()
273 best_diff = d; in find_closest_x()
/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()