Lines Matching refs:ts
231 struct timespec ts; in monotonic_time() local
232 clock_gettime(CLOCK_MONOTONIC, &ts); in monotonic_time()
233 return ts.tv_sec; in monotonic_time()
255 clk_ct_to_ts(struct clktime *ct, struct timespec *ts) in clk_ct_to_ts() argument
283 ts->tv_sec = (((time_t)days * 24 + ct->hour) * 60 + ct->min) * 60 + in clk_ct_to_ts()
285 ts->tv_nsec = ct->nsec; in clk_ct_to_ts()
290 clk_ts_to_ct(struct timespec *ts, struct clktime *ct) in clk_ts_to_ct() argument
296 secs = ts->tv_sec; in clk_ts_to_ct()
321 ct->nsec = ts->tv_nsec; in clk_ts_to_ct()
396 struct timespec ts; in secs_to_rtc() local
412 ts.tv_sec = rtctime; in secs_to_rtc()
413 ts.tv_nsec = 0; in secs_to_rtc()
414 clk_ts_to_ct(&ts, &ct); in secs_to_rtc()
464 struct timespec ts; in rtc_to_secs() local
554 error = clk_ct_to_ts(&ct, &ts); in rtc_to_secs()
555 if (error || ts.tv_sec < 0) { in rtc_to_secs()
562 return ts.tv_sec; /* success */ in rtc_to_secs()
575 struct itimerspec ts; in vrtc_start_timer() local
578 ts.it_interval.tv_sec = sec; in vrtc_start_timer()
579 ts.it_interval.tv_nsec = nsec; in vrtc_start_timer()
581 ts.it_value.tv_sec = sec; in vrtc_start_timer()
582 ts.it_value.tv_nsec = nsec; in vrtc_start_timer()
583 acrn_timer_settime(timer, &ts); in vrtc_start_timer()