Lines Matching refs:to_set
532 struct timespec64 *to_set, in rtc_tv_nsec_ok() argument
540 *to_set = timespec64_add(*now, delay); in rtc_tv_nsec_ok()
542 if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()
543 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()
547 if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { in rtc_tv_nsec_ok()
548 to_set->tv_sec++; in rtc_tv_nsec_ok()
549 to_set->tv_nsec = 0; in rtc_tv_nsec_ok()
569 static int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
584 rtc_time64_to_tm(to_set->tv_sec, &tm); in update_rtc()
596 static inline int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
627 struct timespec64 now, to_set; in sync_hw_clock() local
640 if (!rtc_tv_nsec_ok(offset_nsec, &to_set, &now)) in sync_hw_clock()
645 to_set.tv_sec -= (sys_tz.tz_minuteswest * 60); in sync_hw_clock()
648 res = update_persistent_clock64(to_set); in sync_hw_clock()
653 res = update_rtc(&to_set, &offset_nsec); in sync_hw_clock()