Searched refs:rhs (Results 1 - 22 of 22) sorted by relevance

/linux-4.4.14/include/linux/
H A Dtime64.h122 * lhs < rhs: return <0
123 * lhs == rhs: return 0
124 * lhs > rhs: return >0
126 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) timespec64_compare() argument
128 if (lhs->tv_sec < rhs->tv_sec) timespec64_compare()
130 if (lhs->tv_sec > rhs->tv_sec) timespec64_compare()
132 return lhs->tv_nsec - rhs->tv_nsec; timespec64_compare()
143 const struct timespec64 rhs);
147 struct timespec64 rhs) timespec64_add()
150 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, timespec64_add()
151 lhs.tv_nsec + rhs.tv_nsec); timespec64_add()
156 * sub = lhs - rhs, in normalized form
159 struct timespec64 rhs) timespec64_sub()
162 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, timespec64_sub()
163 lhs.tv_nsec - rhs.tv_nsec); timespec64_sub()
146 timespec64_add(struct timespec64 lhs, struct timespec64 rhs) timespec64_add() argument
158 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) timespec64_sub() argument
H A Dtime.h20 * 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 Dpercpu_counter.h44 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 Dktime.h58 /* 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 Dcompat.h396 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
H A Drtc.h30 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) rtc_tm_sub() argument
32 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); rtc_tm_sub()
/linux-4.4.14/include/asm-generic/
H A Dword-at-a-time.h16 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) prep_zero_mask() argument
19 return ~(mask | rhs); prep_zero_mask()
42 unsigned long rhs = val | c->low_bits; has_zero() local
43 *data = rhs; has_zero()
44 return (val + c->high_bits) & ~rhs; has_zero()
/linux-4.4.14/tools/perf/scripts/python/
H A Dcompaction-times.py61 def __add__(self, rhs):
62 self.aval += rhs.aval
63 self.bval += rhs.bval
76 def __add__(self, rhs):
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):
168 self.ns += rhs.ns
169 self.val += rhs.val
/linux-4.4.14/lib/
H A Dpercpu_counter.c200 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.4.14/arch/powerpc/include/asm/
H A Dword-at-a-time.h20 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.4.14/tools/testing/selftests/powerpc/primitives/
H A Dword-at-a-time.h20 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.4.14/drivers/md/
H A Ddm-bio-prison.c84 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 Ddm-snap.c169 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) bdev_equal() argument
175 return lhs == rhs; bdev_equal()
H A Ddm-thin.c2049 static int cmp_cells(const void *lhs, const void *rhs) cmp_cells() argument
2052 struct dm_bio_prison_cell *rhs_cell = *((struct dm_bio_prison_cell **) rhs); cmp_cells()
/linux-4.4.14/fs/hpfs/
H A Dsuper.c406 char *rhs = args[0].from; parse_opts() local
407 if (!rhs || !*rhs) parse_opts()
409 if (*rhs == '-') m = -1; parse_opts()
410 if (*rhs == '+' || *rhs == '-') rhs++; parse_opts()
411 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; parse_opts()
412 if (*rhs) parse_opts()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dfec_ptp.c309 u64 lhs, rhs; fec_ptp_adjfreq() local
327 rhs = (u64)ppb * (u64)fep->ptp_inc; fec_ptp_adjfreq()
329 if (lhs >= rhs) { fec_ptp_adjfreq()
331 corr_period = div_u64(lhs, rhs); fec_ptp_adjfreq()
/linux-4.4.14/kernel/time/
H A Dtime.c753 const struct timespec rhs) timespec_add_safe()
757 set_normalized_timespec(&res, lhs.tv_sec + rhs.tv_sec, timespec_add_safe()
758 lhs.tv_nsec + rhs.tv_nsec); timespec_add_safe()
760 if (res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec) timespec_add_safe()
752 timespec_add_safe(const struct timespec lhs, const struct timespec rhs) timespec_add_safe() argument
H A Dhrtimer.c308 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) ktime_add_safe() argument
310 ktime_t res = ktime_add(lhs, rhs); ktime_add_safe()
316 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) ktime_add_safe()
/linux-4.4.14/fs/ocfs2/
H A Dreservations.c772 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.4.14/drivers/media/platform/am437x/
H A Dam437x-vpfe.c282 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()
292 lhs->fmt.pix.xfer_func == rhs->fmt.pix.xfer_func; cmp_v4l2_format()
/linux-4.4.14/fs/cifs/
H A Dconnect.c1949 /** Returns true if srcaddr isn't specified and rhs isn't
1951 * matches the IP address of the rhs argument.
1954 srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) srcip_matches() argument
1958 return (rhs->sa_family == AF_UNSPEC); srcip_matches()
1961 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; srcip_matches()
1966 struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)rhs; srcip_matches()
/linux-4.4.14/drivers/net/ethernet/3com/
H A D3c59x.c507 #define BFINS(lhs, rhs, offset, bitcount) \
509 (((rhs) & ((1 << (bitcount)) - 1)) << (offset)))

Completed in 1267 milliseconds