Lines Matching refs:nsec
51 s32 sec, nsec;
53 s32 nsec, sec;
130 * that the tv.sec field is negative and the tv.nsec field is greater
134 * tv.sec < 0 and 0 >= tv.nsec < NSEC_PER_SEC
137 /* Set a ktime_t variable to a value in sec/nsec representation: */
140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } };
155 if (res.tv.nsec < 0)
156 res.tv.nsec += NSEC_PER_SEC;
174 * performance trick: the (u32) -NSEC gives 0x00000000Fxxxxxxx
178 * tv.nsec -= NSEC_PER_SEC
181 if (res.tv.nsec >= NSEC_PER_SEC)
190 * @nsec: the scalar nsec value to add
192 * Returns the sum of kt and nsec in ktime_t format
194 extern ktime_t ktime_add_ns(const ktime_t kt, u64 nsec);
205 .nsec = (s32)ts.tv_nsec } };
217 .nsec = (s32)tv.tv_usec * 1000 } };
229 .tv_nsec = (long) kt.tv.nsec };
242 .tv_usec = (suseconds_t) (kt.tv.nsec / NSEC_PER_USEC) };
253 return (u64) kt.tv.sec * NSEC_PER_SEC + kt.tv.nsec;