| /linux-6.15/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() 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-6.15/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() 73 static inline struct timespec64 timespec64_add(struct timespec64 lhs, 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() 85 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, 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 | iosys-map.h | 214 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 D | min_heap.h | 48 bool (*less)(const void *lhs, const void *rhs, void *args); 49 void (*swp)(void *lhs, void *rhs, void *args); 180 void do_swap(void *a, void *b, size_t size, void (*swap_func)(void *lhs, void *rhs, void *args), in do_swap() argument 262 void (*swp)(void *lhs, void *rhs, void *args) = func->swp; in __min_heap_sift_down_inline() 302 void (*swp)(void *lhs, void *rhs, void *args) = func->swp; in __min_heap_sift_up_inline() 408 void (*swp)(void *lhs, void *rhs, void *args) = func->swp; in __min_heap_del_inline()
|
| H A D | rtc.h | 32 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-6.15/tools/perf/pmu-events/ |
| H A D | metric.py | 118 self.lhs = _Constify(lhs) 162 lhs = self.lhs.Simplify() 182 return lhs 188 return lhs 201 lhs = self.lhs.Substitute(name, expression) 263 self.lhs = _Constify(lhs) 277 lhs = self.lhs.Simplify() 290 result = self.fn == other.fn and self.lhs.Equals(other.lhs) 299 lhs = self.lhs.Substitute(name, expression) 388 return Function('min', lhs, rhs) [all …]
|
| /linux-6.15/arch/arm64/kvm/hyp/nvhe/ |
| H A D | gen-hyprel.c | 180 #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-6.15/lib/ |
| 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 | ubsan.c | 239 static void handle_overflow(struct overflow_data *data, void *lhs, in handle_overflow() argument 254 val_to_string(lhs_val_str, sizeof(lhs_val_str), type, lhs); 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() 331 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument 472 val_to_string(lhs_str, sizeof(lhs_str), lhs_type, lhs); in __ubsan_handle_shift_out_of_bounds() [all …]
|
| 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()
|
| /linux-6.15/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
| H A D | input_system.c | 59 csi_cfg_t *const lhs, 64 input_system_source_t *const lhs, 69 input_system_multiplex_t *const lhs, 1168 assert(lhs); in set_source_type() 1178 if ((*lhs) == (rhs)) { in set_source_type() 1191 *lhs = rhs; in set_source_type() 1199 csi_cfg_t *const lhs, in set_csi_cfg() argument 1206 assert(lhs); in set_csi_cfg() 1270 assert(lhs); in input_system_multiplexer_cfg() 1280 if ((*lhs) == (rhs)) { in input_system_multiplexer_cfg() [all …]
|
| /linux-6.15/drivers/md/ |
| H A D | dm-bio-prison-v2.c | 88 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()
|
| H A D | dm-bio-prison-v1.c | 96 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()
|
| H A D | dm-cache-background-tracker.c | 64 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()
|
| /linux-6.15/include/linux/ceph/ |
| H A D | msgr.h | 90 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()
|
| /linux-6.15/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-6.15/tools/lib/perf/ |
| H A D | cpumap.c | 315 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument 319 if (lhs == rhs) in perf_cpu_map__equal() 322 if (!lhs || !rhs) in perf_cpu_map__equal() 325 nr = __perf_cpu_map__nr(lhs); in perf_cpu_map__equal() 330 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()
|
| /linux-6.15/tools/perf/tests/ |
| H A D | cpumap.c | 159 static int __test__cpu_map_merge(const char *lhs, const char *rhs, int nr, const char *expected) in __test__cpu_map_merge() argument 161 struct perf_cpu_map *a = perf_cpu_map__new(lhs); in __test__cpu_map_merge() 207 static int __test__cpu_map_intersect(const char *lhs, const char *rhs, int nr, const char *expected) in __test__cpu_map_intersect() argument 209 struct perf_cpu_map *a = perf_cpu_map__new(lhs); in __test__cpu_map_intersect()
|
| /linux-6.15/drivers/bluetooth/ |
| H A D | hci_mrvl.c | 52 __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-6.15/tools/testing/selftests/cgroup/ |
| H A D | test_cpu.c | 107 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) in timespec_sub() argument 115 if (lhs->tv_sec < rhs->tv_sec) in timespec_sub() 118 ret.tv_sec = lhs->tv_sec - rhs->tv_sec; in timespec_sub() 120 if (lhs->tv_nsec < rhs->tv_nsec) { in timespec_sub() 125 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; in timespec_sub() 127 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec; in timespec_sub()
|
| /linux-6.15/lib/zstd/common/ |
| H A D | compiler.h | 234 ptrdiff_t ZSTD_wrappedPtrDiff(unsigned char const* lhs, unsigned char const* rhs) in ZSTD_wrappedPtrDiff() argument 236 return lhs - rhs; in ZSTD_wrappedPtrDiff()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_link_enc_cfg.c | 212 static bool are_ep_ids_equal(struct display_endpoint_id *lhs, struct display_endpoint_id *rhs) in are_ep_ids_equal() argument 216 if (lhs->link_id.id == rhs->link_id.id && in are_ep_ids_equal() 217 lhs->link_id.enum_id == rhs->link_id.enum_id && in are_ep_ids_equal() 218 lhs->link_id.type == rhs->link_id.type && in are_ep_ids_equal() 219 lhs->ep_type == rhs->ep_type) in are_ep_ids_equal()
|
| /linux-6.15/drivers/net/ethernet/freescale/ |
| H A D | fec_ptp.c | 351 u64 lhs, rhs; in fec_ptp_adjfine() local 368 lhs = NSEC_PER_SEC; in fec_ptp_adjfine() 371 if (lhs >= rhs) { in fec_ptp_adjfine() 373 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfine() 376 lhs += NSEC_PER_SEC; in fec_ptp_adjfine()
|
| /linux-6.15/drivers/iommu/iommufd/ |
| H A D | io_pagetable.c | 1231 struct iopt_area *lhs; in iopt_area_split() local 1247 lhs = iopt_area_alloc(); in iopt_area_split() 1248 if (!lhs) in iopt_area_split() 1277 rc = iopt_insert_area(iopt, lhs, area->pages, start_iova, in iopt_area_split() 1296 interval_tree_insert(&lhs->pages_node, &pages->domains_itree); in iopt_area_split() 1300 lhs->storage_domain = area->storage_domain; in iopt_area_split() 1301 lhs->pages = area->pages; in iopt_area_split() 1315 interval_tree_remove(&lhs->node, &iopt->area_itree); in iopt_area_split() 1322 kfree(lhs); in iopt_area_split()
|