Home
last modified time | relevance | path

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

/include/linux/
Dtime64.h52 static inline int timespec64_compare(const struct timespec64 *lhs, const struct timespec64 *rhs) in timespec64_compare() argument
54 if (lhs->tv_sec < rhs->tv_sec) in timespec64_compare()
56 if (lhs->tv_sec > rhs->tv_sec) in timespec64_compare()
58 return lhs->tv_nsec - rhs->tv_nsec; in timespec64_compare()
63 static inline struct timespec64 timespec64_add(struct timespec64 lhs, in timespec64_add() argument
67 set_normalized_timespec64(&ts_delta, lhs.tv_sec + rhs.tv_sec, in timespec64_add()
68 lhs.tv_nsec + rhs.tv_nsec); in timespec64_add()
75 static inline struct timespec64 timespec64_sub(struct timespec64 lhs, in timespec64_sub() argument
79 set_normalized_timespec64(&ts_delta, lhs.tv_sec - rhs.tv_sec, in timespec64_sub()
80 lhs.tv_nsec - rhs.tv_nsec); in timespec64_sub()
[all …]
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);
Dmin_heap.h29 bool (*less)(const void *lhs, const void *rhs);
30 void (*swp)(void *lhs, void *rhs);
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()
/include/linux/ceph/
Dmsgr.h69 static inline bool ceph_addr_equal_no_type(const struct ceph_entity_addr *lhs, in ceph_addr_equal_no_type() argument
72 return !memcmp(&lhs->in_addr, &rhs->in_addr, sizeof(lhs->in_addr)) && in ceph_addr_equal_no_type()
73 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);