Home
last modified time | relevance | path

Searched refs:wrap_counter (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Dnet_timeout.c22 timeout->wrap_counter = 0; in net_timeout_set()
28 timeout->wrap_counter = expire_timeout / in net_timeout_set()
32 (uint64_t)timeout->wrap_counter; in net_timeout_set()
40 timeout->wrap_counter -= 1; in net_timeout_set()
59 * (uint64_t)timeout->wrap_counter; in net_timeout_deadline()
69 ret += timeout->wrap_counter * (uint64_t)NET_TIMEOUT_MAX_VALUE; in net_timeout_remaining()
90 wraps = (timeout->wrap_counter > 0U); in net_timeout_evaluate()
120 timeout->wrap_counter -= 1; in net_timeout_evaluate()
132 timeout->wrap_counter -= 1U; in net_timeout_evaluate()
135 return (timeout->wrap_counter == 0U) in net_timeout_evaluate()
/Zephyr-latest/tests/unit/net_timeout/
Dmain.c24 remaining += NET_TIMEOUT_MAX_VALUE * nto->wrap_counter;
28 nto->timer_start, nto->wrap_counter,
56 zassert_equal(nto.wrap_counter, 0); in ZTEST()
65 zassert_equal(nto.wrap_counter, 0); in ZTEST()
75 zassert_equal(nto.wrap_counter, 0); in ZTEST()
85 zassert_equal(nto.wrap_counter, 1U); in ZTEST()
96 zassert_equal(nto.wrap_counter, 1U); in ZTEST()
107 zassert_equal(nto.wrap_counter, MSEC_PER_SEC - 1); in ZTEST()
166 zassert_equal(nto.wrap_counter, 0); in ZTEST()
187 zassert_equal(nto.wrap_counter, 7); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_timeout.h86 uint32_t wrap_counter; member
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c852 zassert_equal(ifprefix->lifetime.wrap_counter, 1999, in ZTEST()
854 ifprefix->lifetime.wrap_counter); in ZTEST()
856 NET_TIMEOUT_MAX_VALUE * (uint64_t)ifprefix->lifetime.wrap_counter; in ZTEST()
1357 zassert_equal(ifaddr->lifetime.wrap_counter, 0, in ZTEST()
1358 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
1365 zassert_equal(ifaddr->lifetime.wrap_counter, 2, in ZTEST()
1366 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
1368 NET_TIMEOUT_MAX_VALUE * (uint64_t)ifaddr->lifetime.wrap_counter; in ZTEST()
1377 zassert_equal(ifaddr->lifetime.wrap_counter, 2, in ZTEST()
1378 "Wrap counter wrong (%d)", ifaddr->lifetime.wrap_counter); in ZTEST()
[all …]