Home
last modified time | relevance | path

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

12

/linux-6.1.9/include/linux/
Dtime64.h57 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 …]
Dktime.h47 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
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);
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()
Dmin_heap.h29 bool (*less)(const void *lhs, const void *rhs);
30 void (*swp)(void *lhs, void *rhs);
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-6.1.9/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 \
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
/linux-6.1.9/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.c160 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
286 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument
301 val_to_string(lhs_str, sizeof(lhs_str), lhs_type, lhs); in __ubsan_handle_shift_out_of_bounds()
312 else if (val_is_negative(lhs_type, lhs)) in __ubsan_handle_shift_out_of_bounds()
/linux-6.1.9/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()
/linux-6.1.9/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()
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-6.1.9/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()
1709 &&*/ lhs->buffering_mode == rhs->buffering_mode in set_csi_cfg()
[all …]
/linux-6.1.9/rust/alloc/
Dborrow.rs473 if let Cow::Borrowed(lhs) = *self { in add_assign()
474 let mut s = String::with_capacity(lhs.len() + rhs.len()); in add_assign()
475 s.push_str(lhs); in add_assign()
490 if let Cow::Borrowed(lhs) = *self { in add_assign()
491 let mut s = String::with_capacity(lhs.len() + rhs.len()); in add_assign()
492 s.push_str(lhs); in add_assign()
/linux-6.1.9/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()
/linux-6.1.9/tools/testing/selftests/cgroup/
Dtest_cpu.c106 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.1.9/rust/alloc/vec/
Dpartial_eq.rs10 ([$($vars:tt)*] $lhs:ty, $rhs:ty $(where $ty:ty: $bound:ident)?, #[$stability:meta]) => {
12 impl<T, U, $($vars)*> PartialEq<$rhs> for $lhs
/linux-6.1.9/drivers/net/ethernet/freescale/
Dfec_ptp.c283 u64 lhs, rhs; in fec_ptp_adjfreq() local
300 lhs = NSEC_PER_SEC; in fec_ptp_adjfreq()
303 if (lhs >= rhs) { in fec_ptp_adjfreq()
305 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
308 lhs += NSEC_PER_SEC; in fec_ptp_adjfreq()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_enc_cfg.c212 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.1.9/kernel/kcsan/
Ddebugfs.c95 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.1.9/kernel/time/
Dtime.c765 struct timespec64 timespec64_add_safe(const struct timespec64 lhs, in timespec64_add_safe() argument
770 set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec, in timespec64_add_safe()
771 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add_safe()
773 if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) { in timespec64_add_safe()
/linux-6.1.9/kernel/trace/
Dtrace_dynevent.c348 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add()
352 pr_err("field string is too long: %s%c%s%c\n", arg_pair->lhs, in dynevent_arg_pair_add()
Dtrace_dynevent.h140 const char *lhs; member
/linux-6.1.9/net/ceph/
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()
2235 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
[all …]

12