Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 20 of 20) sorted by relevance

/linux-4.1.27/include/linux/
Dtime.h24 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 …]
Dtime64.h89 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 …]
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) 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()
Dktime.h59 #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);
Dcompat.h396 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()
/linux-4.1.27/include/asm-generic/
Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
24 return ~(mask | rhs); in prep_zero_mask()
47 unsigned long rhs = val | c->low_bits; in has_zero() local
48 *data = rhs; in has_zero()
49 return (val + c->high_bits) & ~rhs; in has_zero()
/linux-4.1.27/tools/testing/selftests/powerpc/primitives/
Dword-at-a-time.h20 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.1.27/arch/powerpc/include/asm/
Dword-at-a-time.h20 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.1.27/lib/
Dpercpu_counter.c200 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.1.27/drivers/md/
Ddm-bio-prison.c84 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()
Ddm-snap.c162 static int bdev_equal(struct block_device *lhs, struct block_device *rhs) in bdev_equal() argument
168 return lhs == rhs; in bdev_equal()
Ddm-thin.c1831 static int cmp_cells(const void *lhs, const void *rhs) in cmp_cells() argument
1834 struct dm_bio_prison_cell *rhs_cell = *((struct dm_bio_prison_cell **) rhs); in cmp_cells()
/linux-4.1.27/fs/hpfs/
Dsuper.c379 char *rhs = args[0].from; in parse_opts() local
380 if (!rhs || !*rhs) in parse_opts()
382 if (*rhs == '-') m = -1; in parse_opts()
383 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts()
384 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts()
385 if (*rhs) in parse_opts()
/linux-4.1.27/kernel/time/
Dtime.c774 const struct timespec rhs) in timespec_add_safe() argument
778 set_normalized_timespec(&res, lhs.tv_sec + rhs.tv_sec, in timespec_add_safe()
779 lhs.tv_nsec + rhs.tv_nsec); in timespec_add_safe()
781 if (res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec) in timespec_add_safe()
Dhrtimer.c293 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() argument
295 ktime_t res = ktime_add(lhs, rhs); in ktime_add_safe()
301 if (res.tv64 < 0 || res.tv64 < lhs.tv64 || res.tv64 < rhs.tv64) in ktime_add_safe()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dfec_ptp.c311 u64 lhs, rhs; in fec_ptp_adjfreq() local
329 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq()
331 if (lhs >= rhs) { in fec_ptp_adjfreq()
333 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
/linux-4.1.27/fs/ocfs2/
Dreservations.c772 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.1.27/drivers/media/platform/am437x/
Dam437x-vpfe.c282 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()
/linux-4.1.27/fs/cifs/
Dconnect.c1910 srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs) in srcip_matches() argument
1914 return (rhs->sa_family == AF_UNSPEC); in srcip_matches()
1917 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; in srcip_matches()
1922 struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)rhs; in srcip_matches()
/linux-4.1.27/drivers/net/ethernet/3com/
D3c59x.c507 #define BFINS(lhs, rhs, offset, bitcount) \ argument
509 (((rhs) & ((1 << (bitcount)) - 1)) << (offset)))