Lines Matching refs:spec
37 bigtime_to_timespec(bigtime_t time, timespec& spec) in bigtime_to_timespec() argument
39 spec.tv_sec = time / 1000000; in bigtime_to_timespec()
40 spec.tv_nsec = (time % 1000000) * 1000; in bigtime_to_timespec()
45 timespec_to_bigtime(const timespec& spec, bigtime_t& _time) in timespec_to_bigtime() argument
47 if (spec.tv_sec < 0 || spec.tv_nsec < 0 || spec.tv_nsec >= 1000000000) in timespec_to_bigtime()
50 _time = (bigtime_t)spec.tv_sec * 1000000 + (spec.tv_nsec + 999) / 1000; in timespec_to_bigtime()
57 timeval_to_timespec(const timeval& val, timespec& spec) in timeval_to_timespec() argument
62 spec.tv_sec = val.tv_sec; in timeval_to_timespec()
63 spec.tv_nsec = val.tv_usec * 1000; in timeval_to_timespec()
72 timespec spec; in timeval_to_bigtime() local
73 return timeval_to_timespec(val, spec) && timespec_to_bigtime(spec, _time); in timeval_to_bigtime()
78 timespec_to_timeval(const timespec& spec, timeval& val) in timespec_to_timeval() argument
80 val.tv_sec = spec.tv_sec; in timespec_to_timeval()
81 val.tv_usec = spec.tv_nsec / 1000; in timespec_to_timeval()