Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dtime64.h55 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
57 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
59 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
61 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
67 struct timespec64 rhs) in timespec64_add() argument
70 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
71 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
79 struct timespec64 rhs) in timespec64_sub() argument
82 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
83 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
[all …]
Dtime32.h60 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare() argument
62 if (lhs->tv_sec < rhs->tv_sec) in timespec_compare()
64 if (lhs->tv_sec > rhs->tv_sec) in timespec_compare()
66 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare()
72 struct timespec rhs) in timespec_add() argument
76 set_normalized_timespec(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec_add()
77 lhs.tv_nsec + rhs.tv_nsec); in timespec_add()
85 struct timespec rhs) in timespec_sub() argument
89 set_normalized_timespec(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec_sub()
90 lhs.tv_nsec - rhs.tv_nsec); in timespec_sub()
Dpercpu_counter.h46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
48 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
50 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
116 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
118 if (fbc->count > rhs) in percpu_counter_compare()
120 else if (fbc->count < rhs) in percpu_counter_compare()
127 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
129 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
Dktime.h46 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
49 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
55 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
216 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
Dcompat.h461 struct compat_timeval *rhs) in compat_timeval_compare() argument
463 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare()
465 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare()
467 return lhs->tv_usec - rhs->tv_usec; in compat_timeval_compare()
471 struct compat_timespec *rhs) in compat_timespec_compare() argument
473 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare()
475 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare()
477 return lhs->tv_nsec - rhs->tv_nsec; in compat_timespec_compare()
Drtc.h32 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub() argument
34 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); in rtc_tm_sub()
/Linux-v4.19/lib/
Dubsan.c167 unsigned long rhs, char op) in handle_overflow() argument
181 val_to_string(rhs_val_str, sizeof(rhs_val_str), type, rhs); in handle_overflow()
195 unsigned long rhs) in __ubsan_handle_add_overflow() argument
198 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
204 unsigned long rhs) in __ubsan_handle_sub_overflow() argument
206 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
212 unsigned long rhs) in __ubsan_handle_mul_overflow() argument
214 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
241 unsigned long rhs) in __ubsan_handle_divrem_overflow() argument
251 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow()
[all …]
Dpercpu_counter.c202 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
208 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
209 if (count > rhs) in __percpu_counter_compare()
216 if (count > rhs) in __percpu_counter_compare()
218 else if (count < rhs) in __percpu_counter_compare()
/Linux-v4.19/include/asm-generic/
Dword-at-a-time.h17 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
20 return ~(mask | rhs); in prep_zero_mask()
43 unsigned long rhs = val | c->low_bits; in has_zero() local
44 *data = rhs; in has_zero()
45 return (val + c->high_bits) & ~rhs; in has_zero()
/Linux-v4.19/arch/powerpc/include/asm/
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()
39 unsigned long rhs = val | c->low_bits; in has_zero() local
40 *data = rhs; in has_zero()
41 return (val + c->high_bits) & ~rhs; in has_zero()
/Linux-v4.19/tools/testing/selftests/powerpc/primitives/
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()
39 unsigned long rhs = val | c->low_bits; in has_zero() local
40 *data = rhs; in has_zero()
41 return (val + c->high_bits) & ~rhs; in has_zero()
/Linux-v4.19/tools/perf/scripts/python/
Dcompaction-times.py61 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-v4.19/drivers/md/
Ddm-bio-prison-v2.c88 struct dm_cell_key_v2 *rhs) in cmp_keys() argument
90 if (lhs->virtual < rhs->virtual) in cmp_keys()
93 if (lhs->virtual > rhs->virtual) in cmp_keys()
96 if (lhs->dev < rhs->dev) in cmp_keys()
99 if (lhs->dev > rhs->dev) in cmp_keys()
102 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
105 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
Ddm-bio-prison-v1.c86 struct dm_cell_key *rhs) in cmp_keys() argument
88 if (lhs->virtual < rhs->virtual) in cmp_keys()
91 if (lhs->virtual > rhs->virtual) in cmp_keys()
94 if (lhs->dev < rhs->dev) in cmp_keys()
97 if (lhs->dev > rhs->dev) in cmp_keys()
100 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
103 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
Ddm-cache-background-tracker.c68 static int cmp_oblock(dm_oblock_t lhs, dm_oblock_t rhs) in cmp_oblock() argument
70 if (from_oblock(lhs) < from_oblock(rhs)) in cmp_oblock()
73 if (from_oblock(rhs) < from_oblock(lhs)) in cmp_oblock()
/Linux-v4.19/fs/hpfs/
Dsuper.c405 char *rhs = args[0].from; in parse_opts() local
406 if (!rhs || !*rhs) in parse_opts()
408 if (*rhs == '-') m = -1; in parse_opts()
409 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts()
410 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts()
411 if (*rhs) in parse_opts()
/Linux-v4.19/scripts/gcc-plugins/
Dlatent_entropy_plugin.c307 static enum tree_code get_op(tree *rhs) in get_op() argument
320 if (rhs) { in get_op()
335 if (rhs) in get_op()
336 *rhs = build_int_cstu(long_unsigned_type_node, random_const); in get_op()
350 tree rhs; in perturb_local_entropy() local
353 op = get_op(&rhs); in perturb_local_entropy()
354 assign = create_assign(op, local_entropy, local_entropy, rhs); in perturb_local_entropy()
Drandomize_layout_plugin.c45 const char *rhs; member
678 static bool dominated_by_is_err(const_tree rhs, basic_block bb) in dominated_by_is_err() argument
728 if (is_err_arg != rhs) in dominated_by_is_err()
796 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs)) in whitelisted_cast()
/Linux-v4.19/drivers/bluetooth/
Dhci_mrvl.c59 __le16 rhs; member
158 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req()
191 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
/Linux-v4.19/net/ceph/
Dosdmap.c581 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
583 if (lhs->pool < rhs->pool) in ceph_pg_compare()
585 if (lhs->pool > rhs->pool) in ceph_pg_compare()
587 if (lhs->seed < rhs->seed) in ceph_pg_compare()
589 if (lhs->seed > rhs->seed) in ceph_pg_compare()
595 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
599 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
603 if (lhs->shard < rhs->shard) in ceph_spg_compare()
605 if (lhs->shard > rhs->shard) in ceph_spg_compare()
1992 const struct ceph_osds *rhs) in __osds_equal() argument
[all …]
/Linux-v4.19/drivers/net/ethernet/freescale/
Dfec_ptp.c295 u64 lhs, rhs; in fec_ptp_adjfreq() local
313 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq()
315 if (lhs >= rhs) { in fec_ptp_adjfreq()
317 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
/Linux-v4.19/include/linux/ceph/
Dosdmap.h34 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs);
35 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs);
/Linux-v4.19/kernel/time/
Dtime.c838 const struct timespec64 rhs) in timespec64_add_safe() argument
842 set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec, in timespec64_add_safe()
843 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add_safe()
845 if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) { in timespec64_add_safe()
/Linux-v4.19/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-v4.19/arch/arm64/include/asm/
Dpgtable.h278 pteval_t lhs, rhs; in pte_same() local
281 rhs = pte_val(pte_b); in pte_same()
287 rhs &= ~PTE_RDONLY; in pte_same()
289 return (lhs == rhs); in pte_same()

12