Home
last modified time | relevance | path

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

/include/linux/
Dtime64.h57 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()
68 static inline struct timespec64 timespec64_add(struct timespec64 lhs, 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()
80 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, 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 …]
Dktime.h45 #define ktime_sub(lhs, rhs) ((lhs) - (rhs)) argument
48 #define ktime_add(lhs, rhs) ((lhs) + (rhs)) argument
54 #define ktime_add_unsafe(lhs, rhs) ((u64) (lhs) + (rhs)) argument
197 extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
Diosys-map.h214 static inline bool iosys_map_is_equal(const struct iosys_map *lhs, in iosys_map_is_equal() argument
217 if (lhs->is_iomem != rhs->is_iomem) in iosys_map_is_equal()
219 else if (lhs->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()
Drtc.h33 static inline time64_t rtc_tm_sub(struct rtc_time *lhs, struct rtc_time *rhs) in rtc_tm_sub() argument
35 return rtc_tm_to_time64(lhs) - rtc_tm_to_time64(rhs); in rtc_tm_sub()
Dmin_heap.h37 bool (*less)(const void *lhs, const void *rhs, void *args);
38 void (*swp)(void *lhs, void *rhs, void *args);
Dbpf.h3055 bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs);
3118 static inline bool bpf_prog_dev_bound_match(const struct bpf_prog *lhs, const struct bpf_prog *rhs) in bpf_prog_dev_bound_match() argument
/include/linux/ceph/
Dmsgr.h90 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()
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);