Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 51) sorted by relevance

123

/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()
53 if (arch_is_topdown_slots(lhs)) in arch_evlist__cmp()
64 if (lhs->core.leader != rhs->core.leader) { in arch_evlist__cmp()
65 bool lhs_topdown = arch_is_topdown_metrics(lhs); 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/tools/perf/pmu-events/
H A Dmetric.py121 def __init__(self, operator: str, lhs: Union[int, float, Expression],
124 self.lhs = _Constify(lhs)
168 lhs = self.lhs.Simplify()
170 if isinstance(lhs, Constant) and isinstance(rhs, Constant):
171 return Constant(ast.literal_eval(lhs + self.operator + rhs))
173 if isinstance(self.lhs, Constant):
174 if self.operator in ('+', '|') and lhs.value == '0':
179 if self.operator == '*' and lhs.value == '0' and (
183 if self.operator == '*' and lhs.value == '1':
188 return lhs
[all …]
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c180 #define assert_op(lhs, rhs, fmt, op) \ argument
182 typeof(lhs) _lhs = (lhs); \
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.c241 static void handle_overflow(struct overflow_data *data, void *lhs, in handle_overflow() argument
256 val_to_string(lhs_val_str, sizeof(lhs_val_str), type, lhs); 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
343 val_to_string(lhs_val_str, sizeof(lhs_val_str), data->type, lhs); in __ubsan_handle_divrem_overflow()
[all …]
/linux/drivers/md/
H A Ddm-bio-prison-v2.c88 static int cmp_keys(struct dm_cell_key_v2 *lhs, 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()
/linux/include/linux/
H A Diosys-map.h214 static inline bool iosys_map_is_equal(const struct iosys_map *lhs, in iosys_map_is_equal() argument
217 if (lhs->is_iomem != rhs->is_iomem) in iosys_map_is_equal()
219 else if (lhs->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()
H A Drtc.h32 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub() argument
34 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); in rtc_tm_sub()
/linux/include/linux/ceph/
H A Dmsgr.h90 static inline bool ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, 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()
H A Dosdmap.h34 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs);
35 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs);
/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/drivers/bluetooth/
H A Dhci_mrvl.c52 __le16 lhs; member
170 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req()
184 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
200 u16 version = le16_to_cpu(pkt->lhs); in mrvl_recv_chip_ver()
203 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
/linux/tools/lib/perf/
H A Dcpumap.c325 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument
329 if (lhs == rhs) in perf_cpu_map__equal()
332 if (!lhs || !rhs) in perf_cpu_map__equal()
335 nr = __perf_cpu_map__nr(lhs); in perf_cpu_map__equal()
340 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()
/linux/tools/testing/selftests/cgroup/
H A Dtest_cpu.c108 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) in timespec_sub() argument
116 if (lhs->tv_sec < rhs->tv_sec) in timespec_sub()
119 ret.tv_sec = lhs->tv_sec - rhs->tv_sec; in timespec_sub()
121 if (lhs->tv_nsec < rhs->tv_nsec) { in timespec_sub()
126 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; in timespec_sub()
128 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec; in timespec_sub()
/linux/rust/macros/
H A Dfmt.rs55 let (lhs, rhs) = (|| { in fmt()
70 args.extend(quote_spanned!(first_span => #lhs #adapter(&#rhs))); in fmt()
/linux/lib/zstd/common/
H A Dcompiler.h234 ptrdiff_t ZSTD_wrappedPtrDiff(unsigned char const* lhs, unsigned char const* rhs) in ZSTD_wrappedPtrDiff() argument
236 return lhs - rhs; in ZSTD_wrappedPtrDiff()
/linux/rust/syn/
H A Dexpr.rs1314 mut lhs: Expr, in parse_expr()
1320 if let Expr::Range(_) = lhs { in parse_expr()
1329 if let Expr::Range(_) = lhs { in parse_expr()
1334 if let Expr::Binary(lhs) = &lhs { in parse_expr()
1335 if Precedence::of_binop(&lhs.op) == Precedence::Compare { in parse_expr()
1342 lhs = Expr::Binary(ExprBinary { in parse_expr()
1344 left: Box::new(lhs), in parse_expr()
1351 && match lhs { in parse_expr()
1358 lhs = Expr::Assign(ExprAssign { in parse_expr()
1360 left: Box::new(lhs), in parse_expr()
[all …]
/linux/kernel/kcsan/
H A Ddebugfs.c89 static int cmp_filterlist_addrs(const void *rhs, const void *lhs) in cmp_filterlist_addrs() argument
92 const unsigned long b = *(const unsigned long *)lhs; in cmp_filterlist_addrs()
/linux/kernel/bpf/
H A Doffload.c732 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match() argument
736 if (bpf_prog_is_offloaded(lhs->aux) != bpf_prog_is_offloaded(rhs->aux)) in bpf_prog_dev_bound_match()
740 ret = lhs->aux->offload && rhs->aux->offload && in bpf_prog_dev_bound_match()
741 lhs->aux->offload->netdev && in bpf_prog_dev_bound_match()
742 lhs->aux->offload->netdev == rhs->aux->offload->netdev; in bpf_prog_dev_bound_match()
/linux/drivers/net/ethernet/freescale/
H A Dfec_ptp.c358 u64 lhs, rhs; in fec_ptp_adjfine() local
375 lhs = NSEC_PER_SEC; in fec_ptp_adjfine()
378 if (lhs >= rhs) { in fec_ptp_adjfine()
380 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfine()
383 lhs += NSEC_PER_SEC; in fec_ptp_adjfine()
/linux/net/ceph/
H A Dosdmap.c677 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
679 if (lhs->pool < rhs->pool) in ceph_pg_compare()
681 if (lhs->pool > rhs->pool) in ceph_pg_compare()
683 if (lhs->seed < rhs->seed) in ceph_pg_compare()
685 if (lhs->seed > rhs->seed) in ceph_pg_compare()
691 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
695 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
699 if (lhs->shard < rhs->shard) in ceph_spg_compare()
701 if (lhs->shard > rhs->shard) in ceph_spg_compare()
2227 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
[all …]
/linux/kernel/trace/
H A Dtrace_dynevent.c364 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add()
368 pr_err("field string is too long: %s%c%s%c\n", arg_pair->lhs, in dynevent_arg_pair_add()
H A Dtrace_dynevent.h141 const char *lhs; member
/linux/tools/lib/perf/include/perf/
H A Dcpumap.h83 LIBPERF_API bool perf_cpu_map__equal(const struct perf_cpu_map *lhs,
/linux/scripts/gcc-plugins/
H A Dgcc-common.h315 static inline gimple gimple_build_assign_with_ops(enum tree_code subcode, tree lhs, tree op1, tree … in gimple_build_assign_with_ops() argument
317 return gimple_build_assign(lhs, subcode, op1, op2 PASS_MEM_STAT); in gimple_build_assign_with_ops()
/linux/tools/perf/
H A Dbuiltin-stat.c1938 const struct evsel *lhs = container_of(lhs_core, struct evsel, core); in default_evlist_evsel_cmp() local
1942 if (evsel__leader(lhs) == evsel__leader(rhs)) { in default_evlist_evsel_cmp()
1948 if (lhs->default_metricgroup != rhs->default_metricgroup) in default_evlist_evsel_cmp()
1949 return lhs->default_metricgroup ? -1 : 1; in default_evlist_evsel_cmp()
1951 if (lhs->default_show_events != rhs->default_show_events) in default_evlist_evsel_cmp()
1952 return lhs->default_show_events ? -1 : 1; in default_evlist_evsel_cmp()
1955 if (lhs->pmu != rhs->pmu) in default_evlist_evsel_cmp()
1956 return lhs->pmu->type - rhs->pmu->type; in default_evlist_evsel_cmp()
1959 return strcmp(evsel__name((struct evsel *)lhs), evsel__name((struct evsel *)rhs)); in default_evlist_evsel_cmp()

123