/linux-4.4.14/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() 65 const struct timespec rhs); 69 struct timespec rhs) in timespec_add() argument [all …]
|
D | time64.h | 126 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument 128 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 130 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 132 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare() 143 const struct timespec64 rhs); 147 struct timespec64 rhs) in timespec64_add() argument 150 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 151 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add() 159 struct timespec64 rhs) in timespec64_sub() argument 162 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, s32 batch); 46 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 48 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare() 114 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 116 if (fbc->count > rhs) in percpu_counter_compare() 118 else if (fbc->count < rhs) in percpu_counter_compare() 125 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument 127 return percpu_counter_compare(fbc, 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 }; }) 234 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
D | compat.h | 396 struct compat_timeval *rhs) in compat_timeval_compare() argument 398 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare() 400 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare() 402 return lhs->tv_usec - rhs->tv_usec; in compat_timeval_compare() 406 struct compat_timespec *rhs) in compat_timespec_compare() argument 408 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare() 410 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare() 412 return lhs->tv_nsec - rhs->tv_nsec; in compat_timespec_compare()
|
D | rtc.h | 30 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub() argument 32 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); in rtc_tm_sub()
|
/linux-4.4.14/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()
|
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/ |
D | word-at-a-time.h | 20 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument 23 return ~(mask | rhs); in prep_zero_mask() 38 unsigned long rhs = val | c->low_bits; in has_zero() local 39 *data = rhs; in has_zero() 40 return (val + c->high_bits) & ~rhs; in has_zero()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | word-at-a-time.h | 20 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument 23 return ~(mask | rhs); in prep_zero_mask() 38 unsigned long rhs = val | c->low_bits; in has_zero() local 39 *data = rhs; in has_zero() 40 return (val + c->high_bits) & ~rhs; in has_zero()
|
/linux-4.4.14/tools/perf/scripts/python/ |
D | compaction-times.py | 61 def __add__(self, rhs): argument 62 self.aval += rhs.aval 63 self.bval += rhs.bval 76 def __add__(self, rhs): argument 77 self.ns += rhs.ns 78 self.migrated += rhs.migrated 79 self.fscan += rhs.fscan 80 self.mscan += rhs.mscan 167 def __add__(self, rhs): argument 168 self.ns += rhs.ns [all …]
|
/linux-4.4.14/lib/ |
D | percpu_counter.c | 200 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument 206 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare() 207 if (count > rhs) in __percpu_counter_compare() 214 if (count > rhs) in __percpu_counter_compare() 216 else if (count < rhs) in __percpu_counter_compare()
|
/linux-4.4.14/drivers/md/ |
D | dm-bio-prison.c | 84 struct dm_cell_key *rhs) in cmp_keys() argument 86 if (lhs->virtual < rhs->virtual) in cmp_keys() 89 if (lhs->virtual > rhs->virtual) in cmp_keys() 92 if (lhs->dev < rhs->dev) in cmp_keys() 95 if (lhs->dev > rhs->dev) in cmp_keys() 98 if (lhs->block_end <= rhs->block_begin) in cmp_keys() 101 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
|
D | dm-snap.c | 169 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) in bdev_equal() argument 175 return lhs == rhs; in bdev_equal()
|
D | dm-thin.c | 2049 static int cmp_cells(const void *lhs, const void *rhs) in cmp_cells() argument 2052 struct dm_bio_prison_cell *rhs_cell = *((struct dm_bio_prison_cell **) rhs); in cmp_cells()
|
/linux-4.4.14/fs/hpfs/ |
D | super.c | 406 char *rhs = args[0].from; in parse_opts() local 407 if (!rhs || !*rhs) in parse_opts() 409 if (*rhs == '-') m = -1; in parse_opts() 410 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts() 411 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts() 412 if (*rhs) in parse_opts()
|
/linux-4.4.14/kernel/time/ |
D | time.c | 753 const struct timespec rhs) in timespec_add_safe() argument 757 set_normalized_timespec(&res, lhs.tv_sec + rhs.tv_sec, in timespec_add_safe() 758 lhs.tv_nsec + rhs.tv_nsec); in timespec_add_safe() 760 if (res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec) in timespec_add_safe()
|
D | hrtimer.c | 308 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() argument 310 ktime_t res = ktime_add(lhs, rhs); in ktime_add_safe() 316 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) in ktime_add_safe()
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 309 u64 lhs, rhs; in fec_ptp_adjfreq() local 327 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq() 329 if (lhs >= rhs) { in fec_ptp_adjfreq() 331 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
|
/linux-4.4.14/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-4.4.14/drivers/media/platform/am437x/ |
D | am437x-vpfe.c | 282 cmp_v4l2_format(const struct v4l2_format *lhs, const struct v4l2_format *rhs) in cmp_v4l2_format() argument 284 return lhs->type == rhs->type && in cmp_v4l2_format() 285 lhs->fmt.pix.width == rhs->fmt.pix.width && in cmp_v4l2_format() 286 lhs->fmt.pix.height == rhs->fmt.pix.height && in cmp_v4l2_format() 287 lhs->fmt.pix.pixelformat == rhs->fmt.pix.pixelformat && in cmp_v4l2_format() 288 lhs->fmt.pix.field == rhs->fmt.pix.field && in cmp_v4l2_format() 289 lhs->fmt.pix.colorspace == rhs->fmt.pix.colorspace && in cmp_v4l2_format() 290 lhs->fmt.pix.ycbcr_enc == rhs->fmt.pix.ycbcr_enc && in cmp_v4l2_format() 291 lhs->fmt.pix.quantization == rhs->fmt.pix.quantization && in cmp_v4l2_format() 292 lhs->fmt.pix.xfer_func == rhs->fmt.pix.xfer_func; in cmp_v4l2_format()
|
/linux-4.4.14/fs/cifs/ |
D | connect.c | 1954 srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) in srcip_matches() argument 1958 return (rhs->sa_family == AF_UNSPEC); in srcip_matches() 1961 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; in srcip_matches() 1966 struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)rhs; in srcip_matches()
|
/linux-4.4.14/drivers/net/ethernet/3com/ |
D | 3c59x.c | 507 #define BFINS(lhs, rhs, offset, bitcount) \ argument 509 (((rhs) & ((1 << (bitcount)) - 1)) << (offset)))
|