Lines Matching refs:ts
50 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
52 return ts; in timespec_to_timespec64()
88 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
92 ret.tv_sec = ts.tv_sec; in timespec_to_timespec64()
93 ret.tv_nsec = ts.tv_nsec; in timespec_to_timespec64()
135 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
170 static inline bool timespec64_valid(const struct timespec64 *ts) in timespec64_valid() argument
173 if (ts->tv_sec < 0) in timespec64_valid()
176 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
181 static inline bool timespec64_valid_strict(const struct timespec64 *ts) in timespec64_valid_strict() argument
183 if (!timespec64_valid(ts)) in timespec64_valid_strict()
186 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
198 static inline s64 timespec64_to_ns(const struct timespec64 *ts) in timespec64_to_ns() argument
200 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()