Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/linux/
Dtime64.h55 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
57 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
59 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
61 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
66 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() argument
70 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
71 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
78 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, in timespec64_sub() argument
82 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
83 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
[all …]
Dtime32.h60 static inline int timespec_compare(const struct timespec *lhs, const struct timespec *rhs) in timespec_compare() argument
62 if (lhs->tv_sec < rhs->tv_sec) in timespec_compare()
64 if (lhs->tv_sec > rhs->tv_sec) in timespec_compare()
66 return lhs->tv_nsec - rhs->tv_nsec; in timespec_compare()
71 static inline struct timespec timespec_add(struct timespec lhs, in timespec_add() argument
76 set_normalized_timespec(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec_add()
77 lhs.tv_nsec + rhs.tv_nsec); in timespec_add()
84 static inline struct timespec timespec_sub(struct timespec lhs, in timespec_sub() argument
89 set_normalized_timespec(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec_sub()
90 lhs.tv_nsec - rhs.tv_nsec); in timespec_sub()
Dktime.h46 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
49 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
55 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
216 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
Dcompat.h460 static inline int compat_timeval_compare(struct compat_timeval *lhs, in compat_timeval_compare() argument
463 if (lhs->tv_sec < rhs->tv_sec) in compat_timeval_compare()
465 if (lhs->tv_sec > rhs->tv_sec) in compat_timeval_compare()
467 return lhs->tv_usec - rhs->tv_usec; in compat_timeval_compare()
470 static inline int compat_timespec_compare(struct compat_timespec *lhs, in compat_timespec_compare() argument
473 if (lhs->tv_sec < rhs->tv_sec) in compat_timespec_compare()
475 if (lhs->tv_sec > rhs->tv_sec) in compat_timespec_compare()
477 return lhs->tv_nsec - rhs->tv_nsec; in compat_timespec_compare()
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-v4.19/lib/
Dubsan.c166 static void handle_overflow(struct overflow_data *data, unsigned long lhs, in handle_overflow() argument
180 val_to_string(lhs_val_str, sizeof(lhs_val_str), type, lhs); in handle_overflow()
194 unsigned long lhs, in __ubsan_handle_add_overflow() argument
198 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
203 unsigned long lhs, in __ubsan_handle_sub_overflow() argument
206 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
211 unsigned long lhs, in __ubsan_handle_mul_overflow() argument
214 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
240 unsigned long lhs, in __ubsan_handle_divrem_overflow() argument
391 unsigned long lhs, unsigned long rhs) in __ubsan_handle_shift_out_of_bounds() argument
[all …]
/Linux-v4.19/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-v4.19/drivers/bluetooth/
Dhci_mrvl.c58 __le16 lhs; member
158 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req()
172 mrvl->tx_len = le16_to_cpu(pkt->lhs); in mrvl_recv_fw_req()
188 u16 version = le16_to_cpu(pkt->lhs); in mrvl_recv_chip_ver()
191 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dfec_ptp.c295 u64 lhs, rhs; in fec_ptp_adjfreq() local
312 lhs = NSEC_PER_SEC; in fec_ptp_adjfreq()
315 if (lhs >= rhs) { in fec_ptp_adjfreq()
317 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
320 lhs += NSEC_PER_SEC; in fec_ptp_adjfreq()
/Linux-v4.19/net/ceph/
Dosdmap.c581 int ceph_pg_compare(const struct ceph_pg *lhs, const struct ceph_pg *rhs) in ceph_pg_compare() argument
583 if (lhs->pool < rhs->pool) in ceph_pg_compare()
585 if (lhs->pool > rhs->pool) in ceph_pg_compare()
587 if (lhs->seed < rhs->seed) in ceph_pg_compare()
589 if (lhs->seed > rhs->seed) in ceph_pg_compare()
595 int ceph_spg_compare(const struct ceph_spg *lhs, const struct ceph_spg *rhs) in ceph_spg_compare() argument
599 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare()
603 if (lhs->shard < rhs->shard) in ceph_spg_compare()
605 if (lhs->shard > rhs->shard) in ceph_spg_compare()
1991 static bool __osds_equal(const struct ceph_osds *lhs, in __osds_equal() argument
[all …]
Dosd_client.c1588 static int hoid_compare(const struct ceph_hobject_id *lhs, in hoid_compare() argument
1595 if (lhs->is_max < rhs->is_max) in hoid_compare()
1597 if (lhs->is_max > rhs->is_max) in hoid_compare()
1600 if (lhs->pool < rhs->pool) in hoid_compare()
1602 if (lhs->pool > rhs->pool) in hoid_compare()
1605 if (hoid_get_bitwise_key(lhs) < hoid_get_bitwise_key(rhs)) in hoid_compare()
1607 if (hoid_get_bitwise_key(lhs) > hoid_get_bitwise_key(rhs)) in hoid_compare()
1610 ret = compare_names(lhs->nspace, lhs->nspace_len, in hoid_compare()
1615 hoid_get_effective_key(lhs, &effective_key1, &effective_key1_len); in hoid_compare()
1622 ret = compare_names(lhs->oid, lhs->oid_len, rhs->oid, rhs->oid_len); in hoid_compare()
[all …]
/Linux-v4.19/include/linux/ceph/
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-v4.19/scripts/gcc-plugins/
Dgcc-common.h378 tree lhs = gimple_get_lhs(gs); in gimple_store_p() local
380 return lhs && !is_gimple_reg(lhs); in gimple_store_p()
841 static inline gimple gimple_build_assign_with_ops(enum tree_code subcode, tree lhs, tree op1, tree … in gimple_build_assign_with_ops() argument
843 return gimple_build_assign(lhs, subcode, op1, op2 PASS_MEM_STAT); in gimple_build_assign_with_ops()
Drandomize_layout_plugin.c44 const char *lhs; member
796 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs)) in whitelisted_cast()
820 const_tree lhs; in find_bad_casts_execute() local
854 lhs = gimple_get_lhs(stmt); in find_bad_casts_execute()
855 lhs_type = TREE_TYPE(lhs); in find_bad_casts_execute()
Dlatent_entropy_plugin.c340 static gimple create_assign(enum tree_code code, tree lhs, tree op1, in create_assign() argument
343 return gimple_build_assign_with_ops(code, lhs, op1, op2); in create_assign()
/Linux-v4.19/kernel/time/
Dtime.c837 struct timespec64 timespec64_add_safe(const struct timespec64 lhs, in timespec64_add_safe() argument
842 set_normalized_timespec64(&res, (timeu64_t) lhs.tv_sec + rhs.tv_sec, in timespec64_add_safe()
843 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add_safe()
845 if (unlikely(res.tv_sec < lhs.tv_sec || res.tv_sec < rhs.tv_sec)) { in timespec64_add_safe()
Dhrtimer.c323 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() argument
325 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe()
331 if (res < 0 || res < lhs || res < rhs) in ktime_add_safe()
/Linux-v4.19/arch/arm64/include/asm/
Dpgtable.h278 pteval_t lhs, rhs; in pte_same() local
280 lhs = pte_val(pte_a); in pte_same()
284 lhs &= ~PTE_RDONLY; in pte_same()
289 return (lhs == rhs); in pte_same()
/Linux-v4.19/drivers/media/platform/am437x/
Dam437x-vpfe.c283 cmp_v4l2_format(const struct v4l2_format *lhs, const struct v4l2_format *rhs) in cmp_v4l2_format() argument
285 return lhs->type == rhs->type && in cmp_v4l2_format()
286 lhs->fmt.pix.width == rhs->fmt.pix.width && in cmp_v4l2_format()
287 lhs->fmt.pix.height == rhs->fmt.pix.height && in cmp_v4l2_format()
288 lhs->fmt.pix.pixelformat == rhs->fmt.pix.pixelformat && in cmp_v4l2_format()
289 lhs->fmt.pix.field == rhs->fmt.pix.field && in cmp_v4l2_format()
290 lhs->fmt.pix.colorspace == rhs->fmt.pix.colorspace && in cmp_v4l2_format()
291 lhs->fmt.pix.ycbcr_enc == rhs->fmt.pix.ycbcr_enc && in cmp_v4l2_format()
292 lhs->fmt.pix.quantization == rhs->fmt.pix.quantization && in cmp_v4l2_format()
293 lhs->fmt.pix.xfer_func == rhs->fmt.pix.xfer_func; in cmp_v4l2_format()
/Linux-v4.19/arch/arm/boot/dts/
Dtegra20-trimslice.dts142 "lhs", "lm0", "lm1", "lpp", "lpw0",
255 "lhp1", "lhp2", "lhs", "lm0", "lpp",
Dtegra20-tamonten.dtsi134 "lhs", "lm0", "lm1", "lpp", "lpw0",
240 "lhp1", "lhp2", "lhs", "lm0", "lpp",
Dtegra20-paz00.dts140 "lhs", "lm0", "lm1", "lpp", "lpw0",
240 "ldc", "ldi", "lhs", "lsc0", "lspi",
Dtegra20-ventana.dts155 "lhp1", "lhp2", "lhs", "lpp", "lpw0",
262 "lhp1", "lhp2", "lhs", "lm0", "lpp",

12