Home
last modified time | relevance | path

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

/Zephyr-latest/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-latest/subsys/bluetooth/controller/ll_sw/
Disoal.c1633 uint32_t time_diff; in isoal_is_time_stamp_valid() local
1662 &time_diff) && in isoal_is_time_stamp_valid()
1663 time_diff <= time_stamp_valid_range; in isoal_is_time_stamp_valid()
1852 uint32_t time_diff; in isoal_tx_unframed_get_next_payload_number() local
1856 time_diff = 0; in isoal_tx_unframed_get_next_payload_number()
1869 &time_diff); in isoal_tx_unframed_get_next_payload_number()
1887 time_diff_valid && time_diff > session->sdu_interval) { in isoal_tx_unframed_get_next_payload_number()
1894 sdus_skipped = ((time_diff + (session->sdu_interval / 2)) / in isoal_tx_unframed_get_next_payload_number()
1997 uint32_t time_diff; in isoal_tx_unframed_produce() local
2003 time_diff = 0; in isoal_tx_unframed_produce()
[all …]
/Zephyr-latest/tests/net/socket/tcp/src/
Dmain.c199 uint32_t time_diff; in wait_for_n_tcp_contexts() local
205 time_diff = k_uptime_get_32() - start_time; in wait_for_n_tcp_contexts()
212 time_diff = k_uptime_get_32() - start_time; in wait_for_n_tcp_contexts()
214 if (K_MSEC(time_diff).ticks > timeout.ticks) { in wait_for_n_tcp_contexts()
511 uint32_t start_time, time_diff; in ZTEST() local
548 time_diff = k_uptime_get_32() - start_time; in ZTEST()
552 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
553 "was %dms", time_diff); in ZTEST()
1510 uint32_t start_time, time_diff; in ZTEST() local
1541 time_diff = k_uptime_get_32() - start_time; in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/pytest/
Dtest_timer.py46 time_diff = stats['total_time'] - seconds - expected_total_drift
84 assert abs(time_diff) < seconds * max_drift_ppm / 1_000_000
/Zephyr-latest/kernel/
Dmmu.c1219 uint32_t time_diff; in do_backing_store_page_in() local
1237 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_backing_store_page_in()
1239 time_diff = k_cycle_get_32() - time_start; in do_backing_store_page_in()
1243 time_diff); in do_backing_store_page_in()
1250 uint32_t time_diff; in do_backing_store_page_out() local
1268 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_backing_store_page_out()
1270 time_diff = k_cycle_get_32() - time_start; in do_backing_store_page_out()
1274 time_diff); in do_backing_store_page_out()
1584 uint32_t time_diff; in do_eviction_select() local
1602 time_diff = (uint32_t)timing_cycles_get(&time_start, &time_end); in do_eviction_select()
[all …]
/Zephyr-latest/subsys/net/l2/ppp/
Dppp_l2.c341 uint32_t time_diff; in echo_reply_handler() local
343 time_diff = end_time - ctx->shell.echo_req_data; in echo_reply_handler()
345 k_cyc_to_ns_floor64(time_diff) / 1000; in echo_reply_handler()
/Zephyr-latest/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-latest/tests/net/socket/tls/src/
Dmain.c1360 uint32_t start_time, time_diff; in ZTEST() local
1379 time_diff = k_uptime_get_32() - start_time; in ZTEST()
1383 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
1384 "was %dms", time_diff); in ZTEST()
1403 uint32_t start_time, time_diff; in ZTEST() local
1434 time_diff = k_uptime_get_32() - start_time; in ZTEST()
1438 zassert_true(time_diff >= 500, "Expected timeout after 500ms but " in ZTEST()
1439 "was %dms", time_diff); in ZTEST()
/Zephyr-latest/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-latest/modules/openthread/platform/
Dradio.c280 uint32_t time_diff = target_time_us_wrapped - now_us_wrapped; in convert_32bit_us_wrapped_to_64bit_ns() local
283 if (time_diff < 0x80000000) { in convert_32bit_us_wrapped_to_64bit_ns()
/Zephyr-latest/tests/bluetooth/controller/ctrl_isoal/src/sub_sets/
Disoal_test_rx.c361 static uint32_t isoal_get_wrapped_time_test(uint32_t time_now, int32_t time_diff) in isoal_get_wrapped_time_test() argument
363 uint32_t result = isoal_get_wrapped_time_us(time_now, time_diff); in isoal_get_wrapped_time_test()
368 time_diff, in isoal_get_wrapped_time_test()
922 int32_t time_diff; in ZTEST() local
928 time_diff = (time_wrapping_point == UINT32_MAX) ? in ZTEST()
931 expected_result = ISOAL_TIME_WRAPPING_POINT_US + time_diff + 1; in ZTEST()
932 result = isoal_get_wrapped_time_test(time_now, time_diff); in ZTEST()
937 time_diff = (time_wrapping_point == UINT32_MAX) ? in ZTEST()
940 expected_result = ISOAL_TIME_WRAPPING_POINT_US + time_diff; in ZTEST()
941 result = isoal_get_wrapped_time_test(time_now, time_diff); in ZTEST()
[all …]