Lines Matching refs:pivot
191 TcNtpDatum * pivot,
199 /* set result based on pivot -- ops order is important here */
203 retv.days = pivot->days;
206 if (pivot->secs < shift) {
207 int32_t lim = pivot->secs + shift;
209 (retv.secs == lim && retv.frac >= pivot->frac));
211 int32_t lim = pivot->secs - shift;
213 (retv.secs == lim && retv.frac < pivot->frac));
220 * (fractional) offset, calculate a full time stamp around a given pivot
221 * time so that the difference between the pivot and the resulting time
228 TcNtpDatum * pivot,
232 TNtpDatum dpiv = *pivot;
239 * it, but the pivot is calculated from the pivot given as 'l_fp' in NTP
241 * and the resulting absolute pivot is then used to calculate the full
248 l_fp pivot,
256 pvi64 = ntpcal_ntp_to_ntp(pivot.l_ui, NULL);
260 dpiv.frac = pivot.l_uf;
525 TcGpsDatum * pivot
532 /* set result based on pivot -- ops order is important here */
536 retv.weeks = pivot->weeks;
539 if (pivot->wsecs < shift) {
540 int32_t lim = pivot->wsecs + shift;
542 (retv.wsecs == lim && retv.frac >= pivot->frac));
544 int32_t lim = pivot->wsecs - shift;
546 (retv.wsecs == lim && retv.frac < pivot->frac));
552 * expand a time-of-week around a pivot given as week datum
558 TcGpsDatum * pivot
561 TGpsDatum wpiv = * pivot;
567 * epand a time-of-week around an pivot given as LFP, which in turn
575 l_fp pivot
582 /* get 64-bit pivot in NTP epoch */
583 pvi64 = ntpcal_ntp_to_ntp(pivot.l_ui, NULL);
591 wpiv.frac = pivot.l_uf;