Lines Matching refs:ts
31 struct timespec ts; in ktime_get() local
32 nanouptime(&ts); in ktime_get()
33 return TIMESPEC_TO_NSEC(&ts); in ktime_get()
39 struct timespec ts; in ktime_get_raw() local
40 nanouptime(&ts); in ktime_get_raw()
41 return TIMESPEC_TO_NSEC(&ts); in ktime_get_raw()
77 struct timespec64 ts; in ktime_to_timespec64() local
78 ts.tv_sec = k / NSEC_PER_SEC; in ktime_to_timespec64()
79 ts.tv_nsec = k % NSEC_PER_SEC; in ktime_to_timespec64()
80 if (ts.tv_nsec < 0) { in ktime_to_timespec64()
81 ts.tv_sec--; in ktime_to_timespec64()
82 ts.tv_nsec += NSEC_PER_SEC; in ktime_to_timespec64()
84 return ts; in ktime_to_timespec64()
168 struct timespec ts; in ktime_set() local
169 ts.tv_sec = s; in ktime_set()
170 ts.tv_nsec = ns; in ktime_set()
171 return TIMESPEC_TO_NSEC(&ts); in ktime_set()