Home
last modified time | relevance | path

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

/include/linux/
Dtime64.h54 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 …]
Ddma-buf-map.h171 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()
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.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);