Lines Matching refs:timespec
13 static inline int timespec_equal(const struct timespec *a, in timespec_equal()
14 const struct timespec *b) in timespec_equal()
24 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare()
57 extern void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec);
64 extern struct timespec timespec_add_safe(const struct timespec lhs,
65 const struct timespec rhs);
68 static inline struct timespec timespec_add(struct timespec lhs, in timespec_add()
69 struct timespec rhs) in timespec_add()
71 struct timespec ts_delta; in timespec_add()
80 static inline struct timespec timespec_sub(struct timespec lhs, in timespec_sub()
81 struct timespec rhs) in timespec_sub()
83 struct timespec ts_delta; in timespec_sub()
92 static inline bool timespec_valid(const struct timespec *ts) in timespec_valid()
103 static inline bool timespec_valid_strict(const struct timespec *ts) in timespec_valid_strict()
126 extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
129 #define CURRENT_TIME_SEC ((struct timespec) { get_seconds(), 0 })
151 extern long do_utimes(int dfd, const char __user *filename, struct timespec *times, int flags);
191 static inline s64 timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
215 extern struct timespec ns_to_timespec(const s64 nsec);
233 static __always_inline void timespec_add_ns(struct timespec *a, u64 ns) in timespec_add_ns()