Lines Matching refs:si
44 struct timeutil_sync_instant si = { 0 }; in test_state_update() local
46 int rv = timeutil_sync_state_update(&ss, &si); in test_state_update()
55 si.ref = 1; in test_state_update()
56 rv = timeutil_sync_state_update(&ss, &si); in test_state_update()
66 rv = timeutil_sync_state_update(&ss, &si); in test_state_update()
76 si.ref += 1; in test_state_update()
77 rv = timeutil_sync_state_update(&ss, &si); in test_state_update()
83 si.local += 20; in test_state_update()
84 rv = timeutil_sync_state_update(&ss, &si); in test_state_update()
91 zassert_equal(ss.latest.ref, si.ref, in test_state_update()
93 zassert_equal(ss.latest.local, si.local, in test_state_update()
99 struct timeutil_sync_instant si = { in test_state_set_skew() local
106 int rv = timeutil_sync_state_update(&ss, &si); in test_state_set_skew()
130 zassert_equal(ss.base.ref, si.ref, in test_state_set_skew()
132 zassert_equal(ss.base.local, si.local, in test_state_set_skew()
136 si.ref += 5; in test_state_set_skew()
137 si.local += 3; in test_state_set_skew()
139 rv = timeutil_sync_state_set_skew(&ss, skew, &si); in test_state_set_skew()
144 zassert_equal(ss.base.ref, si.ref, in test_state_set_skew()
146 zassert_equal(ss.base.local, si.local, in test_state_set_skew()