Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 43) sorted by relevance

12

/linux/include/linux/
A Dtime64.h54 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
56 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
58 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
60 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
66 struct timespec64 rhs) in timespec64_add() argument
69 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
70 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
78 struct timespec64 rhs) in timespec64_sub() argument
81 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
82 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
[all …]
A Dpercpu_counter.h46 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch);
49 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
51 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare()
117 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument
119 if (fbc->count > rhs) in percpu_counter_compare()
121 else if (fbc->count < rhs) in percpu_counter_compare()
128 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
130 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
A 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);
A Ddma-buf-map.h172 const struct dma_buf_map *rhs) in dma_buf_map_is_equal() argument
174 if (lhs->is_iomem != rhs->is_iomem) in dma_buf_map_is_equal()
177 return lhs->vaddr_iomem == rhs->vaddr_iomem; in dma_buf_map_is_equal()
179 return lhs->vaddr == rhs->vaddr; in dma_buf_map_is_equal()
A Dmin_heap.h29 bool (*less)(const void *lhs, const void *rhs);
30 void (*swp)(void *lhs, void *rhs);
A 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/arch/arm64/kvm/hyp/nvhe/
A Dgen-hyprel.c177 #define assert_op(lhs, rhs, fmt, op) \ argument
180 typeof(rhs) _rhs = (rhs); \
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/include/asm-generic/
A Dword-at-a-time.h17 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
20 return ~(mask | rhs); in prep_zero_mask()
43 unsigned long rhs = val | c->low_bits; in has_zero() local
44 *data = rhs; in has_zero()
45 return (val + c->high_bits) & ~rhs; in has_zero()
/linux/lib/
A 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
28 *(int *)lhs = *(int *)rhs; in swap_ints()
29 *(int *)rhs = temp; in swap_ints()
A Dubsan.c169 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument
179 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow()
181 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow()
295 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument
309 val_to_string(rhs_str, sizeof(rhs_str), rhs_type, rhs); in __ubsan_handle_shift_out_of_bounds()
312 if (val_is_negative(rhs_type, rhs)) in __ubsan_handle_shift_out_of_bounds()
315 else if (get_unsigned_val(rhs_type, rhs) >= in __ubsan_handle_shift_out_of_bounds()
A Dpercpu_counter.c221 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument
227 if (abs(count - rhs) > (batch * num_online_cpus())) { in __percpu_counter_compare()
228 if (count > rhs) in __percpu_counter_compare()
235 if (count > rhs) in __percpu_counter_compare()
237 else if (count < rhs) in __percpu_counter_compare()
/linux/tools/perf/scripts/python/
A Dcompaction-times.py61 def __add__(self, rhs): argument
62 self.aval += rhs.aval
63 self.bval += rhs.bval
76 def __add__(self, rhs): argument
77 self.ns += rhs.ns
78 self.migrated += rhs.migrated
79 self.fscan += rhs.fscan
80 self.mscan += rhs.mscan
167 def __add__(self, rhs): argument
168 self.ns += rhs.ns
[all …]
/linux/tools/testing/selftests/powerpc/primitives/
A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
24 return ~(mask | rhs); in prep_zero_mask()
39 unsigned long rhs = val | c->low_bits; in has_zero() local
40 *data = rhs; in has_zero()
41 return (val + c->high_bits) & ~rhs; in has_zero()
/linux/arch/powerpc/include/asm/
A Dword-at-a-time.h21 static inline long prep_zero_mask(unsigned long val, unsigned long rhs, const struct word_at_a_time… in prep_zero_mask() argument
24 return ~(mask | rhs); in prep_zero_mask()
39 unsigned long rhs = val | c->low_bits; in has_zero() local
40 *data = rhs; in has_zero()
41 return (val + c->high_bits) & ~rhs; in has_zero()
/linux/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
A Dinput_system.c70 const csi_cfg_t *const rhs,
75 const input_system_source_t rhs,
80 const input_system_multiplex_t rhs,
1656 const input_system_source_t rhs, in set_source_type() argument
1670 if ((*lhs) == (rhs)) { in set_source_type()
1678 if (rhs >= N_INPUT_SYSTEM_SOURCE) { in set_source_type()
1683 *lhs = rhs; in set_source_type()
1692 const csi_cfg_t *const rhs, in set_csi_cfg() argument
1725 memory_required = rhs->csi_buffer.mem_reg_size * rhs->csi_buffer.nof_mem_regs; in set_csi_cfg()
1772 if ((*lhs) == (rhs)) { in input_system_multiplexer_cfg()
[all …]
/linux/drivers/md/
A Ddm-bio-prison-v2.c88 struct dm_cell_key_v2 *rhs) 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()
A Ddm-bio-prison-v1.c86 struct dm_cell_key *rhs) 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()
A 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/scripts/gcc-plugins/
A Dlatent_entropy_plugin.c295 static enum tree_code get_op(tree *rhs) in get_op() argument
308 if (rhs) { in get_op()
323 if (rhs) in get_op()
324 *rhs = build_int_cstu(long_unsigned_type_node, random_const); in get_op()
338 tree rhs; in perturb_local_entropy() local
341 op = get_op(&rhs); in perturb_local_entropy()
342 assign = create_assign(op, local_entropy, local_entropy, rhs); in perturb_local_entropy()
/linux/fs/hpfs/
A Dsuper.c399 char *rhs = args[0].from; in parse_opts() local
400 if (!rhs || !*rhs) in parse_opts()
402 if (*rhs == '-') m = -1; in parse_opts()
403 if (*rhs == '+' || *rhs == '-') rhs++; in parse_opts()
404 *timeshift = simple_strtoul(rhs, &rhs, 0) * m; in parse_opts()
405 if (*rhs) in parse_opts()
/linux/include/linux/ceph/
A Dmsgr.h91 const struct ceph_entity_addr *rhs) 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/drivers/gpu/drm/amd/display/dc/core/
A Ddc_link_enc_cfg.c205 static bool are_ep_ids_equal(struct display_endpoint_id *lhs, struct display_endpoint_id *rhs) in are_ep_ids_equal() argument
209 if (lhs->link_id.id == rhs->link_id.id && in are_ep_ids_equal()
210 lhs->link_id.enum_id == rhs->link_id.enum_id && in are_ep_ids_equal()
211 lhs->link_id.type == rhs->link_id.type && in are_ep_ids_equal()
212 lhs->ep_type == rhs->ep_type) in are_ep_ids_equal()
/linux/drivers/net/ethernet/freescale/
A Dfec_ptp.c288 u64 lhs, rhs; in fec_ptp_adjfreq() local
306 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq()
308 if (lhs >= rhs) { in fec_ptp_adjfreq()
310 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
/linux/drivers/bluetooth/
A Dhci_mrvl.c51 __le16 rhs; member
168 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_fw_req()
201 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { in mrvl_recv_chip_ver()
/linux/kernel/kcsan/
A Ddebugfs.c95 static int cmp_filterlist_addrs(const void *rhs, const void *lhs) in cmp_filterlist_addrs() argument
97 const unsigned long a = *(const unsigned long *)rhs; in cmp_filterlist_addrs()

Completed in 32 milliseconds

12