Home
last modified time | relevance | path

Searched refs:time_diff (Results 1 – 11 of 11) sorted by relevance

/Zephyr-Core-3.6.0/tests/subsys/canbus/isotp/conformance/src/
Dmain.c754 uint32_t start_time, time_diff; in ZTEST() local
763 time_diff = k_uptime_get_32() - start_time; in ZTEST()
766 zassert_true(time_diff <= BS_TIMEOUT_UPPER_MS, in ZTEST()
767 "Timeout too late (%dms)", time_diff); in ZTEST()
768 zassert_true(time_diff >= BS_TIMEOUT_LOWER_MS, in ZTEST()
769 "Timeout too early (%dms)", time_diff); in ZTEST()
784 time_diff = k_uptime_get_32() - start_time; in ZTEST()
785 zassert_true(time_diff >= BS_TIMEOUT_LOWER_MS, in ZTEST()
786 "Timeout too early (%dms)", time_diff); in ZTEST()
804 time_diff = k_uptime_get_32() - start_time; in ZTEST()
[all …]
/Zephyr-Core-3.6.0/subsys/bluetooth/controller/ll_sw/
Disoal.c1635 uint32_t time_diff; in isoal_is_time_stamp_valid() local
1664 &time_diff) && in isoal_is_time_stamp_valid()
1665 time_diff <= time_stamp_valid_range; in isoal_is_time_stamp_valid()
1854 uint32_t time_diff; in isoal_tx_unframed_get_next_payload_number() local
1858 time_diff = 0; in isoal_tx_unframed_get_next_payload_number()
1871 &time_diff); in isoal_tx_unframed_get_next_payload_number()
1889 time_diff_valid && time_diff > session->sdu_interval) { in isoal_tx_unframed_get_next_payload_number()
1896 sdus_skipped = ((time_diff + (session->sdu_interval / 2)) / in isoal_tx_unframed_get_next_payload_number()
1999 uint32_t time_diff; in isoal_tx_unframed_produce() local
2005 time_diff = 0; in isoal_tx_unframed_produce()
[all …]
/Zephyr-Core-3.6.0/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py43 time_diff = stats['total_time'] - seconds - expected_total_drift
58 assert abs(time_diff) < seconds * max_drift_ppm / 1_000_000
/Zephyr-Core-3.6.0/tests/net/socket/tcp/src/
Dmain.c203 uint32_t time_diff; in wait_for_n_tcp_contexts() local
209 time_diff = k_uptime_get_32() - start_time; in wait_for_n_tcp_contexts()
216 time_diff = k_uptime_get_32() - start_time; in wait_for_n_tcp_contexts()
218 if (K_MSEC(time_diff).ticks > timeout.ticks) { in wait_for_n_tcp_contexts()
515 uint32_t start_time, time_diff; in ZTEST() local
552 time_diff = k_uptime_get_32() - start_time; in ZTEST()
556 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
557 "was %dms", time_diff); in ZTEST()
1514 uint32_t start_time, time_diff; in ZTEST() local
1545 time_diff = k_uptime_get_32() - start_time; in ZTEST()
[all …]
/Zephyr-Core-3.6.0/kernel/
Dmmu.c1017 uint32_t time_diff; in do_backing_store_page_in() local
1035 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_backing_store_page_in()
1037 time_diff = k_cycle_get_32() - time_start; in do_backing_store_page_in()
1041 time_diff); in do_backing_store_page_in()
1048 uint32_t time_diff; in do_backing_store_page_out() local
1066 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_backing_store_page_out()
1068 time_diff = k_cycle_get_32() - time_start; in do_backing_store_page_out()
1072 time_diff); in do_backing_store_page_out()
1356 uint32_t time_diff; in do_eviction_select() local
1374 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_eviction_select()
[all …]
/Zephyr-Core-3.6.0/subsys/net/l2/ppp/
Dppp_l2.c339 uint32_t time_diff; in echo_reply_handler() local
341 time_diff = end_time - ctx->shell.echo_req_data; in echo_reply_handler()
343 k_cyc_to_ns_floor64(time_diff) / 1000; in echo_reply_handler()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Dbeacon.c275 uint32_t time_diff; in net_beacon_send() local
281 time_diff = now - beacon->sent; in net_beacon_send()
283 if (time_diff < (600 * MSEC_PER_SEC) && in net_beacon_send()
284 (time_diff < BEACON_THRESHOLD(beacon) || in net_beacon_send()
/Zephyr-Core-3.6.0/tests/net/socket/tls/src/
Dmain.c1180 uint32_t start_time, time_diff; in ZTEST() local
1199 time_diff = k_uptime_get_32() - start_time; in ZTEST()
1203 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
1204 "was %dms", time_diff); in ZTEST()
1223 uint32_t start_time, time_diff; in ZTEST() local
1254 time_diff = k_uptime_get_32() - start_time; in ZTEST()
1258 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
1259 "was %dms", time_diff); in ZTEST()
/Zephyr-Core-3.6.0/tests/net/socket/udp/src/
Dmain.c787 uint32_t start_time, time_diff; in ZTEST() local
817 time_diff = k_uptime_get_32() - start_time; in ZTEST()
821 zassert_true(time_diff >= 300, "Expected timeout after 300ms but " in ZTEST()
822 "was %dms", time_diff); in ZTEST()
827 time_diff = k_uptime_get_32() - start_time; in ZTEST()
831 zassert_true(time_diff >= 400, "Expected timeout after 400ms but " in ZTEST()
832 "was %dms", time_diff); in ZTEST()
/Zephyr-Core-3.6.0/modules/openthread/platform/
Dradio.c271 uint32_t time_diff = target_time_us_wrapped - now_us_wrapped; in convert_32bit_us_wrapped_to_64bit_ns() local
274 if (time_diff < 0x80000000) { in convert_32bit_us_wrapped_to_64bit_ns()
/Zephyr-Core-3.6.0/tests/bluetooth/ctrl_isoal/src/sub_sets/
Disoal_test_rx.c353 static uint32_t isoal_get_wrapped_time_test(uint32_t time_now, int32_t time_diff) in isoal_get_wrapped_time_test() argument
355 uint32_t result = isoal_get_wrapped_time_us(time_now, time_diff); in isoal_get_wrapped_time_test()
360 time_diff, in isoal_get_wrapped_time_test()
913 int32_t time_diff; in ZTEST() local
919 time_diff = (time_wrapping_point == UINT32_MAX ? INT32_MIN : -ISOAL_TIME_WRAPPING_POINT_US); in ZTEST()
920 expected_result = ISOAL_TIME_WRAPPING_POINT_US + time_diff + 1; in ZTEST()
921 result = isoal_get_wrapped_time_test(time_now, time_diff); in ZTEST()
926 time_diff = (time_wrapping_point == UINT32_MAX ? INT32_MIN : -ISOAL_TIME_WRAPPING_POINT_US); in ZTEST()
927 expected_result = ISOAL_TIME_WRAPPING_POINT_US + time_diff; in ZTEST()
928 result = isoal_get_wrapped_time_test(time_now, time_diff); in ZTEST()
[all …]