/linux-6.12.1/include/linux/ |
D | time64.h | 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() 80 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, in timespec64_sub() argument 84 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub() 85 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub() [all …]
|
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);
|
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()
|
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.12.1/tools/perf/pmu-events/ |
D | metric.py | 115 def __init__(self, operator: str, lhs: Union[int, float, Expression], 118 self.lhs = _Constify(lhs) 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': 173 if self.operator == '*' and lhs.value == '0' and ( 177 if self.operator == '*' and lhs.value == '1': 182 return lhs [all …]
|
/linux-6.12.1/tools/perf/arch/x86/util/ |
D | evlist.c | 76 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 if (lhs->retire_lat && !rhs->retire_lat) in arch_evlist__cmp() 95 if (!lhs->retire_lat && rhs->retire_lat) in arch_evlist__cmp() 99 return lhs->core.idx - rhs->core.idx; in arch_evlist__cmp()
|
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/ |
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.12.1/lib/ |
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() 307 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument 433 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument [all …]
|
D | ubsan.h | 140 void ubsan_linkage __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs); 141 void ubsan_linkage __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs); 142 void ubsan_linkage __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs); 144 void ubsan_linkage __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs); 148 void ubsan_linkage __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
|
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() 26 static __init void swap_ints(void *lhs, void *rhs, void __always_unused *args) in swap_ints() argument 28 int temp = *(int *)lhs; in swap_ints() 30 *(int *)lhs = *(int *)rhs; in swap_ints()
|
D | checksum_kunit.c | 453 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, (__force u64)lhs, (__force u64)rhs) argument
|
/linux-6.12.1/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | input_system.c | 68 csi_cfg_t *const lhs, 73 input_system_source_t *const lhs, 78 input_system_multiplex_t *const lhs, 1172 input_system_source_t *const lhs, in set_source_type() argument 1177 assert(lhs); in set_source_type() 1187 if ((*lhs) == (rhs)) { in set_source_type() 1200 *lhs = rhs; in set_source_type() 1208 csi_cfg_t *const lhs, in set_csi_cfg() argument 1215 assert(lhs); in set_csi_cfg() 1226 &&*/ lhs->buffering_mode == rhs->buffering_mode in set_csi_cfg() [all …]
|
/linux-6.12.1/drivers/md/ |
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()
|
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()
|
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.12.1/include/linux/ceph/ |
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.12.1/arch/riscv/kernel/tests/module_test/ |
D | test_module_linking_main.c | 29 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, lhs, rhs) argument
|
/linux-6.12.1/tools/testing/selftests/cgroup/ |
D | test_cpu.c | 106 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) in timespec_sub() argument 114 if (lhs->tv_sec < rhs->tv_sec) in timespec_sub() 117 ret.tv_sec = lhs->tv_sec - rhs->tv_sec; in timespec_sub() 119 if (lhs->tv_nsec < rhs->tv_nsec) { in timespec_sub() 124 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; in timespec_sub() 126 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec; in timespec_sub()
|
/linux-6.12.1/drivers/bluetooth/ |
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.12.1/tools/lib/perf/ |
D | cpumap.c | 366 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) in perf_cpu_map__equal() argument 370 if (lhs == rhs) in perf_cpu_map__equal() 373 if (!lhs || !rhs) in perf_cpu_map__equal() 376 nr = __perf_cpu_map__nr(lhs); in perf_cpu_map__equal() 381 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu) in perf_cpu_map__equal()
|
/linux-6.12.1/drivers/md/bcache/ |
D | alloc.c | 176 struct bucket **lhs = (struct bucket **)l; in new_bucket_max_cmp() local 180 return new_bucket_prio(ca, *lhs) > new_bucket_prio(ca, *rhs); in new_bucket_max_cmp() 185 struct bucket **lhs = (struct bucket **)l; in new_bucket_min_cmp() local 189 return new_bucket_prio(ca, *lhs) < new_bucket_prio(ca, *rhs); in new_bucket_min_cmp() 194 struct bucket **lhs = l, **rhs = r; in new_bucket_swap() local 196 swap(*lhs, *rhs); in new_bucket_swap()
|
/linux-6.12.1/drivers/iommu/iommufd/ |
D | io_pagetable.c | 1184 struct iopt_area *lhs; in iopt_area_split() local 1200 lhs = iopt_area_alloc(); in iopt_area_split() 1201 if (!lhs) in iopt_area_split() 1230 rc = iopt_insert_area(iopt, lhs, area->pages, start_iova, in iopt_area_split() 1249 interval_tree_insert(&lhs->pages_node, &pages->domains_itree); in iopt_area_split() 1253 lhs->storage_domain = area->storage_domain; in iopt_area_split() 1254 lhs->pages = area->pages; in iopt_area_split() 1268 interval_tree_remove(&lhs->node, &iopt->area_itree); in iopt_area_split() 1275 kfree(lhs); in iopt_area_split()
|
/linux-6.12.1/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 353 u64 lhs, rhs; in fec_ptp_adjfine() local 370 lhs = NSEC_PER_SEC; in fec_ptp_adjfine() 373 if (lhs >= rhs) { in fec_ptp_adjfine() 375 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfine() 378 lhs += NSEC_PER_SEC; in fec_ptp_adjfine()
|
/linux-6.12.1/kernel/kcsan/ |
D | debugfs.c | 95 static int cmp_filterlist_addrs(const void *rhs, const void *lhs) in cmp_filterlist_addrs() argument 98 const unsigned long b = *(const unsigned long *)lhs; in cmp_filterlist_addrs()
|
/linux-6.12.1/kernel/bpf/ |
D | offload.c | 727 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match() argument 731 if (bpf_prog_is_offloaded(lhs->aux) != bpf_prog_is_offloaded(rhs->aux)) in bpf_prog_dev_bound_match() 735 ret = lhs->aux->offload && rhs->aux->offload && in bpf_prog_dev_bound_match() 736 lhs->aux->offload->netdev && in bpf_prog_dev_bound_match() 737 lhs->aux->offload->netdev == rhs->aux->offload->netdev; in bpf_prog_dev_bound_match()
|