Lines Matching refs:skew
86 tsp->skew = 1.0f; in timeutil_sync_state_update()
97 int timeutil_sync_state_set_skew(struct timeutil_sync_state *tsp, float skew, in timeutil_sync_state_set_skew() argument
102 if (skew > 0) { in timeutil_sync_state_set_skew()
103 tsp->skew = skew; in timeutil_sync_state_set_skew()
135 if ((tsp->skew > 0) && (tsp->base.ref > 0) && (refp != NULL)) { in timeutil_sync_ref_from_local()
141 if (tsp->skew != 1.0f) { in timeutil_sync_ref_from_local()
142 local_delta *= (double)tsp->skew; in timeutil_sync_ref_from_local()
151 rv = (tsp->skew != 1.0f) ? 1 : 0; in timeutil_sync_ref_from_local()
163 if ((tsp->skew > 0) && (tsp->base.ref > 0) && (localp != NULL)) { in timeutil_sync_local_from_ref()
171 if (tsp->skew != 1.0f) { in timeutil_sync_local_from_ref()
172 local_delta /= (double)tsp->skew; in timeutil_sync_local_from_ref()
178 rv = (tsp->skew != 1.0f) ? 1 : 0; in timeutil_sync_local_from_ref()
184 int32_t timeutil_sync_skew_to_ppb(float skew) in timeutil_sync_skew_to_ppb() argument
186 int64_t ppb64 = (int64_t)((1.0 - (double)skew) * 1E9); in timeutil_sync_skew_to_ppb()