Lines Matching refs:timespec
39 static inline int64_t timespec_to_nanosecond(struct timespec *t) in timespec_to_nanosecond()
44 static inline struct timespec nanosecond_to_timespec(int64_t ns) in nanosecond_to_timespec()
46 struct timespec ret_time; in nanosecond_to_timespec()
54 static int timespec_abs_to_relate(struct timespec *time_abs, struct timespec *time_relate) in timespec_abs_to_relate()
58 struct timespec time_now; in timespec_abs_to_relate()
213 struct timespec value_spec = {0}; in timer_settime()
214 struct timespec interval_spec = {0}; in timer_settime()
227 ret = timespec_abs_to_relate((struct timespec *)&value->it_value, &value_spec); in timer_settime()
228 ret |= timespec_abs_to_relate((struct timespec *)&value->it_interval, &interval_spec); in timer_settime()
236 value_ns = timespec_to_nanosecond((struct timespec *)&value->it_value); in timer_settime()
237 interval_ns = timespec_to_nanosecond((struct timespec *)&value->it_interval); in timer_settime()