Lines Matching defs:time_offset

32  * @time_offset:	Time adjustment in nanoseconds
34 * @time_offset units (shifted-ns / HZ). Set by
72 s64 time_offset;
343 ntpdata->time_offset = div_s64(offset64 << NTP_SCALE_SHIFT, NTP_INTERVAL_FREQ);
357 ntpdata->time_offset = 0;
410 /* Only drain if amount and time_offset have the same sign */
411 if (!amount || signof(amount) != signof(ntpdata->time_offset))
415 if (abs(amount) > abs(ntpdata->time_offset)) {
416 s64 undrained = amount - ntpdata->time_offset;
418 ntpdata->time_offset = 0;
422 ntpdata->time_offset -= amount;
430 * (skew_delta << shift), in time_offset units (shifted_ns / HZ); it covers
431 * both the exponential time_offset slew and the linear adjtime slew. This
437 * time_offset these are NOT pre-divided by HZ); we top it up by borrowing
485 /* Return the unclaimed remainder in ÷HZ drain units for time_offset */
494 * (skew_delta << shift), in time_offset units (shifted_ns / HZ). The
497 * time_offset. Returns the amount actually claimed (same ÷HZ units).
507 * phase offset in time_offset and/or time_adjust.
513 * time_offset (drained exponentially) and time_adjust (drained linearly at the
521 * stalls. @amount is the phase to take off time_offset, in its (÷HZ) units and
530 * Don't drain time_offset past zero. @amount shares its sign and is
532 * floor for a tiny time_offset can exceed it, so clamp.
534 if (abs(amount) > abs(ntpdata->time_offset))
535 amount = ntpdata->time_offset;
547 ntpdata->time_offset -= amount;
674 * the same units as time_offset: (ns << NTP_SCALE_SHIFT) / HZ.
679 * time_offset or time_adjust, and the rest ends up in ntp_error
682 if (ntpdata->time_offset || ntpdata->time_adjust ||
684 s64 off_chunk = ntp_offset_chunk(ntpdata, ntpdata->time_offset);
693 off_chunk = ntpdata->time_offset;
1034 audit_ntp_set_old(ad, AUDIT_NTP_OFFSET, ntpdata->time_offset);
1042 audit_ntp_set_new(ad, AUDIT_NTP_OFFSET, ntpdata->time_offset);
1049 txc->offset = shift_right(ntpdata->time_offset * NTP_INTERVAL_FREQ, NTP_SCALE_SHIFT);
1262 ntpdata->time_offset = div_s64(((s64)correction) << NTP_SCALE_SHIFT,