Lines Matching refs:lhs
53 * lhs < rhs: return <0
54 * lhs == rhs: return 0
55 * lhs > rhs: return >0
57 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs)
59 if (lhs->tv_sec < rhs->tv_sec)
61 if (lhs->tv_sec > rhs->tv_sec)
63 return lhs->tv_nsec - rhs->tv_nsec;
68 static inline struct timespec64 timespec64_add(struct timespec64 lhs,
72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec,
73 lhs.tv_nsec + rhs.tv_nsec);
78 * sub = lhs - rhs, in normalized form
80 static inline struct timespec64 timespec64_sub(struct timespec64 lhs,
84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec,
85 lhs.tv_nsec - rhs.tv_nsec);
168 extern struct timespec64 timespec64_add_safe(const struct timespec64 lhs,