/linux/include/linux/ |
A D | time64.h | 54 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() 65 static inline struct timespec64 timespec64_add(struct timespec64 lhs, 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() 77 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, 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 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);
|
A D | dma-buf-map.h | 171 static inline bool dma_buf_map_is_equal(const struct dma_buf_map *lhs, in dma_buf_map_is_equal() argument 174 if (lhs->is_iomem != rhs->is_iomem) in dma_buf_map_is_equal() 176 else if (lhs->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 D | min_heap.h | 29 bool (*less)(const void *lhs, const void *rhs); 30 void (*swp)(void *lhs, void *rhs);
|
A 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/arch/arm64/kvm/hyp/nvhe/ |
A D | gen-hyprel.c | 177 #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/lib/ |
A 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 26 int temp = *(int *)lhs; in swap_ints() 28 *(int *)lhs = *(int *)rhs; in swap_ints()
|
A D | ubsan.c | 169 void __ubsan_handle_divrem_overflow(void *_data, void *lhs, void *rhs) in __ubsan_handle_divrem_overflow() argument 295 void __ubsan_handle_shift_out_of_bounds(void *_data, void *lhs, void *rhs) in __ubsan_handle_shift_out_of_bounds() argument 310 val_to_string(lhs_str, sizeof(lhs_str), lhs_type, lhs); in __ubsan_handle_shift_out_of_bounds() 321 else if (val_is_negative(lhs_type, lhs)) in __ubsan_handle_shift_out_of_bounds()
|
/linux/drivers/md/ |
A D | dm-bio-prison-v2.c | 87 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()
|
A D | dm-bio-prison-v1.c | 85 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()
|
A 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/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
A D | input_system.c | 69 csi_cfg_t *const lhs, 74 input_system_source_t *const lhs, 79 input_system_multiplex_t *const lhs, 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() 1762 assert(lhs); in input_system_multiplexer_cfg() 1772 if ((*lhs) == (rhs)) { in input_system_multiplexer_cfg() [all …]
|
/linux/include/linux/ceph/ |
A D | msgr.h | 90 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()
|
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/drivers/bluetooth/ |
A D | hci_mrvl.c | 50 __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/drivers/net/ethernet/freescale/ |
A D | fec_ptp.c | 288 u64 lhs, rhs; in fec_ptp_adjfreq() local 305 lhs = NSEC_PER_SEC; in fec_ptp_adjfreq() 308 if (lhs >= rhs) { in fec_ptp_adjfreq() 310 corr_period = div_u64(lhs, rhs); in fec_ptp_adjfreq() 313 lhs += NSEC_PER_SEC; in fec_ptp_adjfreq()
|
/linux/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_link_enc_cfg.c | 205 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/kernel/kcsan/ |
A D | debugfs.c | 95 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/kernel/time/ |
A D | time.c | 765 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/scripts/gcc-plugins/ |
A D | randomize_layout_plugin.c | 44 const char *lhs; member 792 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs)) in whitelisted_cast() 816 const_tree lhs; in find_bad_casts_execute() local 850 lhs = gimple_get_lhs(stmt); in find_bad_casts_execute() 851 lhs_type = TREE_TYPE(lhs); in find_bad_casts_execute()
|
A D | gcc-common.h | 311 static inline gimple gimple_build_assign_with_ops(enum tree_code subcode, tree lhs, tree op1, tree … in gimple_build_assign_with_ops() argument 313 return gimple_build_assign(lhs, subcode, op1, op2 PASS_MEM_STAT); in gimple_build_assign_with_ops()
|
A D | latent_entropy_plugin.c | 328 static gimple create_assign(enum tree_code code, tree lhs, tree op1, in create_assign() argument 331 return gimple_build_assign_with_ops(code, lhs, op1, op2); in create_assign()
|
/linux/net/ceph/ |
A D | osdmap.c | 663 if (lhs->pool < rhs->pool) in ceph_pg_compare() 665 if (lhs->pool > rhs->pool) in ceph_pg_compare() 667 if (lhs->seed < rhs->seed) in ceph_pg_compare() 669 if (lhs->seed > rhs->seed) in ceph_pg_compare() 679 ret = ceph_pg_compare(&lhs->pgid, &rhs->pgid); in ceph_spg_compare() 683 if (lhs->shard < rhs->shard) in ceph_spg_compare() 685 if (lhs->shard > rhs->shard) in ceph_spg_compare() 2222 if (lhs->size == rhs->size && in __osds_equal() 2232 static bool osds_equal(const struct ceph_osds *lhs, in osds_equal() argument 2235 if (__osds_equal(lhs, rhs) && in osds_equal() [all …]
|
/linux/kernel/trace/ |
A D | trace_dynevent.c | 351 ret = seq_buf_printf(&cmd->seq, " %s%c%s%c", arg_pair->lhs, in dynevent_arg_pair_add() 355 pr_err("field string is too long: %s%c%s%c\n", arg_pair->lhs, in dynevent_arg_pair_add()
|
A D | trace_dynevent.h | 140 const char *lhs; member
|