Home
last modified time | relevance | path

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

123

/linux/tools/perf/pmu-events/
H A Dmetric.py230 rhs: Union[int, float, Expression]):
233 self.rhs = _Constify(rhs)
238 rhs: bool = False) -> str:
251 other (Expression): is a lhs or rhs operator
253 rhs (bool): is ``other`` on the RHS
262 if rhs and _PRECEDENCE.get(self.operator, -1) == _PRECEDENCE.get(
269 f'{self.Bracket(self.rhs, self.rhs.ToPerfJson(), True)}')
273 f'{self.Bracket(self.rhs, sel
[all...]
/linux/tools/perf/arch/x86/util/
H A Devlist.c8 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs) in arch_evlist__cmp() argument
51 (arch_evsel__must_be_in_group(lhs) || arch_evsel__must_be_in_group(rhs))) { in arch_evlist__cmp()
55 if (arch_is_topdown_slots(rhs)) in arch_evlist__cmp()
64 if (lhs->core.leader != rhs->core.leader) { in arch_evlist__cmp()
66 bool rhs_topdown = arch_is_topdown_metrics(rhs); in arch_evlist__cmp()
76 if (lhs->retire_lat && !rhs->retire_lat) in arch_evlist__cmp()
78 if (!lhs->retire_lat && rhs->retire_lat) in arch_evlist__cmp()
82 return lhs->core.idx - rhs->core.idx; in arch_evlist__cmp()
/linux/rust/kernel/
H A Dtime.rs258 fn add(self, rhs: Delta) -> Self::Output { in add()
261 let res = self.inner + rhs.value; in add()
278 fn sub(self, rhs: Delta) -> Self::Output { in sub()
281 let res = self.inner - rhs.value; in sub()
358 fn add(self, rhs: Self) -> Self { in add()
360 value: self.value + rhs.value, in add()
367 fn add_assign(&mut self, rhs: Self) { in add_assign()
368 self.value += rhs.value; in add_assign()
376 fn sub(self, rhs: Self) -> Self::Output { in sub()
378 value: self.value - rhs.value, in sub()
[all …]
H A Dalloc.rs54 fn bitor(self, rhs: Self) -> Self::Output {
55 Self(self.0 | rhs.0)
61 fn bitand(self, rhs: Self) -> Self::Output {
62 Self(self.0 & rhs.0)
/linux/rust/kernel/sync/atomic/
H A Dpredefine.rs58 fn rhs_into_delta(rhs: i32) -> i32 {
59 rhs
71 fn rhs_into_delta(rhs: i64) -> i64 { in rhs_into_delta()
72 rhs
111 fn rhs_into_delta(rhs: isize) -> isize_atomic_repr {
112 rhs as isize_atomic_repr
124 fn rhs_into_delta(rhs: u32) -> i32 {
125 rhs as i32
137 fn rhs_into_delta(rhs: u64) -> i64 { in atomic_basic_tests()
138 rhs a in atomic_basic_tests()
[all...]
/linux/rust/kernel/num/
H A Dbounded.rs667 fn add(self, rhs: Bounded<T, M>) -> Self::Output {
668 self.get() + rhs.get() in rem()
679 fn bitand(self, rhs: Bounded<T, M>) -> Self::Output {
680 self.get() & rhs.get() in sub()
691 fn bitor(self, rhs: Bounded<T, M>) -> Self::Output {
692 self.get() | rhs.get()
703 fn bitxor(self, rhs: Bounded<T, M>) -> Self::Output {
704 self.get() ^ rhs.get()
715 fn div(self, rhs: Bounded<T, M>) -> Self::Output {
716 self.get() / rhs
[all...]
/linux/rust/zerocopy/src/
H A Dbyteorder.rs318 fn $method(self, rhs: $name<O>) -> $name<O> {
320 let rhs_native: $native = rhs.get();
330 fn $method(self, rhs: $name<O>) -> $name<O> {
331 let rhs_native: $native = rhs.get();
341 fn $method(self, rhs: $native) -> $name<O> {
343 let result_native = core::ops::$trait::$method(self_native, rhs);
350 fn $method_assign(&mut self, rhs: $name<O>) {
351 *self = core::ops::$trait::$method(*self, rhs);
357 fn $method_assign(&mut self, rhs: $name<O>) {
358 let rhs_native: $native = rhs.get();
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c180 #define assert_op(lhs, rhs, fmt, op) \ argument
183 typeof(rhs) _rhs = (rhs); \
186 fatal_error("assertion " #lhs " " #op " " #rhs \
192 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) argument
193 #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=) argument
194 #define assert_lt(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, <) argument
195 #define assert_ge(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, >=) argument
/linux/lib/
H A Dubsan.c242 void *rhs, char op) in handle_overflow() argument
257 val_to_string(rhs_val_str, sizeof(rhs_val_str), type, rhs); in handle_overflow()
268 void *lhs, void *rhs) in __ubsan_handle_add_overflow() argument
271 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
276 void *lhs, void *rhs) in __ubsan_handle_sub_overflow() argument
278 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
283 void *lhs, void *rhs) in __ubsan_handle_mul_overflow() argument
285 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
333 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
345 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow()
[all …]
H A Dpercpu_counter.c292 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
298 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
299 if (count > rhs) in __percpu_counter_compare()
306 if (count > rhs) in __percpu_counter_compare()
308 else if (count < rhs) in __percpu_counter_compare()
/linux/include/linux/
H A Dktime.h45 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
48 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
54 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
197 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);
64 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
66 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
171 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
173 if (fbc->count > rhs) in percpu_counter_compare()
175 else if (fbc->count < rhs) in percpu_counter_compare()
182 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
184 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
H A Diosys-map.h215 const struct iosys_map *rhs) in iosys_map_is_equal() argument
217 if (lhs->is_iomem != rhs->is_iomem) in iosys_map_is_equal()
220 return lhs->vaddr_iomem == rhs->vaddr_iomem; in iosys_map_is_equal()
222 return lhs->vaddr == rhs->vaddr; in iosys_map_is_equal()
/linux/include/asm-generic/
H A Dword-at-a-time.h18 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
21 return ~(mask | rhs); in prep_zero_mask()
44 unsigned long rhs = val | c->low_bits; in has_zero() local
45 *data = rhs; in has_zero()
46 return (val + c->high_bits) & ~rhs; in has_zero()
/linux/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… 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/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… 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/tools/perf/scripts/python/
H A 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/rust/kernel/irq/
H A Dflags.rs109 fn bitor(self, rhs: Self) -> Self::Output { in bitor()
110 Self(self.0 | rhs.0) in bitor()
116 fn bitand(self, rhs: Self) -> Self::Output { in bitand()
117 Self(self.0 & rhs.0) in bitand()
/linux/drivers/md/
H A Ddm-bio-prison-v2.c89 struct dm_cell_key_v2 *rhs) in cmp_keys() argument
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()
H A Ddm-bio-prison-v1.c97 struct dm_cell_key *rhs) in cmp_keys() argument
99 if (lhs->virtual < rhs->virtual) in cmp_keys()
102 if (lhs->virtual > rhs->virtual) in cmp_keys()
105 if (lhs->dev < rhs->dev) in cmp_keys()
108 if (lhs->dev > rhs->dev) in cmp_keys()
111 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
114 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
/linux/rust/kernel/io/
H A Dresource.rs197 fn bitor(self, rhs: Self) -> Self::Output { in bitor()
198 Self(self.0 | rhs.0) in bitor()
204 fn bitand(self, rhs: Self) -> Self::Output { in bitand()
205 Self(self.0 & rhs.0) in bitand()
/linux/rust/zerocopy/src/util/
H A Dmod.rs736 unsafe fn unchecked_add(self, rhs: Self) -> Self; in unchecked_add()
743 unsafe fn unchecked_sub(self, rhs: Self) -> Self; in unchecked_sub()
750 unsafe fn unchecked_mul(self, rhs: Self) -> Self; in unchecked_mul()
762 unsafe fn unchecked_add(self, rhs: usize) -> usize { in unchecked_add()
763 match self.checked_add(rhs) { in unchecked_add()
778 unsafe fn unchecked_sub(self, rhs: usize) -> usize { in unchecked_sub()
779 match self.checked_sub(rhs) { in unchecked_sub()
794 unsafe fn unchecked_mul(self, rhs: usize) -> usize { in unchecked_mul()
795 match self.checked_mul(rhs) { in unchecked_mul()
/linux/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c301 static enum tree_code get_op(tree *rhs) in get_op() argument
314 if (rhs) { in get_op()
329 if (rhs) in get_op()
330 *rhs = build_int_cstu(long_unsigned_type_node, random_const); in get_op()
344 tree rhs; in perturb_local_entropy() local
347 op = get_op(&rhs); in perturb_local_entropy()
348 assign = create_assign(op, local_entropy, local_entropy, rhs); in perturb_local_entropy()
/linux/arch/riscv/kernel/tests/module_test/
H A Dtest_module_linking_main.c29 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, lhs, rhs) argument
/linux/include/linux/ceph/
H A Dmsgr.h91 const struct ceph_entity_addr *rhs) in ceph_addr_equal_no_type() argument
93 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && in ceph_addr_equal_no_type()
94 lhs->nonce == rhs->nonce; in ceph_addr_equal_no_type()

123