Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 80) sorted by relevance

1234

/Zephyr-latest/tests/boards/native_sim/rtc/src/
Dmain.c54 int64_t diff, error; in ZTEST() local
91 diff = end_time - start_time; in ZTEST()
92 error = diff / 1000 - WAIT_TIME / acc_ratio; in ZTEST()
98 diff / 1000.0, in ZTEST()
109 diff = native_rtc_gettime_us(RTC_CLOCK_PSEUDOHOSTREALTIME) - in ZTEST()
111 error = diff - WAIT_TIME * 1000; in ZTEST()
116 diff / 1000.0, in ZTEST()
123 diff = native_rtc_gettime_us(RTC_CLOCK_BOOT) - in ZTEST()
126 zassert_true(diff == WAIT_TIME * 1000, in ZTEST()
129 diff = native_rtc_gettime_us(RTC_CLOCK_REALTIME) - in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/ptp/
Dbtca.c23 int diff = memcmp(&p1->clk_id, &p2->clk_id, sizeof(p1->clk_id)); in btca_port_id_cmp() local
25 if (diff == 0) { in btca_port_id_cmp()
26 diff = p1->port_number - p2->port_number; in btca_port_id_cmp()
29 return diff; in btca_port_id_cmp()
34 int diff; in btca_ds_cmp2() local
43 diff = btca_port_id_cmp(&a->receiver, &a->sender); in btca_ds_cmp2()
44 if (diff > 0) { in btca_ds_cmp2()
47 if (diff < 0) { in btca_ds_cmp2()
54 diff = btca_port_id_cmp(&b->receiver, &b->sender); in btca_ds_cmp2()
55 if (diff > 0) { in btca_ds_cmp2()
[all …]
/Zephyr-latest/tests/subsys/portability/cmsis_rtos_v1/src/
Dkernel_apis.c57 uint32_t start_time, stop_time, diff, max, min; in ZTEST() local
63 diff = (uint32_t)k_cyc_to_ns_floor64(stop_time - in ZTEST()
69 zassert_true(diff <= max && diff >= min, in ZTEST()
71 start_time, stop_time, diff, WAIT_TIME_US); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dsaleae_logic2.py55 diff = np.diff(data)
57 mean = np.mean(diff)
58 std = np.std(diff)
59 var = np.var(diff)
60 minimum = np.min(diff)
61 maximum = np.max(diff)
65 'max': maximum, 'total_time': total_time}, len(diff)
/Zephyr-latest/tests/kernel/threads/no-multithreading/src/
Dmain.c28 int64_t diff = k_uptime_get() - now; in ZTEST() local
30 zassert_within(diff, 10, 2); in ZTEST()
62 int64_t now, diff; in ZTEST() local
73 diff = k_uptime_get() - now; in ZTEST()
75 zassert_within(diff, 10, 2, "Unexpected time passed: %d ms", (int)diff); in ZTEST()
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_os.h82 int32_t diff = k_uptime_get_32() - last_activity; in mqtt_elapsed_time_in_ms_get() local
84 if (diff < 0) { in mqtt_elapsed_time_in_ms_get()
88 return diff; in mqtt_elapsed_time_in_ms_get()
/Zephyr-latest/tests/kernel/timer/timer_monotonic/src/
Dmain.c55 int32_t diff; in ZTEST() local
70 diff = t_now - t_last; in ZTEST()
72 "i = %u\n", diff, t_last, t_now, i); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/
Djitter_drift.c163 uint64_t diff = periodic_diff(periodic_data[i + 1], periodic_data[i]); in do_test_using() local
165 if (diff == 0) { in do_test_using()
168 total_cycles += diff; in do_test_using()
169 min_cyc = MIN(diff, min_cyc); in do_test_using()
170 max_cyc = MAX(diff, max_cyc); in do_test_using()
194 uint64_t diff = periodic_diff(periodic_data[i + 1], periodic_data[i]); in do_test_using() local
196 if (diff != 0) { in do_test_using()
197 double mean_cyc_diff = (double)diff - mean_cyc; in do_test_using()
198 double mean_us_diff = cycles_to_us(diff) - mean_us; in do_test_using()
/Zephyr-latest/tests/boards/intel_adsp/smoke/src/
Dmain.c21 uint32_t cyc0, cyc1, hz, diff; in ZTEST() local
41 diff = abs(hz - CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC); in ZTEST()
42 zassert_true((hz / MIN(1, diff)) > 100, "clock rate wrong"); in ZTEST()
/Zephyr-latest/drivers/input/
Dinput_adc_keys.c74 uint32_t diff, closest_diff = UINT32_MAX; in adc_keys_process() local
86 diff = abs(sample_mv - cfg->code_cfg[i].press_mv); in adc_keys_process()
87 if (diff < closest_diff) { in adc_keys_process()
88 closest_diff = diff; in adc_keys_process()
93 diff = abs(sample_mv - cfg->keyup_mv); in adc_keys_process()
94 if (diff < closest_diff) { in adc_keys_process()
95 closest_diff = diff; in adc_keys_process()
/Zephyr-latest/
D.gitattributes7 # Tell git to not diff certain files
8 *.svg -diff
/Zephyr-latest/scripts/footprint/
Dfpdiff.py60 diff = n.size - node.size
61 if diff == 0:
64 if diff < 0:
/Zephyr-latest/drivers/clock_control/
Dnrf_clock_calibration.c209 int16_t diff = 0; in measure_temperature() local
219 diff = abs(temperature - prev_temperature); in measure_temperature()
223 (diff >= CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_TEMP_DIFF)) { in measure_temperature()
234 started ? "started" : "skipped", diff); in measure_temperature()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Dtester.c43 int64_t new_time, diff, time_diff_ms, rpa_timeout_ms; in scanned_cb() local
54 diff = time_diff_ms - rpa_timeout_ms; in scanned_cb()
56 diff = rpa_timeout_ms - time_diff_ms; in scanned_cb()
59 if (diff > rpa_timeout_ms * 0.10) { in scanned_cb()
/Zephyr-latest/samples/boards/nordic/nrf_led_matrix/src/
Dmain.c136 uint8_t diff; in update_through_framebuffer() local
145 diff = dimmed > column in update_through_framebuffer()
152 diff = dimmed > row in update_through_framebuffer()
161 diff = 2 * dimmed > dist in update_through_framebuffer()
168 MIN_BRIGHTNESS + diff * step; in update_through_framebuffer()
/Zephyr-latest/subsys/net/lib/trickle/
Dtrickle.c91 uint32_t diff = get_end(trickle) - now; in reschedule() local
93 NET_DBG("now %d end in %d", now, diff); in reschedule()
96 if ((int32_t)diff < 0) { in reschedule()
97 diff = 0U; in reschedule()
103 k_work_reschedule(&trickle->timer, K_MSEC(diff)); in reschedule()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll.c631 uint32_t diff; local
634 diff = ticker_ticks_diff_get(ticks_now, ticks_at_event);
635 if (diff & BIT(HAL_TICKER_CNTR_MSBIT)) {
639 diff += HAL_TICKER_CNTR_CMP_OFFSET_MIN;
640 if (diff > HAL_TICKER_US_TO_TICKS(EVENT_OVERHEAD_START_US)) {
647 return diff;
838 uint32_t diff; local
841 diff = ticker_ticks_diff_get(ticks_at_preempt_min,
843 if (is_resume || ((diff & BIT(HAL_TICKER_CNTR_MSBIT)) == 0U)) {
862 diff = ticker_ticks_diff_get(ticks_at_preempt_next,
[all …]
/Zephyr-latest/scripts/
Dcoccicheck209 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || \
213 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff || exit 1
216 $FLAGS --cocci-file $COCCI $OPT $OPTIONS --no-show-diff && \
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c195 int64_t diff = expected_rt - real_time; in hwtimer_tick_timer_reached() local
205 hw_timer_tick_timer/1000U, diff, es, rs); in hwtimer_tick_timer_reached()
208 if (diff > 0) { /* we need to slow down */ in hwtimer_tick_timer_reached()
212 requested_time.tv_sec = diff / 1e6; in hwtimer_tick_timer_reached()
213 requested_time.tv_nsec = (diff - in hwtimer_tick_timer_reached()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c185 int64_t diff = expected_rt - real_time; in hwtimer_tick_timer_reached() local
195 hw_timer_tick_timer/1000U, diff, es, rs); in hwtimer_tick_timer_reached()
198 if (diff > 0) { /* we need to slow down */ in hwtimer_tick_timer_reached()
202 requested_time.tv_sec = diff / 1e6; in hwtimer_tick_timer_reached()
203 requested_time.tv_nsec = (diff - in hwtimer_tick_timer_reached()
/Zephyr-latest/boards/qemu/cortex_m0/
Dnrf_timer_timer.c118 uint32_t diff; in set_absolute_ticks() local
121 diff = counter_sub(abs_val, t); in set_absolute_ticks()
122 if (diff == 1U) { in set_absolute_ticks()
/Zephyr-latest/scripts/checkpatch/
Dcheck_known_checkpatch_issues.sh80 diff_file=/tmp/checkpatch.results.diff-${suffix}
81 diff -u ${known_checkpatch_issues} ${checkpatch_issues} > ${diff_file}
/Zephyr-latest/tests/kernel/fifo/fifo_timeout/src/
Dmain.c103 uint32_t stop_time, diff; in is_timeout_in_range() local
106 diff = (uint32_t)k_cyc_to_ns_floor64(stop_time - in is_timeout_in_range()
108 diff = diff / USEC_PER_MSEC; in is_timeout_in_range()
109 return timeout <= diff; in is_timeout_in_range()
/Zephyr-latest/tests/benchmarks/wait_queues/src/
Dmain.c150 uint64_t diff; in compute_and_report_stats() local
173 diff = (average > tmp) ? (average - tmp) : (tmp - average); in compute_and_report_stats()
175 std_dev += (diff * diff); in compute_and_report_stats()
/Zephyr-latest/scripts/tracing/
Dparse_ctf.py114 diff = tout - tin
115 th['runtime'] = diff

1234