Lines Matching refs:timespec
12 struct timespec { struct
39 static inline int timespec_equal(struct timespec *a, struct timespec *b) in timespec_equal()
49 static inline int timespec_compare(struct timespec *lhs, struct timespec *rhs) in timespec_compare()
71 extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
76 static inline struct timespec timespec_sub(struct timespec lhs, in timespec_sub()
77 struct timespec rhs) in timespec_sub()
79 struct timespec ts_delta; in timespec_sub()
91 extern struct timespec xtime;
92 extern struct timespec wall_to_monotonic;
102 struct timespec current_kernel_time(void);
105 #define CURRENT_TIME_SEC ((struct timespec) { xtime.tv_sec, 0 })
108 extern int do_settimeofday(struct timespec *tv);
109 extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz);
117 extern void getnstimeofday(struct timespec *tv);
119 extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
129 static inline s64 timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
153 extern struct timespec ns_to_timespec(const s64 nsec);
168 static inline void timespec_add_ns(struct timespec *a, u64 ns) in timespec_add_ns()
196 struct timespec it_interval; /* timer period */
197 struct timespec it_value; /* timer expiration */