Lines Matching refs:timespec
19 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
21 return *(const struct timespec *)&ts64; in timespec64_to_timespec()
24 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
30 static inline struct timespec timespec64_to_timespec(const struct timespec64 ts64) in timespec64_to_timespec()
32 struct timespec ret; in timespec64_to_timespec()
39 static inline struct timespec64 timespec_to_timespec64(const struct timespec ts) in timespec_to_timespec64()
49 static inline int timespec_equal(const struct timespec *a, in timespec_equal()
50 const struct timespec *b) in timespec_equal()
60 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare()
69 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec);
71 static inline struct timespec timespec_add(struct timespec lhs, in timespec_add()
72 struct timespec rhs) in timespec_add()
74 struct timespec ts_delta; in timespec_add()
84 static inline struct timespec timespec_sub(struct timespec lhs, in timespec_sub()
85 struct timespec rhs) in timespec_sub()
87 struct timespec ts_delta; in timespec_sub()
97 static inline bool timespec_valid(const struct timespec *ts) in timespec_valid()
108 static inline bool timespec_valid_strict(const struct timespec *ts) in timespec_valid_strict()
125 static inline s64 timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
136 extern struct timespec ns_to_timespec(const s64 nsec);
146 static __always_inline void timespec_add_ns(struct timespec *a, u64 ns) in timespec_add_ns()
186 extern struct timespec timespec_trunc(struct timespec t, unsigned int gran);