Lines Matching refs:tv_nsec
177 _ts->tv_nsec = ((uint64_t)1000000000 * in bintime2timespec()
187 _bt->frac = _ts->tv_nsec * (uint64_t)18446744073LL; in timespec2bintime()
213 _ts.tv_nsec = ((uint64_t)1000000000 * (uint32_t)_sbt) >> 32; in sbttots()
222 (_ts.tv_nsec * (((uint64_t)1 << 63) / 500000000) >> 32)); in tstosbt()
247 #define timespecclear(tvp) ((tvp)->tv_sec = (tvp)->tv_nsec = 0)
248 #define timespecisset(tvp) ((tvp)->tv_sec || (tvp)->tv_nsec)
251 ((tvp)->tv_nsec cmp (uvp)->tv_nsec) : \
256 (vvp)->tv_nsec += (uvp)->tv_nsec; \
257 if ((vvp)->tv_nsec >= 1000000000) { \
259 (vvp)->tv_nsec -= 1000000000; \
265 (vvp)->tv_nsec -= (uvp)->tv_nsec; \
266 if ((vvp)->tv_nsec < 0) { \
268 (vvp)->tv_nsec += 1000000000; \