/Linux-v6.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() 69 struct timespec64 rhs) 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() 81 struct timespec64 rhs) 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 | percpu_counter.h | 49 int __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch); 52 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 54 return __percpu_counter_compare(fbc, rhs, percpu_counter_batch); in percpu_counter_compare() 136 static inline int percpu_counter_compare(struct percpu_counter *fbc, s64 rhs) in percpu_counter_compare() argument 138 if (fbc->count > rhs) in percpu_counter_compare() 140 else if (fbc->count < rhs) in percpu_counter_compare() 147 __percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch) in __percpu_counter_compare() argument 149 return percpu_counter_compare(fbc, rhs); in __percpu_counter_compare()
|
D | ktime.h | 47 #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);
|
D | iosys-map.h | 215 const struct iosys_map *rhs) in iosys_map_is_equal() argument 217 if (lhs->is_iomem != rhs->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 | min_heap.h | 29 bool (*less)(const void *lhs, const void *rhs); 30 void (*swp)(void *lhs, void *rhs);
|
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-v6.1/rust/alloc/ |
D | borrow.rs | 448 fn add(mut self, rhs: &'a str) -> Self::Output { in add() 449 self += rhs; in add() 460 fn add(mut self, rhs: Cow<'a, str>) -> Self::Output { in add() 461 self += rhs; in add() 469 fn add_assign(&mut self, rhs: &'a str) { in add_assign() 471 *self = Cow::Borrowed(rhs) in add_assign() 472 } else if !rhs.is_empty() { in add_assign() 474 let mut s = String::with_capacity(lhs.len() + rhs.len()); in add_assign() 478 self.to_mut().push_str(rhs); in add_assign() 486 fn add_assign(&mut self, rhs: Cow<'a, str>) { in add_assign() [all …]
|
/Linux-v6.1/arch/arm64/kvm/hyp/nvhe/ |
D | gen-hyprel.c | 177 #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-v6.1/include/asm-generic/ |
D | word-at-a-time.h | 17 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-v6.1/lib/ |
D | test_min_heap.c | 14 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()
|
D | ubsan.c | 161 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument 171 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow() 173 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow() 287 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(rhs_str, sizeof(rhs_str), rhs_type, rhs); in __ubsan_handle_shift_out_of_bounds() 304 if (val_is_negative(rhs_type, rhs)) in __ubsan_handle_shift_out_of_bounds() 307 else if (get_unsigned_val(rhs_type, rhs) >= in __ubsan_handle_shift_out_of_bounds()
|
D | percpu_counter.c | 221 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-v6.1/tools/testing/selftests/powerpc/primitives/ |
D | word-at-a-time.h | 21 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-v6.1/arch/powerpc/include/asm/ |
D | word-at-a-time.h | 21 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-v6.1/tools/perf/scripts/python/ |
D | compaction-times.py | 61 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-v6.1/drivers/md/ |
D | dm-bio-prison-v2.c | 88 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()
|
D | dm-bio-prison-v1.c | 86 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()
|
D | dm-cache-background-tracker.c | 68 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-v6.1/rust/alloc/vec/ |
D | partial_eq.rs | 10 ([$($vars:tt)*] $lhs:ty, $rhs:ty $(where $ty:ty: $bound:ident)?, #[$stability:meta]) => { 12 impl<T, U, $($vars)*> PartialEq<$rhs> for $lhs 18 fn eq(&self, other: &$rhs) -> bool { self[..] == other[..] } 20 fn ne(&self, other: &$rhs) -> bool { self[..] != other[..] }
|
/Linux-v6.1/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | input_system.c | 70 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 1709 &&*/ lhs->buffering_mode == rhs->buffering_mode in set_csi_cfg() 1710 && lhs->csi_buffer.mem_reg_size == rhs->csi_buffer.mem_reg_size in set_csi_cfg() [all …]
|
/Linux-v6.1/fs/hpfs/ |
D | super.c | 399 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-v6.1/scripts/gcc-plugins/ |
D | latent_entropy_plugin.c | 301 static enum tree_code get_op(tree *rhs) in get_op() argument 314 if (rhs) { in get_op() 329 if (rhs) in get_op() 330 *rhs = build_int_cstu(long_unsigned_type_node, random_const); in get_op() 344 tree rhs; in perturb_local_entropy() local 347 op = get_op(&rhs); in perturb_local_entropy() 348 assign = create_assign(op, local_entropy, local_entropy, rhs); in perturb_local_entropy()
|
/Linux-v6.1/include/linux/ceph/ |
D | msgr.h | 91 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-v6.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-v6.1/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 283 u64 lhs, rhs; in fec_ptp_adjfreq() local 301 rhs = (u64)ppb * (u64)fep->ptp_inc; in fec_ptp_adjfreq() 303 if (lhs >= rhs) { in fec_ptp_adjfreq() 305 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq()
|