Lines Matching refs:retv

197 	TNtpDatum	retv;  in _gpsntp_from_daytime()  local
200 ZERO(retv); in _gpsntp_from_daytime()
201 retv.secs = ntpcal_date_to_daysec(jd); in _gpsntp_from_daytime()
202 gpsntp_add_offset(&retv, fofs); /* result is normalized */ in _gpsntp_from_daytime()
203 retv.days = pivot->days; in _gpsntp_from_daytime()
208 retv.days -= (retv.secs > lim || in _gpsntp_from_daytime()
209 (retv.secs == lim && retv.frac >= pivot->frac)); in _gpsntp_from_daytime()
212 retv.days += (retv.secs < lim || in _gpsntp_from_daytime()
213 (retv.secs == lim && retv.frac < pivot->frac)); in _gpsntp_from_daytime()
215 return warp ? _gpsntp_fix_gps_era(&retv) : retv; in _gpsntp_from_daytime()
305 TNtpDatum retv; in gpsntp_from_gpscal_ex() local
320 retv.frac = gd->frac; in gpsntp_from_gpscal_ex()
321 retv.secs = split.lo; in gpsntp_from_gpscal_ex()
322 retv.days = split.hi; in gpsntp_from_gpscal_ex()
323 return retv; in gpsntp_from_gpscal_ex()
334 l_fp retv; in ntpfp_from_ntpdatum() local
336 retv.l_uf = nd->frac; in ntpfp_from_ntpdatum()
337 retv.l_ui = nd->days * (uint32_t)SECSPERDAY in ntpfp_from_ntpdatum()
339 return retv; in ntpfp_from_ntpdatum()
509 TGpsDatum retv; in gpscal_from_gpsweek() local
511 retv.frac = 0; in gpscal_from_gpsweek()
512 retv.wsecs = secs; in gpscal_from_gpsweek()
513 retv.weeks = week + GPSNTP_WSHIFT; in gpscal_from_gpsweek()
514 gpscal_add_offset(&retv, fofs); in gpscal_from_gpsweek()
515 return _gpscal_fix_gps_era(&retv); in gpscal_from_gpsweek()
530 TGpsDatum retv; in _gpscal_from_weektime() local
533 ZERO(retv); in _gpscal_from_weektime()
534 retv.wsecs = wsecs; in _gpscal_from_weektime()
535 gpscal_add_offset(&retv, fofs); /* result is normalized */ in _gpscal_from_weektime()
536 retv.weeks = pivot->weeks; 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()
545 retv.weeks += (retv.wsecs < lim || in _gpscal_from_weektime()
546 (retv.wsecs == lim && retv.frac < pivot->frac)); in _gpscal_from_weektime()
548 return _gpscal_fix_gps_era(&retv); in _gpscal_from_weektime()
603 TGpsDatum retv; in gpscal_from_gpsntp() local
611 retv.frac = gd->frac; in gpscal_from_gpsntp()
612 retv.wsecs = split.lo; in gpscal_from_gpsntp()
613 retv.weeks = split.hi; in gpscal_from_gpsntp()
614 return retv; in gpscal_from_gpsntp()
625 l_fp retv; in ntpfp_from_gpsdatum() local
627 retv.l_uf = gd->frac; in ntpfp_from_gpsdatum()
628 retv.l_ui = gd->weeks * (uint32_t)SECSPERWEEK in ntpfp_from_gpsdatum()
631 return retv; in ntpfp_from_gpsdatum()