/linux/tools/perf/pmu-events/ |
H A D | metric.py | 119 self.rhs = _Constify(rhs) 163 rhs = self.rhs.Simplify() 195 other.lhs) and self.rhs.Equals(other.rhs) 202 rhs = None 203 if self.rhs: 204 rhs = self.rhs.Substitute(name, expression) 264 self.rhs = _Constify(rhs) 278 rhs = self.rhs.Simplify() if self.rhs else None 292 result = result and self.rhs.Equals(other.rhs) 300 rhs = None [all …]
|
/linux/include/linux/ |
H A D | time64.h | 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() argument 72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 73 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add() 81 struct timespec64 rhs) in timespec64_sub() argument 84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() 85 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub() [all …]
|
H A D | ktime.h | 45 #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 D | percpu_counter.h | 59 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 D | iosys-map.h | 215 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/tools/perf/arch/x86/util/ |
H A D | evlist.c | 76 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()
|
/linux/lib/ |
H A D | ubsan.c | 240 void *rhs, char op) in handle_overflow() argument 255 val_to_string(rhs_val_str, sizeof(rhs_val_str), type, rhs); in handle_overflow() 266 void *lhs, void *rhs) in __ubsan_handle_add_overflow() argument 269 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow() 274 void *lhs, void *rhs) in __ubsan_handle_sub_overflow() argument 276 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow() 281 void *lhs, void *rhs) in __ubsan_handle_mul_overflow() argument 283 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow() 447 val_to_string(rhs_str, sizeof(rhs_str), rhs_type, rhs); in __ubsan_handle_shift_out_of_bounds() 450 if (val_is_negative(rhs_type, rhs)) in __ubsan_handle_shift_out_of_bounds() [all …]
|
H A D | test_min_heap.c | 14 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 D | ubsan.h | 140 void ubsan_linkage __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs); 141 void ubsan_linkage __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs); 142 void ubsan_linkage __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs); 144 void ubsan_linkage __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs); 148 void ubsan_linkage __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
|
H A D | percpu_counter.c | 258 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument 264 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare() 265 if (count > rhs) in __percpu_counter_compare() 272 if (count > rhs) in __percpu_counter_compare() 274 else if (count < rhs) in __percpu_counter_compare()
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 177 #define assert_op(lhs, rhs, fmt, op) \ argument 180 typeof(rhs) _rhs = (rhs); \ 183 fatal_error("assertion " #lhs " " #op " " #rhs \ 189 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) argument 190 #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=) argument 191 #define assert_lt(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, <) argument 192 #define assert_ge(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, >=) argument
|
/linux/include/asm-generic/ |
H A D | word-at-a-time.h | 18 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/rust/kernel/ |
H A D | alloc.rs | 25 fn bitor(self, rhs: Self) -> Self::Output { in bitor() 26 Self(self.0 | rhs.0) in bitor() 32 fn bitand(self, rhs: Self) -> Self::Output { in bitand() 33 Self(self.0 & rhs.0) in bitand()
|
/linux/arch/powerpc/include/asm/ |
H A D | word-at-a-time.h | 21 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/testing/selftests/powerpc/primitives/ |
H A D | word-at-a-time.h | 21 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/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | input_system.c | 69 const csi_cfg_t *const rhs, 74 const input_system_source_t rhs, 79 const input_system_multiplex_t rhs, 1211 const input_system_source_t rhs, in set_source_type() argument 1225 if ((*lhs) == (rhs)) { in set_source_type() 1233 if (rhs >= N_INPUT_SYSTEM_SOURCE) { in set_source_type() 1238 *lhs = rhs; in set_source_type() 1247 const csi_cfg_t *const rhs, in set_csi_cfg() argument 1280 memory_required = rhs->csi_buffer.mem_reg_size * rhs->csi_buffer.nof_mem_regs; in set_csi_cfg() 1327 if ((*lhs) == (rhs)) { in input_system_multiplexer_cfg() [all …]
|
/linux/tools/perf/scripts/python/ |
H A D | compaction-times.py | 61 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/drivers/md/ |
H A D | dm-bio-prison-v2.c | 89 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 D | dm-bio-prison-v1.c | 97 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/fs/hpfs/ |
H A D | super.c | 399 char *rhs = args[0].from; in parse_opts() local 400 if (!rhs || !*rhs) in parse_opts() 402 if (*rhs == '-') m = -1; in parse_opts() 403 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts() 404 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts() 405 if (*rhs) in parse_opts()
|
/linux/scripts/gcc-plugins/ |
H A D | latent_entropy_plugin.c | 301 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 D | test_module_linking_main.c | 29 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, lhs, rhs) argument
|
/linux/include/linux/ceph/ |
H A D | msgr.h | 91 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()
|
/linux/tools/testing/selftests/cgroup/ |
H A D | test_cpu.c | 104 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) 112 if (lhs->tv_sec < rhs->tv_sec) in timespec_sub() 115 ret.tv_sec = lhs->tv_sec - rhs->tv_sec; in timespec_sub() 117 if (lhs->tv_nsec < rhs->tv_nsec) { in timespec_sub() 122 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; in timespec_sub() 124 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec; in timespec_sub() 106 timespec_sub(const struct timespec * lhs,const struct timespec * rhs) timespec_sub() argument
|
/linux/tools/lib/perf/ |
H A D | cpumap.c | 349 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument 353 if (lhs == rhs) in perf_cpu_map__equal() 356 if (!lhs || !rhs) in perf_cpu_map__equal() 360 if (nr != __perf_cpu_map__nr(rhs)) in perf_cpu_map__equal() 364 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()
|