Home | History | Annotate | Download | only in linux

Lines Matching refs:timespec

36  * On 32-bit CPUs an optimized representation of the timespec structure
99 /* convert a timespec to ktime_t format: */
100 static inline ktime_t timespec_to_ktime(struct timespec ts)
111 /* Map the ktime_t to timespec conversion to ns_to_timespec function */
123 * Helper macros/inlines to get the ktime_t math right in the timespec
197 * timespec_to_ktime - convert a timespec to ktime_t format
198 * @ts: the timespec variable to convert
200 * Returns a ktime_t variable with the converted timespec value
202 static inline ktime_t timespec_to_ktime(const struct timespec ts)
221 * ktime_to_timespec - convert a ktime_t variable to timespec format
224 * Returns the timespec representation of the ktime value
226 static inline struct timespec ktime_to_timespec(const ktime_t kt)
228 return (struct timespec) { .tv_sec = (time_t) kt.tv.sec,
267 /* Get the monotonic time in timespec format: */
268 extern void ktime_get_ts(struct timespec *ts);
270 /* Get the real (wall-) time in timespec format: */