Lines Matching refs:timespec
83 struct timespec tv;
135 struct timespec adjust;
153 int do_sys_settimeofday(struct timespec *tv, struct timezone *tz)
189 struct timespec new_ts;
228 struct timespec current_fs_time(struct super_block *sb)
230 struct timespec now = current_kernel_time();
274 * timespec_trunc - Truncate timespec to a granularity
278 * Truncate a timespec to a granularity. gran must be smaller than a second.
285 struct timespec timespec_trunc(struct timespec t, unsigned gran)
342 * set_normalized_timespec - set timespec sec and nsec parts and normalize
344 * @ts: pointer to timespec variable to be set
348 * Set seconds and nanoseconds field of a timespec variable and
349 * normalize to the timespec storage format
355 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec)
378 * ns_to_timespec - Convert nanoseconds to timespec
381 * Returns the timespec representation of the nsec parameter.
383 struct timespec ns_to_timespec(const s64 nsec)
385 struct timespec ts;
389 return (struct timespec) {0, 0};
410 struct timespec ts = ns_to_timespec(nsec);
503 timespec_to_jiffies(const struct timespec *value)
520 jiffies_to_timespec(const unsigned long jiffies, struct timespec *value)
695 * Add two timespec values and do a safety check for overflow.
698 struct timespec timespec_add_safe(const struct timespec lhs,
699 const struct timespec rhs)
701 struct timespec res;