/linux-master/include/linux/ |
H A D | time64.h | 53 * lhs < rhs: return <0 54 * lhs == rhs: return 0 55 * lhs > rhs: return >0 57 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) argument 59 if (lhs->tv_sec < rhs->tv_sec) 61 if (lhs->tv_sec > rhs->tv_sec) 63 return lhs->tv_nsec - rhs->tv_nsec; 68 static inline struct timespec64 timespec64_add(struct timespec64 lhs, argument 72 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, 73 lhs 80 timespec64_sub(struct timespec64 lhs, struct timespec64 rhs) argument [all...] |
H A D | ktime.h | 44 /* Subtract two ktime_t variables. rem = lhs -rhs: */ 45 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) 47 /* Add two ktime_t variables. res = lhs + rhs: */ 48 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) 54 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) 197 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
H A D | iosys-map.h | 205 * @lhs: The iosys_map structure 214 static inline bool iosys_map_is_equal(const struct iosys_map *lhs, argument 217 if (lhs->is_iomem != rhs->is_iomem) 219 else if (lhs->is_iomem) 220 return lhs->vaddr_iomem == rhs->vaddr_iomem; 222 return lhs->vaddr == rhs->vaddr;
|
H A D | min_heap.h | 29 bool (*less)(const void *lhs, const void *rhs); 30 void (*swp)(void *lhs, void *rhs);
|
H A D | rtc.h | 32 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) argument 34 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs);
|
/linux-master/tools/perf/arch/x86/util/ |
H A D | evlist.c | 76 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs) argument 79 (arch_evsel__must_be_in_group(lhs) || arch_evsel__must_be_in_group(rhs))) { 81 if (strcasestr(lhs->name, "slots") && !strcasestr(lhs->name, "uops_retired.slots")) 86 if (strcasestr(lhs->name, "topdown") && !strcasestr(rhs->name, "topdown")) 88 if (!strcasestr(lhs->name, "topdown") && strcasestr(rhs->name, "topdown")) 93 return lhs->core.idx - rhs->core.idx;
|
/linux-master/lib/ |
H A D | ubsan.h | 127 void __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs); 128 void __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs); 129 void __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs); 131 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs); 135 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs);
|
H A D | test_min_heap.c | 14 static __init bool less_than(const void *lhs, const void *rhs) argument 16 return *(int *)lhs < *(int *)rhs; 19 static __init bool greater_than(const void *lhs, const void *rhs) argument 21 return *(int *)lhs > *(int *)rhs; 24 static __init void swap_ints(void *lhs, void *rhs) argument 26 int temp = *(int *)lhs; 28 *(int *)lhs = *(int *)rhs;
|
H A D | ubsan.c | 239 static void handle_overflow(struct overflow_data *data, void *lhs, argument 254 val_to_string(lhs_val_str, sizeof(lhs_val_str), type, lhs); 266 void *lhs, void *rhs) 269 handle_overflow(data, lhs, rhs, '+'); 274 void *lhs, void *rhs) 276 handle_overflow(data, lhs, rhs, '-'); 281 void *lhs, void *rhs) 283 handle_overflow(data, lhs, rhs, '*'); 307 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) argument 433 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, voi argument 265 __ubsan_handle_add_overflow(void *data, void *lhs, void *rhs) argument 273 __ubsan_handle_sub_overflow(void *data, void *lhs, void *rhs) argument 280 __ubsan_handle_mul_overflow(void *data, void *lhs, void *rhs) argument [all...] |
/linux-master/tools/perf/pmu-events/ |
H A D | metric.py | 115 def __init__(self, operator: str, lhs: Union[int, float, Expression], 118 self.lhs = _Constify(lhs) 137 other (Expression): is a lhs or rhs operator 154 return (f'{self.Bracket(self.lhs, self.lhs.ToPerfJson())} {self.operator} ' 158 return (f'{self.Bracket(self.lhs, self.lhs.ToPython())} {self.operator} ' 162 lhs = self.lhs [all...] |
/linux-master/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 177 #define assert_op(lhs, rhs, fmt, op) \ 179 typeof(lhs) _lhs = (lhs); \ 183 fatal_error("assertion " #lhs " " #op " " #rhs \ 184 " failed (lhs=" fmt ", rhs=" fmt \ 189 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) 190 #define assert_ne(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, !=) 191 #define assert_lt(lhs, rh [all...] |
/linux-master/arch/riscv/kernel/tests/module_test/ |
H A D | test_module_linking_main.c | 29 #define CHECK_EQ(lhs, rhs) KUNIT_ASSERT_EQ(test, lhs, rhs)
|
/linux-master/drivers/md/ |
H A D | dm-bio-prison-v2.c | 88 static int cmp_keys(struct dm_cell_key_v2 *lhs, argument 91 if (lhs->virtual < rhs->virtual) 94 if (lhs->virtual > rhs->virtual) 97 if (lhs->dev < rhs->dev) 100 if (lhs->dev > rhs->dev) 103 if (lhs->block_end <= rhs->block_begin) 106 if (lhs->block_begin >= rhs->block_end)
|
H A D | dm-bio-prison-v1.c | 96 static int cmp_keys(struct dm_cell_key *lhs, argument 99 if (lhs->virtual < rhs->virtual) 102 if (lhs->virtual > rhs->virtual) 105 if (lhs->dev < rhs->dev) 108 if (lhs->dev > rhs->dev) 111 if (lhs->block_end <= rhs->block_begin) 114 if (lhs->block_begin >= rhs->block_end)
|
H A D | dm-cache-background-tracker.c | 77 static int cmp_oblock(dm_oblock_t lhs, dm_oblock_t rhs) argument 79 if (from_oblock(lhs) < from_oblock(rhs)) 82 if (from_oblock(rhs) < from_oblock(lhs))
|
/linux-master/include/linux/ceph/ |
H A D | msgr.h | 90 static inline bool ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, argument 93 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && 94 lhs->nonce == rhs->nonce;
|
H A D | osdmap.h | 34 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-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | input_system.c | 68 csi_cfg_t *const lhs, 73 input_system_source_t *const lhs, 78 input_system_multiplex_t *const lhs, 1210 input_system_source_t *const lhs, 1215 assert(lhs); 1225 if ((*lhs) == (rhs)) { 1238 *lhs = rhs; 1246 csi_cfg_t *const lhs, 1253 assert(lhs); 1263 if (/*lhs 1209 set_source_type( input_system_source_t *const lhs, const input_system_source_t rhs, input_system_config_flags_t *const flags) argument 1245 set_csi_cfg( csi_cfg_t *const lhs, const csi_cfg_t *const rhs, input_system_config_flags_t *const flags) argument 1312 input_system_multiplexer_cfg( input_system_multiplex_t *const lhs, const input_system_multiplex_t rhs, input_system_config_flags_t *const flags) argument [all...] |
/linux-master/tools/lib/perf/include/perf/ |
H A D | cpumap.h | 66 LIBPERF_API bool perf_cpu_map__equal(const struct perf_cpu_map *lhs,
|
/linux-master/drivers/bluetooth/ |
H A D | hci_mrvl.c | 52 __le16 lhs; member in struct:hci_mrvl_pkt 170 if ((pkt->lhs ^ pkt->rhs) != 0xffff) { 184 mrvl->tx_len = le16_to_cpu(pkt->lhs); 200 u16 version = le16_to_cpu(pkt->lhs); 203 if ((pkt->lhs ^ pkt->rhs) != 0xffff) {
|
/linux-master/tools/lib/perf/ |
H A D | cpumap.c | 349 bool perf_cpu_map__equal(const struct perf_cpu_map *lhs, const struct perf_cpu_map *rhs) argument 353 if (lhs == rhs) 356 if (!lhs || !rhs) 359 nr = __perf_cpu_map__nr(lhs); 364 if (__perf_cpu_map__cpu(lhs, idx).cpu != __perf_cpu_map__cpu(rhs, idx).cpu)
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_cpu.c | 106 timespec_sub(const struct timespec *lhs, const struct timespec *rhs) argument 114 if (lhs->tv_sec < rhs->tv_sec) 117 ret.tv_sec = lhs->tv_sec - rhs->tv_sec; 119 if (lhs->tv_nsec < rhs->tv_nsec) { 124 ret.tv_nsec = NSEC_PER_SEC - rhs->tv_nsec + lhs->tv_nsec; 126 ret.tv_nsec = lhs->tv_nsec - rhs->tv_nsec;
|
/linux-master/kernel/trace/ |
H A D | trace_dynevent.h | 140 const char *lhs; member in struct:dynevent_arg_pair
|
/linux-master/kernel/kcsan/ |
H A D | debugfs.c | 95 static int cmp_filterlist_addrs(const void *rhs, const void *lhs) argument 98 const unsigned long b = *(const unsigned long *)lhs;
|
/linux-master/tools/perf/tests/ |
H A D | cpumap.c | 174 static int __test__cpu_map_intersect(const char *lhs, const char *rhs, int nr, const char *expected) argument 176 struct perf_cpu_map *a = perf_cpu_map__new(lhs);
|