/linux-4.1.27/include/asm-generic/ |
H A D | word-at-a-time.h | 21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) prep_zero_mask() argument 24 return ~(mask | rhs); prep_zero_mask() 47 unsigned long rhs = val | c->low_bits; has_zero() local 48 *data = rhs; has_zero() 49 return (val + c->high_bits) & ~rhs; has_zero()
|
/linux-4.1.27/include/linux/ |
H A D | time64.h | 85 * lhs < rhs: return <0 86 * lhs == rhs: return 0 87 * lhs > rhs: return >0 89 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) timespec64_compare() argument 91 if (lhs->tv_sec < rhs->tv_sec) timespec64_compare() 93 if (lhs->tv_sec > rhs->tv_sec) timespec64_compare() 95 return lhs->tv_nsec - rhs->tv_nsec; timespec64_compare() 106 const struct timespec64 rhs); 110 struct timespec64 rhs) timespec64_add() 113 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, timespec64_add() 114 lhs.tv_nsec + rhs.tv_nsec); timespec64_add() 119 * sub = lhs - rhs, in normalized form 122 struct timespec64 rhs) timespec64_sub() 125 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, timespec64_sub() 126 lhs.tv_nsec - rhs.tv_nsec); timespec64_sub() 109 timespec64_add(struct timespec64 lhs, struct timespec64 rhs) timespec64_add() argument 121 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) timespec64_sub() argument
|
H A D | time.h | 20 * lhs < rhs: return <0 21 * lhs == rhs: return 0 22 * lhs > rhs: return >0 24 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) timespec_compare() argument 26 if (lhs->tv_sec < rhs->tv_sec) timespec_compare() 28 if (lhs->tv_sec > rhs->tv_sec) timespec_compare() 30 return lhs->tv_nsec - rhs->tv_nsec; timespec_compare() 33 static inline int timeval_compare(const struct timeval *lhs, const struct timeval *rhs) timeval_compare() argument 35 if (lhs->tv_sec < rhs->tv_sec) timeval_compare() 37 if (lhs->tv_sec > rhs->tv_sec) timeval_compare() 39 return lhs->tv_usec - rhs->tv_usec; timeval_compare() 65 const struct timespec rhs); 69 struct timespec rhs) timespec_add() 72 set_normalized_timespec(&ts_delta, lhs.tv_sec + rhs.tv_sec, timespec_add() 73 lhs.tv_nsec + rhs.tv_nsec); timespec_add() 78 * sub = lhs - rhs, in normalized form 81 struct timespec rhs) timespec_sub() 84 set_normalized_timespec(&ts_delta, lhs.tv_sec - rhs.tv_sec, timespec_sub() 85 lhs.tv_nsec - rhs.tv_nsec); timespec_sub() 68 timespec_add(struct timespec lhs, struct timespec rhs) timespec_add() argument 80 timespec_sub(struct timespec lhs, struct timespec rhs) timespec_sub() argument
|
H A 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) percpu_counter_compare() argument 48 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); percpu_counter_compare() 114 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) percpu_counter_compare() argument 116 if (fbc->count > rhs) percpu_counter_compare() 118 else if (fbc->count < rhs) percpu_counter_compare() 125 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) __percpu_counter_compare() argument 127 return percpu_counter_compare(fbc, rhs); __percpu_counter_compare()
|
H A D | ktime.h | 58 /* Subtract two ktime_t variables. rem = lhs -rhs: */ 59 #define ktime_sub(lhs, rhs) \ 60 ({ (ktime_t){ .tv64 = (lhs).tv64 - (rhs).tv64 }; }) 62 /* Add two ktime_t variables. res = lhs + rhs: */ 63 #define ktime_add(lhs, rhs) \ 64 ({ (ktime_t){ .tv64 = (lhs).tv64 + (rhs).tv64 }; }) 234 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
H A D | compat.h | 396 struct compat_timeval *rhs) compat_timeval_compare() 398 if (lhs->tv_sec < rhs->tv_sec) compat_timeval_compare() 400 if (lhs->tv_sec > rhs->tv_sec) compat_timeval_compare() 402 return lhs->tv_usec - rhs->tv_usec; compat_timeval_compare() 406 struct compat_timespec *rhs) compat_timespec_compare() 408 if (lhs->tv_sec < rhs->tv_sec) compat_timespec_compare() 410 if (lhs->tv_sec > rhs->tv_sec) compat_timespec_compare() 412 return lhs->tv_nsec - rhs->tv_nsec; compat_timespec_compare() 395 compat_timeval_compare(struct compat_timeval *lhs, struct compat_timeval *rhs) compat_timeval_compare() argument 405 compat_timespec_compare(struct compat_timespec *lhs, struct compat_timespec *rhs) compat_timespec_compare() argument
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A 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 *c) prep_zero_mask() argument 23 return ~(mask | rhs); prep_zero_mask() 38 unsigned long rhs = val | c->low_bits; has_zero() local 39 *data = rhs; has_zero() 40 return (val + c->high_bits) & ~rhs; has_zero()
|
/linux-4.1.27/lib/ |
H A D | percpu_counter.c | 200 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) __percpu_counter_compare() argument 206 if (abs(count - rhs) > (batch * num_online_cpus())) { __percpu_counter_compare() 207 if (count > rhs) __percpu_counter_compare() 214 if (count > rhs) __percpu_counter_compare() 216 else if (count < rhs) __percpu_counter_compare()
|
/linux-4.1.27/tools/testing/selftests/powerpc/primitives/ |
H A 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 *c) prep_zero_mask() argument 23 return ~(mask | rhs); prep_zero_mask() 38 unsigned long rhs = val | c->low_bits; has_zero() local 39 *data = rhs; has_zero() 40 return (val + c->high_bits) & ~rhs; has_zero()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-bio-prison.c | 84 struct dm_cell_key *rhs) cmp_keys() 86 if (lhs->virtual < rhs->virtual) cmp_keys() 89 if (lhs->virtual > rhs->virtual) cmp_keys() 92 if (lhs->dev < rhs->dev) cmp_keys() 95 if (lhs->dev > rhs->dev) cmp_keys() 98 if (lhs->block_end <= rhs->block_begin) cmp_keys() 101 if (lhs->block_begin >= rhs->block_end) cmp_keys() 83 cmp_keys(struct dm_cell_key *lhs, struct dm_cell_key *rhs) cmp_keys() argument
|
H A D | dm-snap.c | 162 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) bdev_equal() argument 168 return lhs == rhs; bdev_equal()
|
H A D | dm-thin.c | 1831 static int cmp_cells(const void *lhs, const void *rhs) cmp_cells() argument 1834 struct dm_bio_prison_cell *rhs_cell = *((struct dm_bio_prison_cell **) rhs); cmp_cells()
|
/linux-4.1.27/fs/hpfs/ |
H A D | super.c | 379 char *rhs = args[0].from; parse_opts() local 380 if (!rhs || !*rhs) parse_opts() 382 if (*rhs == '-') m = -1; parse_opts() 383 if (*rhs == '+' || *rhs == '-') rhs++; parse_opts() 384 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; parse_opts() 385 if (*rhs) parse_opts()
|
/linux-4.1.27/drivers/net/ethernet/freescale/ |
H A D | fec_ptp.c | 311 u64 lhs, rhs; fec_ptp_adjfreq() local 329 rhs = (u64)ppb * (u64)fep->ptp_inc; fec_ptp_adjfreq() 331 if (lhs >= rhs) { fec_ptp_adjfreq() 333 corr_period = div_u64(lhs, rhs); fec_ptp_adjfreq()
|
/linux-4.1.27/kernel/time/ |
H A D | time.c | 774 const struct timespec rhs) timespec_add_safe() 778 set_normalized_timespec(&res, lhs.tv_sec + rhs.tv_sec, timespec_add_safe() 779 lhs.tv_nsec + rhs.tv_nsec); timespec_add_safe() 781 if (res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec) timespec_add_safe() 773 timespec_add_safe(const struct timespec lhs, const struct timespec rhs) timespec_add_safe() argument
|
H A D | hrtimer.c | 293 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) ktime_add_safe() argument 295 ktime_t res = ktime_add(lhs, rhs); ktime_add_safe() 301 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) ktime_add_safe()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | reservations.c | 772 unsigned int rhs = 0; ocfs2_adjust_resv_from_alloc() local 785 rhs = old_end - end; ocfs2_adjust_resv_from_alloc() 790 BUG_ON(rhs == 0); ocfs2_adjust_resv_from_alloc()
|
/linux-4.1.27/drivers/media/platform/am437x/ |
H A D | am437x-vpfe.c | 282 cmp_v4l2_format(const struct v4l2_format *lhs, const struct v4l2_format *rhs) cmp_v4l2_format() argument 284 return lhs->type == rhs->type && cmp_v4l2_format() 285 lhs->fmt.pix.width == rhs->fmt.pix.width && cmp_v4l2_format() 286 lhs->fmt.pix.height == rhs->fmt.pix.height && cmp_v4l2_format() 287 lhs->fmt.pix.pixelformat == rhs->fmt.pix.pixelformat && cmp_v4l2_format() 288 lhs->fmt.pix.field == rhs->fmt.pix.field && cmp_v4l2_format() 289 lhs->fmt.pix.colorspace == rhs->fmt.pix.colorspace && cmp_v4l2_format() 290 lhs->fmt.pix.ycbcr_enc == rhs->fmt.pix.ycbcr_enc && cmp_v4l2_format() 291 lhs->fmt.pix.quantization == rhs->fmt.pix.quantization; cmp_v4l2_format()
|
/linux-4.1.27/fs/cifs/ |
H A D | connect.c | 1905 /** Returns true if srcaddr isn't specified and rhs isn't 1907 * matches the IP address of the rhs argument. 1910 srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) srcip_matches() argument 1914 return (rhs->sa_family == AF_UNSPEC); srcip_matches() 1917 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; srcip_matches() 1922 struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)rhs; srcip_matches()
|
/linux-4.1.27/drivers/net/ethernet/3com/ |
H A D | 3c59x.c | 507 #define BFINS(lhs, rhs, offset, bitcount) \ 509 (((rhs) & ((1 << (bitcount)) - 1)) << (offset)))
|