Lines Matching refs:kt
62 #define ktime_add_ns(kt, nsval) ((kt) + (nsval)) argument
68 #define ktime_sub_ns(kt, nsval) ((kt) - (nsval)) argument
77 #define ktime_to_timespec64(kt) ns_to_timespec64((kt)) argument
80 static inline s64 ktime_to_ns(const ktime_t kt) in ktime_to_ns() argument
82 return kt; in ktime_to_ns()
129 extern s64 __ktime_divns(const ktime_t kt, s64 div);
130 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
138 s64 ns = kt; in ktime_divns()
144 return __ktime_divns(kt, div); in ktime_divns()
148 static inline s64 ktime_divns(const ktime_t kt, s64 div) in ktime_divns() argument
155 return kt / div; in ktime_divns()
159 static inline s64 ktime_to_us(const ktime_t kt) in ktime_to_us() argument
161 return ktime_divns(kt, NSEC_PER_USEC); in ktime_to_us()
164 static inline s64 ktime_to_ms(const ktime_t kt) in ktime_to_ms() argument
166 return ktime_divns(kt, NSEC_PER_MSEC); in ktime_to_ms()
179 static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec) in ktime_add_us() argument
181 return ktime_add_ns(kt, usec * NSEC_PER_USEC); in ktime_add_us()
184 static inline ktime_t ktime_add_ms(const ktime_t kt, const u64 msec) in ktime_add_ms() argument
186 return ktime_add_ns(kt, msec * NSEC_PER_MSEC); in ktime_add_ms()
189 static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec) in ktime_sub_us() argument
191 return ktime_sub_ns(kt, usec * NSEC_PER_USEC); in ktime_sub_us()
194 static inline ktime_t ktime_sub_ms(const ktime_t kt, const u64 msec) in ktime_sub_ms() argument
196 return ktime_sub_ns(kt, msec * NSEC_PER_MSEC); in ktime_sub_ms()
209 static inline __must_check bool ktime_to_timespec64_cond(const ktime_t kt, in ktime_to_timespec64_cond() argument
212 if (kt) { in ktime_to_timespec64_cond()
213 *ts = ktime_to_timespec64(kt); in ktime_to_timespec64_cond()