| /linux/include/video/ |
| H A D | pixel_format.h | 44 #define __pixel_format_cmp_field(lhs, rhs, name) \ argument 46 int ret = ((lhs)->name) - ((rhs)->name); \ 51 #define __pixel_format_cmp_bitfield(lhs, rhs, name) \ argument 53 __pixel_format_cmp_field(lhs, rhs, name.offset); \ 54 __pixel_format_cmp_field(lhs, rhs, name.length); \ 70 static inline int pixel_format_cmp(const struct pixel_format *lhs, const struct pixel_format *rhs) in pixel_format_cmp() argument 72 __pixel_format_cmp_field(lhs, rhs, bits_per_pixel); in pixel_format_cmp() 73 __pixel_format_cmp_field(lhs, rhs, indexed); in pixel_format_cmp() 76 __pixel_format_cmp_bitfield(lhs, rhs, index); in pixel_format_cmp() 78 __pixel_format_cmp_bitfield(lhs, rhs, alpha); in pixel_format_cmp() [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | metric.py | 116 rhs: Union[int, float, Expression]): 119 self.rhs = _Constify(rhs) 124 rhs: bool = False) -> str: 148 if rhs and _PRECEDENCE.get(self.operator, -1) == _PRECEDENCE.get( 163 rhs = self.rhs.Simplify() 164 if isinstance(lhs, Constant) and isinstance(rhs, Constant): 165 return Constant(ast.literal_eval(lhs + self.operator + rhs)) 169 return rhs 174 not isinstance(rhs, Event) or 'slots' not in rhs.name.lower()): 178 return rhs [all …]
|
| /linux/rust/kernel/ |
| H A D | time.rs | 244 fn add(self, rhs: Delta) -> Self::Output { in add() 247 let res = self.inner + rhs.nanos; in add() 264 fn sub(self, rhs: Delta) -> Self::Output { in sub() 267 let res = self.inner - rhs.nanos; in sub() 294 fn add(self, rhs: Self) -> Self { in add() 296 nanos: self.nanos + rhs.nanos, in add() 303 fn add_assign(&mut self, rhs: Self) { in add_assign() 304 self.nanos += rhs.nanos; in add_assign() 312 fn sub(self, rhs: Self) -> Self::Output { in sub() 314 nanos: self.nanos - rhs.nanos, in sub() [all …]
|
| H A D | alloc.rs | 50 fn bitor(self, rhs: Self) -> Self::Output { in bitor() 51 Self(self.0 | rhs.0) in bitor() 57 fn bitand(self, rhs: Self) -> Self::Output { in bitand() 58 Self(self.0 & rhs.0) in bitand()
|
| /linux/include/linux/ |
| H A D | time64.h | 62 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument 64 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare() 66 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare() 68 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare() 74 struct timespec64 rhs) in timespec64_add() argument 77 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add() 78 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add() 86 struct timespec64 rhs) in timespec64_sub() argument 89 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() 90 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 | 8 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/sync/atomic/ |
| H A D | predefine.rs | 16 fn rhs_into_delta(rhs: i32) -> i32 { in rhs_into_delta() 17 rhs in rhs_into_delta() 29 fn rhs_into_delta(rhs: i64) -> i64 { in rhs_into_delta() 30 rhs in rhs_into_delta() 58 fn rhs_into_delta(rhs: isize) -> isize_atomic_repr { in rhs_into_delta() 59 rhs as isize_atomic_repr in rhs_into_delta() 71 fn rhs_into_delta(rhs: u32) -> i32 { in rhs_into_delta() 72 rhs as i32 in rhs_into_delta() 84 fn rhs_into_delta(rhs: u64) -> i64 { in rhs_into_delta() 85 rhs as i64 in rhs_into_delta() [all …]
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | gen-hyprel.c | 180 #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 D | ubsan.c | 242 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 D | ubsan.h | 147 void ubsan_linkage __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs); 148 void ubsan_linkage __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs); 149 void ubsan_linkage __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs); 151 void ubsan_linkage __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs); 152 void ubsan_linkage __ubsan_handle_implicit_conversion(void *_data, void *lhs, void *rhs); 156 void ubsan_linkage __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
|
| H A D | test_min_heap.c | 16 static __init bool less_than(const void *lhs, const void *rhs, void __always_unused *args) in less_than() argument 18 return *(int *)lhs < *(int *)rhs; in less_than() 21 static __init bool greater_than(const void *lhs, const void *rhs, void __always_unused *args) in greater_than() argument 23 return *(int *)lhs > *(int *)rhs; in greater_than()
|
| H A D | percpu_counter.c | 292 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/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/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
| H A D | input_system.c | 60 const csi_cfg_t *const rhs, 65 const input_system_source_t rhs, 70 const input_system_multiplex_t rhs, 1164 const input_system_source_t rhs, in set_source_type() argument 1178 if ((*lhs) == (rhs)) { in set_source_type() 1186 if (rhs >= N_INPUT_SYSTEM_SOURCE) { in set_source_type() 1191 *lhs = rhs; in set_source_type() 1200 const csi_cfg_t *const rhs, in set_csi_cfg() argument 1217 &&*/ lhs->buffering_mode == rhs->buffering_mode in set_csi_cfg() 1218 && lhs->csi_buffer.mem_reg_size == rhs->csi_buffer.mem_reg_size in set_csi_cfg() [all …]
|
| /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/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/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/rust/kernel/irq/ |
| H A D | flags.rs | 107 fn bitor(self, rhs: Self) -> Self::Output { in bitor() 108 Self(self.0 | rhs.0) in bitor() 114 fn bitand(self, rhs: Self) -> Self::Output { in bitand() 115 Self(self.0 & rhs.0) in bitand()
|
| /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/rust/kernel/io/ |
| H A D | resource.rs | 194 fn bitor(self, rhs: Self) -> Self::Output { in bitor() 195 Self(self.0 | rhs.0) in bitor() 201 fn bitand(self, rhs: Self) -> Self::Output { in bitand() 202 Self(self.0 & rhs.0) in bitand()
|
| /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()
|