Home
last modified time | relevance | path

Searched full:diff (Results 1 – 25 of 106) sorted by relevance

12345

/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/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/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()
70 "start %d stop %d (diff %d) wait %d\n", in ZTEST()
71 start_time, stop_time, diff, WAIT_TIME_US); in ZTEST()
/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/scripts/footprint/
Dfpdiff.py6 # A script to diff between two ram or rom reports generated by
60 diff = n.size - node.size
61 if diff == 0:
64 if diff < 0:
65 print(f"{n.identifier} -> {Fore.GREEN}{diff}{Fore.RESET}")
67 print(f"{n.identifier} -> {Fore.RED}+{diff}{Fore.RESET}")
/Zephyr-latest/
D.gitattributes7 # Tell git to not diff certain files
8 *.svg -diff
D.codecov.yml29 layout: "reach, diff, flags, files, footer"
/Zephyr-latest/tests/kernel/timer/timer_monotonic/src/
Dmain.c55 int32_t diff; in ZTEST() local
70 diff = t_now - t_last; in ZTEST()
71 TC_PRINT("diff = %d (t_last = %u : t_now = %u);" in ZTEST()
72 "i = %u\n", diff, t_last, t_now, i); 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()
99 LOG_DBG("sample=%d mV, closest=%d mV, diff=%d mV", sample_mv, closest_mv, closest_diff); in adc_keys_process()
/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_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/scripts/checkpatch/
Dcheck_known_checkpatch_issues.sh14 # -q is the quiet mode (don't display the diff on stdout)
80 diff_file=/tmp/checkpatch.results.diff-${suffix}
81 diff -u ${known_checkpatch_issues} ${checkpatch_issues} > ${diff_file}
87 # find all lines that starts with '+' but not '+commit' or '+++ diff'
/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/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()
233 LOG_DBG("Calibration %s. Temperature diff: %d (in 0.25'C units).", in measure_temperature()
234 started ? "started" : "skipped", diff); in measure_temperature()
/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/dts/bindings/comparator/
Dnordic,nrf-comp.yaml51 main-mode = "DIFF";
68 - "DIFF"
/Zephyr-latest/tests/drivers/build_all/comparator/nrf_comp/
Ddiff.overlay8 main-mode = "DIFF";
/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/tests/drivers/build_all/comparator/
Dtestcase.yaml7 drivers.build_all.comparator.nrf_comp.diff:
9 - DTC_OVERLAY_FILE="nrf_comp/diff.overlay"
/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/subsys/net/lib/lwm2m/
Dlwm2m_senml_cbor.patch1 diff --git a/subsys/net/lib/lwm2m/lwm2m_senml_cbor_decode.c b/subsys/net/lib/lwm2m/lwm2m_senml_cbor…
43 diff --git a/subsys/net/lib/lwm2m/lwm2m_senml_cbor_decode.h b/subsys/net/lib/lwm2m/lwm2m_senml_cbor…
68 diff --git a/subsys/net/lib/lwm2m/lwm2m_senml_cbor_encode.c b/subsys/net/lib/lwm2m/lwm2m_senml_cbor…
116 diff --git a/subsys/net/lib/lwm2m/lwm2m_senml_cbor_encode.h b/subsys/net/lib/lwm2m/lwm2m_senml_cbor…
141 diff --git a/subsys/net/lib/lwm2m/lwm2m_senml_cbor_types.h b/subsys/net/lib/lwm2m/lwm2m_senml_cbor_…
/Zephyr-latest/subsys/shell/
Dshell_ops.c232 static void reprint_from_cursor(const struct shell *sh, uint16_t diff, in reprint_from_cursor() argument
259 if (((data_removed) && (diff > 0)) || (!data_removed)) { in reprint_from_cursor()
264 z_shell_op_cursor_move(sh, -diff); in reprint_from_cursor()
329 uint16_t diff = sh->ctx->cmd_buff_len - sh->ctx->cmd_buff_pos; in z_shell_op_char_delete() local
332 if (diff == 0U) { in z_shell_op_char_delete()
336 memmove(str, str + 1, diff); in z_shell_op_char_delete()
338 reprint_from_cursor(sh, --diff, true); in z_shell_op_char_delete()
/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()

12345