Searched refs:diff (Results 1 - 25 of 53) sorted by relevance

123

/u-boot/arch/powerpc/lib/
H A Dextable.c37 long diff; local
39 diff = first->insn - value;
40 if (diff == 0)
/u-boot/post/drivers/
H A Drtc.c31 static int rtc_post_skip (ulong * diff) argument
51 *diff = start2 - start1;
71 ulong diff; local
87 if (rtc_post_skip (&diff) != 0) {
94 if (rtc_post_skip (&diff) != 0) {
100 if (diff < 950 || diff > 1050) {
109 if (rtc_post_skip (&diff) != 0) {
131 if (rtc_post_skip (&diff) != 0) {
163 if (rtc_post_skip (&diff) !
[all...]
/u-boot/test/
H A Dtime_ut.c15 ulong base, start, next, diff; local
37 diff = get_timer(base);
38 if (diff != iter && diff != iter + 1) {
39 printf("%s: expected get_timer(base) to match elapsed time: diff=%lu, expected=%d\n",
40 __func__, diff, iter);
/u-boot/board/freescale/common/
H A Dics307_clk.c55 unsigned long tmp_out, diff, result = 0; local
71 diff = max(out_freq, tmp_out) - min(out_freq, tmp_out);
77 if (diff * 1000 / out_freq > 1)
/u-boot/arch/arm/mach-at91/arm920t/
H A Dtimer.c93 signed long diff; local
103 diff = endtime - now;
104 } while (diff >= 0);
H A Dclock.c44 unsigned i, div = 0, mul = 0, diff = 1 << 30; local
75 if (diff > diff1) {
76 diff = diff1;
79 if (diff == 0)
83 if (i == 256 && diff > (out_freq >> 5))
/u-boot/drivers/video/sunxi/
H A Dlcdc.c216 int value, n, m, min_m, max_m, diff, step; local
252 diff = dotclock - value;
253 if (diff < best_diff) {
254 best_diff = diff;
270 diff = dotclock - value;
271 if (diff < best_diff) {
272 best_diff = diff;
/u-boot/arch/arm/mach-at91/arm926ejs/
H A Dclock.c44 unsigned i, div = 0, mul = 0, diff = 1 << 30; local
83 if (diff > diff1) {
84 diff = diff1;
87 if (diff == 0)
91 if (i == 256 && diff > (out_freq >> 5))
/u-boot/scripts/
H A Dcoccicheck112 FLAGS="--no-show-diff $FLAGS"
234 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || \
238 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || exit 1
241 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff && \
H A Dobjdiff20 # $ ./scripts/objdiff diff COMMIT_A COMMIT_B
40 echo >&2 " diff <commitA> <commitB>"
65 # remove addresses for a cleaner diff
66 # http://dummdida.tumblr.com/post/60924060451/binary-diff-between-libc-from-scientificlinux-and
107 DIFF="`which diff`"
150 diff)
/u-boot/drivers/power/regulator/
H A Dpwm_regulator.c55 int diff = max_uV - min_uV; local
57 return ((req_uV * 100) - (min_uV * 100)) / diff;
/u-boot/lib/zstd/common/
H A Dzstd_internal.h210 ptrdiff_t diff = (BYTE*)dst - (const BYTE*)src; local
215 if (ovtype == ZSTD_overlap_src_before_dst && diff < WILDCOPY_VECLEN) {
221 assert(diff >= WILDCOPY_VECLEN || diff <= -WILDCOPY_VECLEN);
/u-boot/test/py/tests/
H A Dtest_trace.py297 diff = abs(trace_time - dm_f_time)
299 assert diff / dm_f_time < 0.01
305 diff = abs(fg_time - dm_f_time)
306 assert diff / dm_f_time < 0.3
/u-boot/drivers/serial/
H A Dserial_ar933x.c71 int diff; local
81 diff = abs(baudrate - baud);
82 if (diff < min_diff) {
83 min_diff = diff;
/u-boot/arch/arm/mach-sunxi/
H A Dclock_sun6i.c248 unsigned int k, m, n, value, diff; local
264 diff = clk - value;
265 if (diff < best_diff) {
266 best_diff = diff;
271 if (diff == 0)
/u-boot/drivers/mtd/nand/raw/
H A Ddavinci_nand.c234 u_int32_t diff = ecc_calc ^ ecc_nand; local
236 if (diff) {
237 if ((((diff >> 12) ^ diff) & 0xfff) == 0xfff) {
239 if ((diff >> (12 + 3)) < this->ecc.size) {
240 uint8_t find_bit = 1 << ((diff >> 12) & 7);
241 uint32_t find_byte = diff >> (12 + 3);
251 } else if (!(diff & (diff - 1))) {
/u-boot/tools/buildman/
H A Dbuilder.py1026 diff = new.get(name, 0) - old.get(name, 0)
1027 if diff > 0:
1028 grow, up = grow + 1, up + diff
1029 elif diff < 0:
1030 shrink, down = shrink + 1, down - diff
1031 delta.append([diff, name])
1045 for diff, name in delta:
1046 if diff:
1047 color = self.col.RED if diff > 0 else self.col.GREEN
1049 old.get(name, '-'), new.get(name,'-'), diff)
[all...]
/u-boot/drivers/clk/ti/
H A Dclk-k3.c257 ulong diff, new_diff; local
292 diff = abs(new_rate - rate / div);
294 debug("%s: clk=%s, div=%d, rate=%u, new_rate=%u, diff=%u\n", __func__,
295 clkp->dev->name, div, (u32)rate, (u32)new_rate, (u32)diff);
303 if (diff > rate / div / 2) {
344 if (diff > rate / div / 20) {
351 if (new_diff > diff) {
354 debug("%s: Using better rate %lu that gives diff %lu\n",
/u-boot/drivers/power/
H A Dtps6586x.c140 int diff = voltage < target ? step : -step; local
143 voltage += diff;
/u-boot/drivers/fpga/
H A Dzynqmppl.c179 ulong diff; local
187 diff = (ulong)buf_start - (ulong)buf;
188 if (diff) {
189 printf("%s: Bitstream is not validated yet (diff %lx)\n",
190 __func__, diff);
/u-boot/arch/arm/mach-nexell/
H A Dtimer.c199 /* move stamp fordward with absolute diff ticks */
264 signed long diff; local
284 diff = endtime - now;
285 } while (diff >= 0);
/u-boot/drivers/clk/
H A Dclk-cdce9xx.c180 u32 diff; local
188 diff = rate - parent_rate / pdiv;
190 if (rate - parent_rate / (pdiv + 1) < diff)
/u-boot/cmd/
H A Defi.c70 int64_t diff = desc1->physical_start - desc2->physical_start; local
76 return diff < 0 ? -1 : diff > 0 ? 1 : 0;
/u-boot/net/
H A Dlink_local.c225 unsigned diff = deadline_ms - MONOTONIC_MS(); local
226 if ((int)(diff) < 0) {
234 timeout_ms = diff | 1; /* never 0 */
/u-boot/drivers/spi/
H A Dcf_spi.c237 int i, j, pbrcnt, brcnt, diff, tmp, dbr = 0; local
284 diff = tmp - cfspi->baudrate;
286 diff = cfspi->baudrate - tmp;
288 if (diff < bestmatch) {
289 bestmatch = diff;

Completed in 168 milliseconds

123