Searched refs:rhs (Results 1 – 6 of 6) sorted by relevance
/include/linux/ |
D | time.h | 24 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare() argument 26 if (lhs->tv_sec < rhs->tv_sec) in timespec_compare() 28 if (lhs->tv_sec > rhs->tv_sec) in timespec_compare() 30 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare() 33 static inline int timeval_compare(const struct timeval *lhs, const struct timeval *rhs) in timeval_compare() argument 35 if (lhs->tv_sec < rhs->tv_sec) in timeval_compare() 37 if (lhs->tv_sec > rhs->tv_sec) in timeval_compare() 39 return lhs->tv_usec - rhs->tv_usec; in timeval_compare() 54 const struct timespec rhs); 58 struct timespec rhs) in timespec_add() argument [all …]
|
D | time64.h | 89 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument 91 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 93 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 95 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare() 106 const struct timespec64 rhs); 110 struct timespec64 rhs) in timespec64_add() argument 113 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 114 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add() 122 struct timespec64 rhs) in timespec64_sub() argument 125 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() [all …]
|
D | percpu_counter.h | 44 int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs); 109 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 111 if (fbc->count > rhs) in percpu_counter_compare() 113 else if (fbc->count < rhs) in percpu_counter_compare()
|
D | ktime.h | 59 #define ktime_sub(lhs, rhs) \ argument 60 ({ (ktime_t){ .tv64 = (lhs).tv64 - (rhs).tv64 }; }) 63 #define ktime_add(lhs, rhs) \ argument 64 ({ (ktime_t){ .tv64 = (lhs).tv64 + (rhs).tv64 }; }) 229 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
D | compat.h | 393 struct compat_timeval *rhs) in compat_timeval_compare() argument 395 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare() 397 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare() 399 return lhs->tv_usec - rhs->tv_usec; in compat_timeval_compare() 403 struct compat_timespec *rhs) in compat_timespec_compare() argument 405 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare() 407 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare() 409 return lhs->tv_nsec - rhs->tv_nsec; in compat_timespec_compare()
|
/include/asm-generic/ |
D | word-at-a-time.h | 16 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument 19 return ~(mask | rhs); in prep_zero_mask() 42 unsigned long rhs = val | c->low_bits; in has_zero() local 43 *data = rhs; in has_zero() 44 return (val + c->high_bits) & ~rhs; in has_zero()
|