Lines Matching refs:ts
41 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
43 return ts; in timespec_to_timespec64()
69 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64() argument
73 ret.tv_sec = ts.tv_sec; in timespec_to_timespec64()
74 ret.tv_nsec = ts.tv_nsec; in timespec_to_timespec64()
98 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
133 static inline bool timespec64_valid(const struct timespec64 *ts) in timespec64_valid() argument
136 if (ts->tv_sec < 0) in timespec64_valid()
139 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC) in timespec64_valid()
144 static inline bool timespec64_valid_strict(const struct timespec64 *ts) in timespec64_valid_strict() argument
146 if (!timespec64_valid(ts)) in timespec64_valid_strict()
149 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) in timespec64_valid_strict()
161 static inline s64 timespec64_to_ns(const struct timespec64 *ts) in timespec64_to_ns() argument
163 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec64_to_ns()