Lines Matching refs:lifetime
50 uint32_t lifetime = 0U; in ZTEST() local
60 lifetime = NTO_MAX_S / 2; in ZTEST()
63 net_timeout_set(&nto, lifetime, now); in ZTEST()
66 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST()
70 lifetime = NTO_MAX_S; in ZTEST()
73 net_timeout_set(&nto, lifetime, now); in ZTEST()
76 zassert_equal(nto.timer_timeout, lifetime * MSEC_PER_SEC, in ZTEST()
80 lifetime += 1U; in ZTEST()
83 net_timeout_set(&nto, lifetime, now); in ZTEST()
87 (lifetime * MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in ZTEST()
91 lifetime = FULLMAX_S; in ZTEST()
94 net_timeout_set(&nto, lifetime, now); in ZTEST()
98 (lifetime * (uint64_t)MSEC_PER_SEC) % NET_TIMEOUT_MAX_VALUE, in ZTEST()
102 lifetime = NET_TIMEOUT_MAX_VALUE; in ZTEST()
105 net_timeout_set(&nto, lifetime, now); in ZTEST()
117 uint32_t lifetime = 562; in ZTEST() local
119 net_timeout_set(&nto, lifetime, now); in ZTEST()
120 uint64_t expected = now + lifetime * MSEC_PER_SEC; in ZTEST()
154 uint32_t lifetime = 0U; in ZTEST() local
163 lifetime = NTO_MAX_S / 2; in ZTEST()
165 net_timeout_set(&nto, lifetime, now); in ZTEST()
167 zassert_equal(net_timeout_remaining(&nto, now), lifetime, in ZTEST()
172 lifetime - 1U, in ZTEST()
175 lifetime - 1U, in ZTEST()
178 lifetime - 1U, in ZTEST()
181 lifetime - 2U, in ZTEST()
185 lifetime = 4 * FULLMAX_S; in ZTEST()
186 net_timeout_set(&nto, lifetime, now); in ZTEST()
188 zassert_equal(net_timeout_remaining(&nto, now), lifetime, in ZTEST()
197 uint32_t lifetime = FULLMAX_S + HALFMAX_S; in ZTEST() local
202 net_timeout_set(&nto, lifetime, now); in ZTEST()
307 uint32_t lifetime = 3 * HALFMAX_S + 2; in ZTEST() local
309 net_timeout_set(&nto, lifetime, now); in ZTEST()