Lines Matching refs:to_set
544 struct timespec64 *to_set, in rtc_tv_nsec_ok() argument
552 *to_set = timespec64_add(*now, delay); in rtc_tv_nsec_ok()
554 if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()
555 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()
559 if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()
560 to_set->tv_sec++; in rtc_tv_nsec_ok()
561 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()
581 static int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
596 rtc_time64_to_tm(to_set->tv_sec, &tm); in update_rtc()
608 static inline int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
630 struct timespec64 now, to_set; in sync_hw_clock() local
643 if (!rtc_tv_nsec_ok(offset_nsec, &to_set, &now)) in sync_hw_clock()
648 to_set.tv_sec -= (sys_tz.tz_minuteswest * 60); in sync_hw_clock()
651 res = update_persistent_clock64(to_set); in sync_hw_clock()
656 res = update_rtc(&to_set, &offset_nsec); in sync_hw_clock()