Lines Matching refs:tv_nsec
71 if (a->tv_nsec >= b->tv_nsec) { in timespec_subtract()
72 amb->tv_nsec = a->tv_nsec - b->tv_nsec; in timespec_subtract()
75 amb->tv_nsec = NSEC_PER_SEC + a->tv_nsec - b->tv_nsec; in timespec_subtract()
89 apb->tv_nsec = a->tv_nsec + b->tv_nsec; in timespec_add()
91 if (apb->tv_nsec >= NSEC_PER_SEC) { in timespec_add()
93 apb->tv_nsec -= NSEC_PER_SEC; in timespec_add()
127 adj.tv_nsec = (offset_syncclock % syncclock_Hz) in min_alarm_handler()
137 ts->tv_nsec += adj.tv_nsec; in min_alarm_handler()
138 if (ts->tv_nsec >= NSEC_PER_SEC) { in min_alarm_handler()
140 ts->tv_nsec -= NSEC_PER_SEC; in min_alarm_handler()
145 (uint32_t)(ts->tv_sec - time), ts->tv_nsec, in min_alarm_handler()
194 .tv_nsec = (uint64_t)NSEC_PER_SEC * syncclock / syncclock_Hz, in set_aligned_clock()
212 printk("\nSet %s at %u ms past: %d\n", format_time(sp.rtc.tv_sec, sp.rtc.tv_nsec), in set_aligned_clock()
226 (uint32_t)sp.rtc.tv_sec, (uint32_t)sp.rtc.tv_nsec, in set_aligned_clock()
289 (uint32_t)sp.rtc.tv_sec, (uint32_t)sp.rtc.tv_nsec, in main()