Home
last modified time | relevance | path

Searched full:lhs (Results 1 – 25 of 124) sorted by relevance

12345

/kernel/linux/linux-6.6/tools/perf/pmu-events/
Dmetric.py115 def __init__(self, operator: str, lhs: Union[int, float, Expression],
118 self.lhs = _Constify(lhs)
137 other (Expression): is a lhs or rhs operator
154 return (f'{self.Bracket(self.lhs, self.lhs.ToPerfJson())} {self.operator} '
158 return (f'{self.Bracket(self.lhs, self.lhs.ToPython())} {self.operator} '
162 lhs = self.lhs.Simplify()
164 if isinstance(lhs, Constant) and isinstance(rhs, Constant):
165 return Constant(ast.literal_eval(lhs + self.operator + rhs))
167 if isinstance(self.lhs, Constant):
168 if self.operator in ('+', '|') and lhs.value == '0':
[all …]
/kernel/linux/linux-5.10/include/linux/
Dtime64.h48 * lhs < rhs: return <0
49 * lhs == rhs: return 0
50 * lhs > rhs: return >0
52 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
58 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
63 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() argument
67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
68 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
[all …]
Dktime.h46 /* Subtract two ktime_t variables. rem = lhs -rhs: */
47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
49 /* Add two ktime_t variables. res = lhs + rhs: */
50 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
56 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
199 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
/kernel/linux/linux-6.6/include/linux/
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) 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()
68 static inline struct timespec64 timespec64_add(struct timespec64 lhs, 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()
[all …]
Dktime.h46 /* Subtract two ktime_t variables. rem = lhs -rhs: */
47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
49 /* Add two ktime_t variables. res = lhs + rhs: */
50 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
56 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
199 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
Devlist.c76 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()
81 if (strcasestr(lhs->name, "slots") && !strcasestr(lhs->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()
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/
Dgen-hyprel.c177 #define assert_op(lhs, rhs, fmt, op) \ argument
179 typeof(lhs) _lhs = (lhs); \
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, ==) 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
/kernel/linux/linux-5.10/lib/
Dubsan.c157 static void handle_overflow(struct overflow_data *data, void *lhs, in handle_overflow() argument
172 val_to_string(lhs_val_str, sizeof(lhs_val_str), type, lhs); in handle_overflow()
184 void *lhs, void *rhs) in __ubsan_handle_add_overflow() argument
187 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
192 void *lhs, void *rhs) in __ubsan_handle_sub_overflow() argument
194 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
199 void *lhs, void *rhs) in __ubsan_handle_mul_overflow() argument
201 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
225 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
351 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument
[all …]
Dtest_min_heap.c14 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
26 int temp = *(int *)lhs; in swap_ints()
28 *(int *)lhs = *(int *)rhs; in swap_ints()
/kernel/linux/linux-6.6/lib/
Dtest_min_heap.c14 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
26 int temp = *(int *)lhs; in swap_ints()
28 *(int *)lhs = *(int *)rhs; in swap_ints()
Dubsan.h127 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs);
131 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
/kernel/linux/linux-6.6/tools/perf/util/
Dexpr.y128 #define BINARY_OP(RESULT, OP, LHS, RHS) \
129 if (!compute_ids || (is_const(LHS.val) && is_const(RHS.val))) { \
130 assert(LHS.ids == NULL); \
132 if (isnan(LHS.val) || isnan(RHS.val)) { \
135 RESULT.val = LHS.val OP RHS.val; \
139 RESULT = union_expr(LHS, RHS); \
178 * LHS == RHS, so both are an identical constant. No need to
188 * Value is either the LHS or RHS and we need the IF expression
305 /* LHS and/or RHS need computing from event IDs so union. */
320 /* LHS and/or RHS need computing from event IDs so union. */
[all …]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dinput_system.c69 csi_cfg_t *const lhs,
74 input_system_source_t *const lhs,
79 input_system_multiplex_t *const lhs,
1655 input_system_source_t *const lhs, in set_source_type() argument
1660 assert(lhs); in set_source_type()
1670 if ((*lhs) == (rhs)) { in set_source_type()
1683 *lhs = rhs; in set_source_type()
1691 csi_cfg_t *const lhs, in set_csi_cfg() argument
1698 assert(lhs); in set_csi_cfg()
1708 if (/*lhs->backend_ch == rhs.backend_ch in set_csi_cfg()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dinput_system.c69 csi_cfg_t *const lhs,
74 input_system_source_t *const lhs,
79 input_system_multiplex_t *const lhs,
1715 input_system_source_t *const lhs, in set_source_type() argument
1720 assert(lhs); in set_source_type()
1730 if ((*lhs) == (rhs)) { in set_source_type()
1743 *lhs = rhs; in set_source_type()
1751 csi_cfg_t *const lhs, in set_csi_cfg() argument
1758 assert(lhs); in set_csi_cfg()
1768 if (/*lhs->backend_ch == rhs.backend_ch in set_csi_cfg()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-bio-prison-v2.c87 static int cmp_keys(struct dm_cell_key_v2 *lhs, in cmp_keys() argument
90 if (lhs->virtual < rhs->virtual) in cmp_keys()
93 if (lhs->virtual > rhs->virtual) in cmp_keys()
96 if (lhs->dev < rhs->dev) in cmp_keys()
99 if (lhs->dev > rhs->dev) in cmp_keys()
102 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
105 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
Ddm-bio-prison-v1.c85 static int cmp_keys(struct dm_cell_key *lhs, in cmp_keys() argument
88 if (lhs->virtual < rhs->virtual) in cmp_keys()
91 if (lhs->virtual > rhs->virtual) in cmp_keys()
94 if (lhs->dev < rhs->dev) in cmp_keys()
97 if (lhs->dev > rhs->dev) in cmp_keys()
100 if (lhs->block_end <= rhs->block_begin) in cmp_keys()
103 if (lhs->block_begin >= rhs->block_end) in cmp_keys()
Ddm-cache-background-tracker.c68 static int cmp_oblock(dm_oblock_t lhs, dm_oblock_t rhs) in cmp_oblock() argument
70 if (from_oblock(lhs) < from_oblock(rhs)) in cmp_oblock()
73 if (from_oblock(rhs) < from_oblock(lhs)) in cmp_oblock()
/kernel/linux/linux-6.6/drivers/md/
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()
Ddm-bio-prison-v1.c96 static int cmp_keys(struct dm_cell_key *lhs, 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()
Ddm-cache-background-tracker.c64 static int cmp_oblock(dm_oblock_t lhs, dm_oblock_t rhs) in cmp_oblock() argument
66 if (from_oblock(lhs) < from_oblock(rhs)) in cmp_oblock()
69 if (from_oblock(rhs) < from_oblock(lhs)) in cmp_oblock()
/kernel/linux/linux-5.10/include/linux/ceph/
Dmsgr.h69 static inline bool ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, in ceph_addr_equal_no_type() argument
72 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && in ceph_addr_equal_no_type()
73 lhs->nonce == rhs->nonce; in ceph_addr_equal_no_type()
/kernel/linux/linux-6.6/include/linux/ceph/
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()
/kernel/linux/linux-5.10/drivers/bluetooth/
Dhci_mrvl.c50 __le16 lhs; member
168 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req()
182 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
198 u16 version = le16_to_cpu(pkt->lhs); in mrvl_recv_chip_ver()
201 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
/kernel/linux/linux-6.6/drivers/bluetooth/
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()
/kernel/linux/linux-6.6/tools/lib/perf/
Dcpumap.c338 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument
342 if (lhs == rhs) in perf_cpu_map__equal()
345 if (!lhs || !rhs) in perf_cpu_map__equal()
348 nr = __perf_cpu_map__nr(lhs); in perf_cpu_map__equal()
353 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()

12345