Searched refs:to_set (Results 1 – 2 of 2) sorted by relevance
30 struct timespec64 to_set; in rtc_set_ntp_time() local46 set_normalized_timespec64(&to_set, 0, -rtc->set_offset_nsec); in rtc_set_ntp_time()47 *target_nsec = to_set.tv_nsec; in rtc_set_ntp_time()53 ok = rtc_tv_nsec_ok(rtc->set_offset_nsec, &to_set, &now); in rtc_set_ntp_time()59 rtc_time64_to_tm(to_set.tv_sec, &tm); in rtc_set_ntp_time()
235 struct timespec64 *to_set, in rtc_tv_nsec_ok() argument243 *to_set = timespec64_add(*now, delay); in rtc_tv_nsec_ok()245 if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()246 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()250 if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()251 to_set->tv_sec++; in rtc_tv_nsec_ok()252 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()