Lines Matching refs:tv_sec
53 r->tv_sec = a->tv_sec + b->tv_sec; in timespec_add()
56 r->tv_sec++; in timespec_add()
72 r->tv_sec = a->tv_sec - b->tv_sec; in timespec_sub()
75 r->tv_sec--; in timespec_sub()
90 r->tv_sec = a->tv_sec + (b / NSEC_PER_SEC); in timespec_add_nsec()
94 r->tv_sec++; in timespec_add_nsec()
97 r->tv_sec--; in timespec_add_nsec()
124 return (uint64_t)a->tv_sec * NSEC_PER_SEC + a->tv_nsec; in timespec_to_nsec()
153 return (uint64_t)a->tv_sec * 1000 + a->tv_nsec / 1000000; in timespec_to_msec()
180 return (uint64_t)a->tv_sec * 1000000 + a->tv_nsec / 1000; in timespec_to_usec()
198 assert(a->tv_sec >= 0); in timespec_to_proto()
201 uint64_t sec64 = a->tv_sec; in timespec_to_proto()
217 a->tv_sec = b / NSEC_PER_SEC; in timespec_from_nsec()
257 a->tv_sec = ((uint64_t)tv_sec_hi << 32) + tv_sec_lo; in timespec_from_proto()
270 return a->tv_sec == 0 && a->tv_nsec == 0; in timespec_is_zero()
283 return a->tv_sec == b->tv_sec && in timespec_eq()
310 return (a->tv_sec == b->tv_sec) ? in timespec_after()
312 (a->tv_sec > b->tv_sec); in timespec_after()