Lines Matching refs:ts
66 extern void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec);
92 static inline bool timespec64_valid(const struct timespec64 *ts)
95 if (ts->tv_sec < 0)
98 if ((unsigned long)ts->tv_nsec >= NSEC_PER_SEC)
103 static inline bool timespec64_valid_strict(const struct timespec64 *ts)
105 if (!timespec64_valid(ts))
108 if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX)
113 static inline bool timespec64_valid_settod(const struct timespec64 *ts)
115 if (!timespec64_valid(ts))
118 if ((unsigned long long)ts->tv_sec >= TIME_SETTOD_SEC_MAX)
125 * @ts: pointer to the timespec64 variable to be converted
130 static inline s64 timespec64_to_ns(const struct timespec64 *ts)
133 if (ts->tv_sec >= KTIME_SEC_MAX)
136 if (ts->tv_sec <= KTIME_SEC_MIN)
139 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec;