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

123

/linux-master/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) argument
59 if (lhs->tv_sec < rhs->tv_sec)
61 if (lhs->tv_sec > rhs->tv_sec)
63 return lhs->tv_nsec - rhs->tv_nsec;
69 struct timespec64 rhs)
72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec,
73 lhs.tv_nsec + rhs
68 timespec64_add(struct timespec64 lhs, struct timespec64 rhs) argument
80 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) argument
[all...]
H A Dktime.h44 /* Subtract two ktime_t variables. rem = lhs -rhs: */
45 #define ktime_sub(lhs, rhs) ((lhs) - (rhs))
47 /* Add two ktime_t variables. res = lhs + rhs: */
48 #define ktime_add(lhs, rhs) ((lhs) + (rhs))
54 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs))
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) argument
66 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch);
171 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) argument
173 if (fbc->count > rhs)
175 else if (fbc->count < rhs)
182 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) argument
184 return percpu_counter_compare(fbc, rhs);
H A Dmin_heap.h29 bool (*less)(const void *lhs, const void *rhs);
30 void (*swp)(void *lhs, void *rhs);
H A Diosys-map.h206 * @rhs: A iosys_map structure to compare with
215 const struct iosys_map *rhs)
217 if (lhs->is_iomem != rhs->is_iomem)
220 return lhs->vaddr_iomem == rhs->vaddr_iomem;
222 return lhs->vaddr == rhs->vaddr;
214 iosys_map_is_equal(const struct iosys_map *lhs, const struct iosys_map *rhs) argument
/linux-master/tools/perf/arch/x86/util/
H A Devlist.c76 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs) argument
79 (arch_evsel__must_be_in_group(lhs) || arch_evsel__must_be_in_group(rhs))) {
83 if (strcasestr(rhs->name, "slots") && !strcasestr(rhs->name, "uops_retired.slots"))
86 if (strcasestr(lhs->name, "topdown") && !strcasestr(rhs->name, "topdown"))
88 if (!strcasestr(lhs->name, "topdown") && strcasestr(rhs->name, "topdown"))
93 return lhs->core.idx - rhs->core.idx;
/linux-master/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 *c) argument
21 return ~(mask | rhs);
44 unsigned long rhs = val | c->low_bits; local
45 *data = rhs;
46 return (val + c->high_bits) & ~rhs;
/linux-master/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...]
/linux-master/lib/
H A Dubsan.h127 void __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs);
128 void __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs);
129 void __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs);
131 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs);
135 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
H A Dtest_min_heap.c14 static __init bool less_than(const void *lhs, const void *rhs) argument
16 return *(int *)lhs < *(int *)rhs;
19 static __init bool greater_than(const void *lhs, const void *rhs) argument
21 return *(int *)lhs > *(int *)rhs;
24 static __init void swap_ints(void *lhs, void *rhs) argument
28 *(int *)lhs = *(int *)rhs;
29 *(int *)rhs = temp;
H A Dubsan.c240 void *rhs, char op)
255 val_to_string(rhs_val_str, sizeof(rhs_val_str), type, rhs);
266 void *lhs, void *rhs)
269 handle_overflow(data, lhs, rhs, '+');
274 void *lhs, void *rhs)
276 handle_overflow(data, lhs, rhs, '-');
281 void *lhs, void *rhs)
283 handle_overflow(data, lhs, rhs, '*');
307 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) argument
317 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs);
239 handle_overflow(struct overflow_data *data, void *lhs, void *rhs, char op) argument
265 __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs) argument
273 __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs) argument
280 __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs) argument
433 __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) argument
[all...]
H A Dpercpu_counter.c258 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) argument
264 if (abs(count - rhs) > (batch * num_online_cpus())) {
265 if (count > rhs)
272 if (count > rhs)
274 else if (count < rhs)
/linux-master/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) argument
24 return ~(mask | rhs);
39 unsigned long rhs = val | c->low_bits; local
40 *data = rhs;
41 return (val + c->high_bits) & ~rhs;
/linux-master/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) argument
24 return ~(mask | rhs);
39 unsigned long rhs = val | c->low_bits; local
40 *data = rhs;
41 return (val + c->high_bits) & ~rhs;
/linux-master/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...]
/linux-master/arch/riscv/kernel/tests/module_test/
H A Dtest_module_linking_main.c29 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, lhs, rhs)
/linux-master/drivers/md/
H A Ddm-bio-prison-v2.c89 struct dm_cell_key_v2 *rhs)
91 if (lhs->virtual < rhs->virtual)
94 if (lhs->virtual > rhs->virtual)
97 if (lhs->dev < rhs->dev)
100 if (lhs->dev > rhs->dev)
103 if (lhs->block_end <= rhs->block_begin)
106 if (lhs->block_begin >= rhs->block_end)
88 cmp_keys(struct dm_cell_key_v2 *lhs, struct dm_cell_key_v2 *rhs) argument
H A Ddm-bio-prison-v1.c97 struct dm_cell_key *rhs)
99 if (lhs->virtual < rhs->virtual)
102 if (lhs->virtual > rhs->virtual)
105 if (lhs->dev < rhs->dev)
108 if (lhs->dev > rhs->dev)
111 if (lhs->block_end <= rhs->block_begin)
114 if (lhs->block_begin >= rhs->block_end)
96 cmp_keys(struct dm_cell_key *lhs, struct dm_cell_key *rhs) argument
H A Ddm-cache-background-tracker.c77 static int cmp_oblock(dm_oblock_t lhs, dm_oblock_t rhs) argument
79 if (from_oblock(lhs) < from_oblock(rhs))
82 if (from_oblock(rhs) < from_oblock(lhs))
/linux-master/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...]
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
H A Dinput_system.c69 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,
1225 if ((*lhs) == (rhs)) {
1233 if (rhs >= N_INPUT_SYSTEM_SOURCE) {
1238 *lhs = rhs;
1247 const csi_cfg_t *const rhs,
1263 if (/*lhs->backend_ch == rhs.backend_ch
1264 &&*/ lhs->buffering_mode == rhs
1209 set_source_type( input_system_source_t *const lhs, const input_system_source_t rhs, input_system_config_flags_t *const flags) argument
1245 set_csi_cfg( csi_cfg_t *const lhs, const csi_cfg_t *const rhs, input_system_config_flags_t *const flags) argument
1312 input_system_multiplexer_cfg( input_system_multiplex_t *const lhs, const input_system_multiplex_t rhs, input_system_config_flags_t *const flags) argument
[all...]
/linux-master/include/linux/ceph/
H A Dmsgr.h91 const struct ceph_entity_addr *rhs)
93 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) &&
94 lhs->nonce == rhs->nonce;
90 ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, const struct ceph_entity_addr *rhs) argument
/linux-master/scripts/gcc-plugins/
H A Dlatent_entropy_plugin.c301 static enum tree_code get_op(tree *rhs) argument
314 if (rhs) {
329 if (rhs)
330 *rhs = build_int_cstu(long_unsigned_type_node, random_const);
344 tree rhs; local
347 op = get_op(&rhs);
348 assign = create_assign(op, local_entropy, local_entropy, rhs);
/linux-master/fs/hpfs/
H A Dsuper.c399 char *rhs = args[0].from; local
400 if (!rhs || !*rhs)
402 if (*rhs == '-') m = -1;
403 if (*rhs == '+' || *rhs == '-') rhs++;
404 *timeshift = simple_strtoul(rhs, &rhs, 0) * m;
405 if (*rhs)
[all...]
/linux-master/tools/lib/perf/include/perf/
H A Dcpumap.h67 const struct perf_cpu_map *rhs);

Completed in 400 milliseconds

123