Lines Matching +full:fail +full:- +full:fast
4 * SPDX-License-Identifier: Apache-2.0
26 return (uint64_t)factor * (uint64_t)cfg->ref_Hz; in scale_ref()
32 return (uint64_t)factor * (uint64_t)cfg->local_Hz; in scale_local()
38 return (int64_t)factor * (int64_t)cfg->local_Hz; in scale_local_signed()
48 zassert_equal(rv, -EINVAL, in test_state_update()
67 zassert_equal(rv, -EINVAL, in test_state_update()
68 "non-increasing ref got: %d", rv); in test_state_update()
78 zassert_equal(rv, -EINVAL, in test_state_update()
79 "non-increasing local got: %d", rv); in test_state_update()
113 rv = timeutil_sync_state_set_skew(&ss, -1.0, NULL); in test_state_set_skew()
114 zassert_equal(rv, -EINVAL, in test_state_set_skew()
120 zassert_equal(rv, -EINVAL, in test_state_set_skew()
179 "unexpected base-only skew: %f", skew); in test_estimate_skew()
229 zassert_equal(rv, -EINVAL, in tref_from_local()
239 zassert_equal(rv, -EINVAL, in tref_from_local()
244 "%s: unexpected fail", tag, rv); in tref_from_local()
250 "%s: unexpected local=0 fail", tag, rv); in tref_from_local()
256 "%s: unexpected local=base fail", tag, rv); in tref_from_local()
263 "%s: unexpected local=base+2s fail %d", tag, rv); in tref_from_local()
268 - scale_local(12, cfg), &ref); in tref_from_local()
269 zassert_equal(rv, -ERANGE, in tref_from_local()
270 "%s: unexpected local=base-12s res %u", tag, rv); in tref_from_local()
281 "%s: unexpected skew adj fail", tag); in tref_from_local()
282 zassert_equal(ref, ss.base.ref + cfg->ref_Hz, in tref_from_local()
306 zassert_equal(rv, -EINVAL, in tlocal_from_ref()
316 zassert_equal(rv, -EINVAL, in tlocal_from_ref()
321 "%s: unexpected fail", tag, rv); in tlocal_from_ref()
328 "%s: unexpected base+2s fail", tag); in tlocal_from_ref()
333 - scale_ref(7, cfg), &local); in tlocal_from_ref()
335 "%s: unexpected base-7s fail", tag); in tlocal_from_ref()
336 zassert_equal(local, scale_local_signed(-2, cfg), in tlocal_from_ref()
337 "%s: unexpected base-7s convert", tag); in tlocal_from_ref()
349 "%s: unexpected skew adj fail", tag); in tlocal_from_ref()
384 uint64_t offset = inst.ref - inst.local; in test_large_linearity()
390 zassert_equal(rv, 0, "Unexpected conversion fail"); in test_large_linearity()
392 "Large unity local->ref conversion fail"); in test_large_linearity()
395 zassert_equal(rv, 0, "Unexpected conversion fail"); in test_large_linearity()
396 zassert_equal(loc_out, inputs[i] - offset, in test_large_linearity()
397 "Large unity ref->local conversion fail"); in test_large_linearity()
412 "unexpected fast: %d", ppb); in test_skew_to_ppb()
416 zassert_equal(ppb, -22053, in test_skew_to_ppb()
421 zassert_equal(ppb, -2147483587, in test_skew_to_ppb()