/linux-2.6.39/include/linux/ |
D | time.h | 56 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare() argument 58 if (lhs->tv_sec < rhs->tv_sec) in timespec_compare() 60 if (lhs->tv_sec > rhs->tv_sec) in timespec_compare() 62 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare() 65 static inline int timeval_compare(const struct timeval *lhs, const struct timeval *rhs) in timeval_compare() argument 67 if (lhs->tv_sec < rhs->tv_sec) in timeval_compare() 69 if (lhs->tv_sec > rhs->tv_sec) in timeval_compare() 71 return lhs->tv_usec - rhs->tv_usec; in timeval_compare() 86 const struct timespec rhs); 90 struct timespec rhs) in timespec_add() argument [all …]
|
D | ktime.h | 91 #define ktime_sub(lhs, rhs) \ argument 92 ({ (ktime_t){ .tv64 = (lhs).tv64 - (rhs).tv64 }; }) 95 #define ktime_add(lhs, rhs) \ argument 96 ({ (ktime_t){ .tv64 = (lhs).tv64 + (rhs).tv64 }; }) 163 static inline ktime_t ktime_sub(const ktime_t lhs, const ktime_t rhs) in ktime_sub() argument 167 res.tv64 = lhs.tv64 - rhs.tv64; in ktime_sub() 319 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
D | percpu_counter.h | 43 int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs); 107 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 109 if (fbc->count > rhs) in percpu_counter_compare() 111 else if (fbc->count < rhs) in percpu_counter_compare()
|
D | compat.h | 276 struct compat_timeval *rhs) in compat_timeval_compare() argument 278 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare() 280 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare() 282 return lhs->tv_usec - rhs->tv_usec; in compat_timeval_compare() 286 struct compat_timespec *rhs) in compat_timespec_compare() argument 288 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare() 290 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare() 292 return lhs->tv_nsec - rhs->tv_nsec; in compat_timespec_compare()
|
/linux-2.6.39/lib/ |
D | percpu_counter.c | 191 int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 197 if (abs(count - rhs) > (percpu_counter_batch*num_online_cpus())) { in percpu_counter_compare() 198 if (count > rhs) in percpu_counter_compare() 205 if (count > rhs) in percpu_counter_compare() 207 else if (count < rhs) in percpu_counter_compare()
|
/linux-2.6.39/fs/hpfs/ |
D | super.c | 337 char *rhs = args[0].from; in parse_opts() local 338 if (!rhs || !*rhs) in parse_opts() 340 if (*rhs == '-') m = -1; in parse_opts() 341 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts() 342 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts() 343 if (*rhs) in parse_opts()
|
/linux-2.6.39/kernel/ |
D | time.c | 700 const struct timespec rhs) in timespec_add_safe() argument 704 set_normalized_timespec(&res, lhs.tv_sec + rhs.tv_sec, in timespec_add_safe() 705 lhs.tv_nsec + rhs.tv_nsec); in timespec_add_safe() 707 if (res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec) in timespec_add_safe()
|
D | hrtimer.c | 330 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() argument 332 ktime_t res = ktime_add(lhs, rhs); in ktime_add_safe() 338 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) in ktime_add_safe()
|
/linux-2.6.39/fs/ocfs2/ |
D | reservations.c | 772 unsigned int rhs = 0; in ocfs2_adjust_resv_from_alloc() local 785 rhs = old_end - end; in ocfs2_adjust_resv_from_alloc() 790 BUG_ON(rhs == 0); in ocfs2_adjust_resv_from_alloc()
|
/linux-2.6.39/fs/cifs/ |
D | connect.c | 1461 srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) in srcip_matches() argument 1465 return (rhs->sa_family == AF_UNSPEC); in srcip_matches() 1468 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; in srcip_matches() 1473 struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)&rhs; in srcip_matches()
|
/linux-2.6.39/drivers/md/ |
D | dm-snap.c | 161 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) in bdev_equal() argument 167 return lhs == rhs; in bdev_equal()
|
/linux-2.6.39/drivers/net/ |
D | 3c59x.c | 507 #define BFINS(lhs, rhs, offset, bitcount) \ argument 509 (((rhs) & ((1 << (bitcount)) - 1)) << (offset)))
|