Lines Matching refs:wsecs

84 	if (datum->wsecs >= limit) {  in _norm_gps_datum()
87 while ((datum->wsecs -= limit) >= limit); in _norm_gps_datum()
88 } else if (datum->wsecs < 0) { in _norm_gps_datum()
91 while ((datum->wsecs += limit) < 0); in _norm_gps_datum()
128 datum->wsecs += (datum->frac < offset.l_uf); in gpscal_add_offset()
133 datum->wsecs -= (int32_t)~offset.l_ui + 1; in gpscal_add_offset()
135 datum->wsecs += (int32_t)offset.l_ui; in gpscal_add_offset()
316 ts64 = ntpcal_weekjoin(date.weeks, date.wsecs); in gpsntp_from_gpscal_ex()
469 gps.wsecs = days * SECSPERDAY + ntpcal_date_to_daysec(&cal); in gpscal_from_calendar_ex()
512 retv.wsecs = secs; in gpscal_from_gpsweek()
523 int32_t wsecs, in _gpscal_from_weektime() argument
534 retv.wsecs = wsecs; in _gpscal_from_weektime()
539 if (pivot->wsecs < shift) { in _gpscal_from_weektime()
540 int32_t lim = pivot->wsecs + shift; in _gpscal_from_weektime()
541 retv.weeks -= (retv.wsecs > lim || in _gpscal_from_weektime()
542 (retv.wsecs == lim && retv.frac >= pivot->frac)); in _gpscal_from_weektime()
544 int32_t lim = pivot->wsecs - shift; in _gpscal_from_weektime()
545 retv.weeks += (retv.wsecs < lim || in _gpscal_from_weektime()
546 (retv.wsecs == lim && retv.frac < pivot->frac)); in _gpscal_from_weektime()
556 int32_t wsecs, in gpscal_from_weektime2() argument
563 return _gpscal_from_weektime(wsecs, fofs, &wpiv); in gpscal_from_weektime2()
573 int32_t wsecs, in gpscal_from_weektime1() argument
590 wpiv.wsecs = split.lo; in gpscal_from_weektime1()
592 return _gpscal_from_weektime(wsecs, fofs, &wpiv); in gpscal_from_weektime1()
612 retv.wsecs = split.lo; in gpscal_from_gpsntp()
629 + (uint32_t)gd->wsecs in ntpfp_from_gpsdatum()