Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-6.6/tools/perf/pmu-events/
H A Dmetric.py116 rhs: Union[int, float, Expression]):
119 self.rhs = _Constify(rhs)
124 rhs: bool = False) -> str:
137 other (Expression): is a lhs or rhs operator
139 rhs (bool): is ``other`` on the RHS
148 if rhs and _PRECEDENCE.get(self.operator, -1) == _PRECEDENCE.get(
155 f'{self.Bracket(self.rhs, self.rhs.ToPerfJson(), True)}')
159 f'{self.Bracket(self.rhs, sel
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dtime64.h48 * lhs < rhs: return <0
49 * lhs == rhs: return 0
50 * lhs > rhs: return >0
52 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
58 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
64 struct timespec64 rhs) in timespec64_add()
67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
68 lhs.tv_nsec + rhs in timespec64_add()
63 timespec64_add(struct timespec64 lhs, struct timespec64 rhs) timespec64_add() argument
75 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) timespec64_sub() argument
[all...]
H A Dpercpu_counter.h46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
49 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
51 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
117 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
119 if (fbc->count > rhs) in percpu_counter_compare()
121 else if (fbc->count < rhs) in percpu_counter_compare()
128 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
130 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
H A Dktime.h46 /* Subtract two ktime_t variables. rem = lhs -rhs: */
47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs))
49 /* Add two ktime_t variables. res = lhs + rhs: */
50 #define ktime_add(lhs, rhs) ((lhs) + (rhs))
56 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs))
199 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
/kernel/linux/linux-6.6/include/linux/
H A Dtime64.h53 * lhs < rhs: return <0
54 * lhs == rhs: return 0
55 * lhs > rhs: return >0
57 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
59 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
61 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
63 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
69 struct timespec64 rhs) in timespec64_add()
72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
73 lhs.tv_nsec + rhs in timespec64_add()
68 timespec64_add(struct timespec64 lhs, struct timespec64 rhs) timespec64_add() argument
80 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) timespec64_sub() argument
[all...]
H A Dktime.h46 /* Subtract two ktime_t variables. rem = lhs -rhs: */
47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs))
49 /* Add two ktime_t variables. res = lhs + rhs: */
50 #define ktime_add(lhs, rhs) ((lhs) + (rhs))
56 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs))
199 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
H A Dpercpu_counter.h59 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
62 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
64 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
162 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
164 if (fbc->count > rhs) in percpu_counter_compare()
166 else if (fbc->count < rhs) in percpu_counter_compare()
173 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
175 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
H A Devlist.c76 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs) in arch_evlist__cmp() argument
79 (arch_evsel__must_be_in_group(lhs) || arch_evsel__must_be_in_group(rhs))) { in arch_evlist__cmp()
83 if (strcasestr(rhs->name, "slots") && !strcasestr(rhs->name, "uops_retired.slots")) in arch_evlist__cmp()
86 if (strcasestr(lhs->name, "topdown") && !strcasestr(rhs->name, "topdown")) in arch_evlist__cmp()
88 if (!strcasestr(lhs->name, "topdown") && strcasestr(rhs->name, "topdown")) in arch_evlist__cmp()
93 return lhs->core.idx - rhs->core.idx; in arch_evlist__cmp()
/kernel/linux/linux-5.10/lib/
H A Dubsan.c158 void *rhs, char op) in handle_overflow()
173 val_to_string(rhs_val_str, sizeof(rhs_val_str), type, rhs); in handle_overflow()
184 void *lhs, void *rhs) in __ubsan_handle_add_overflow()
187 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
192 void *lhs, void *rhs) in __ubsan_handle_sub_overflow()
194 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
199 void *lhs, void *rhs) in __ubsan_handle_mul_overflow()
201 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
225 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
235 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow()
157 handle_overflow(struct overflow_data *data, void *lhs, void *rhs, char op) handle_overflow() argument
183 __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs) __ubsan_handle_add_overflow() argument
191 __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs) __ubsan_handle_sub_overflow() argument
198 __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs) __ubsan_handle_mul_overflow() argument
351 __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) __ubsan_handle_shift_out_of_bounds() argument
[all...]
H A Dtest_min_heap.c14 static __init bool less_than(const void *lhs, const void *rhs) in less_than() argument
16 return *(int *)lhs < *(int *)rhs; in less_than()
19 static __init bool greater_than(const void *lhs, const void *rhs) in greater_than() argument
21 return *(int *)lhs > *(int *)rhs; in greater_than()
24 static __init void swap_ints(void *lhs, void *rhs) in swap_ints() argument
28 *(int *)lhs = *(int *)rhs; in swap_ints()
29 *(int *)rhs = temp; in swap_ints()
H A Dpercpu_counter.c221 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
227 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
228 if (count > rhs) in __percpu_counter_compare()
235 if (count > rhs) in __percpu_counter_compare()
237 else if (count < rhs) in __percpu_counter_compare()
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c177 #define assert_op(lhs, rhs, fmt, op) \
180 typeof(rhs) _rhs = (rhs); \
183 fatal_error("assertion " #lhs " " #op " " #rhs \
184 " failed (lhs=" fmt ", rhs=" fmt \
189 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==)
190 #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=)
191 #define assert_lt(lhs, rhs, fm
[all...]
/kernel/linux/linux-5.10/include/asm-generic/
H A Dword-at-a-time.h17 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-6.6/include/asm-generic/
H A Dword-at-a-time.h17 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-6.6/lib/
H A Dtest_min_heap.c14 static __init bool less_than(const void *lhs, const void *rhs) in less_than() argument
16 return *(int *)lhs < *(int *)rhs; in less_than()
19 static __init bool greater_than(const void *lhs, const void *rhs) in greater_than() argument
21 return *(int *)lhs > *(int *)rhs; in greater_than()
24 static __init void swap_ints(void *lhs, void *rhs) in swap_ints() argument
28 *(int *)lhs = *(int *)rhs; in swap_ints()
29 *(int *)rhs = temp; in swap_ints()
H A Dubsan.c226 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
236 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow()
238 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow()
352 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument
366 val_to_string(rhs_str, sizeof(rhs_str), rhs_type, rhs); in __ubsan_handle_shift_out_of_bounds()
369 if (val_is_negative(rhs_type, rhs)) in __ubsan_handle_shift_out_of_bounds()
372 else if (get_unsigned_val(rhs_type, rhs) >= in __ubsan_handle_shift_out_of_bounds()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/primitives/
H A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/primitives/
H A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time *c) 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()
/kernel/linux/linux-6.6/rust/alloc/vec/
H A Dpartial_eq.rs10 ([$($vars:tt)*] $lhs:ty, $rhs:ty $(where $ty:ty: $bound:ident)?, #[$stability:meta]) => {
12 impl<T, U, $($vars)*> PartialEq<$rhs> for $lhs
18 fn eq(&self, other: &$rhs) -> bool { self[..] == other[..] } in eq()
20 fn ne(&self, other: &$rhs) -> bool { self[..] != other[..] } in ne()
/kernel/linux/linux-5.10/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
[all...]
/kernel/linux/linux-6.6/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
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-bio-prison-v2.c88 struct dm_cell_key_v2 *rhs) in cmp_keys()
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()
87 cmp_keys(struct dm_cell_key_v2 *lhs, struct dm_cell_key_v2 *rhs) cmp_keys() argument
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-bio-prison-v2.c89 struct dm_cell_key_v2 *rhs) in cmp_keys()
91 if (lhs->virtual < rhs->virtual) in cmp_keys()
94 if (lhs->virtual > rhs->virtual) in cmp_keys()
97 if (lhs->dev < rhs->dev) in cmp_keys()
100 if (lhs->dev > rhs->dev) in cmp_keys()
103 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
106 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
88 cmp_keys(struct dm_cell_key_v2 *lhs, struct dm_cell_key_v2 *rhs) cmp_keys() argument

Completed in 11 milliseconds

1234