Lines Matching refs:ts

143 static int __compat_get_timespec(struct timespec *ts, const struct compat_timespec __user *cts)  in __compat_get_timespec()  argument
146 __get_user(ts->tv_sec, &cts->tv_sec) || in __compat_get_timespec()
147 __get_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_get_timespec()
150 static int __compat_put_timespec(const struct timespec *ts, struct compat_timespec __user *cts) in __compat_put_timespec() argument
153 __put_user(ts->tv_sec, &cts->tv_sec) || in __compat_put_timespec()
154 __put_user(ts->tv_nsec, &cts->tv_nsec)) ? -EFAULT : 0; in __compat_put_timespec()
175 int compat_get_timespec(struct timespec *ts, const void __user *uts) in compat_get_timespec() argument
178 return copy_from_user(ts, uts, sizeof(*ts)) ? -EFAULT : 0; in compat_get_timespec()
180 return __compat_get_timespec(ts, uts); in compat_get_timespec()
184 int compat_put_timespec(const struct timespec *ts, void __user *uts) in compat_put_timespec() argument
187 return copy_to_user(uts, ts, sizeof(*ts)) ? -EFAULT : 0; in compat_put_timespec()
189 return __compat_put_timespec(ts, uts); in compat_put_timespec()
196 struct timespec ts; in compat_convert_timespec() local
204 uts = compat_alloc_user_space(sizeof(ts)); in compat_convert_timespec()
207 if (compat_get_timespec(&ts, cts)) in compat_convert_timespec()
209 if (copy_to_user(uts, &ts, sizeof(ts))) in compat_convert_timespec()
728 struct itimerspec ts; in COMPAT_SYSCALL_DEFINE2() local
733 (struct itimerspec __user *) &ts); in COMPAT_SYSCALL_DEFINE2()
735 if (!err && put_compat_itimerspec(setting, &ts)) in COMPAT_SYSCALL_DEFINE2()
745 struct timespec ts; in COMPAT_SYSCALL_DEFINE2() local
747 if (compat_get_timespec(&ts, tp)) in COMPAT_SYSCALL_DEFINE2()
752 (struct timespec __user *) &ts); in COMPAT_SYSCALL_DEFINE2()
762 struct timespec ts; in COMPAT_SYSCALL_DEFINE2() local
767 (struct timespec __user *) &ts); in COMPAT_SYSCALL_DEFINE2()
769 if (!err && compat_put_timespec(&ts, tp)) in COMPAT_SYSCALL_DEFINE2()
802 struct timespec ts; in COMPAT_SYSCALL_DEFINE2() local
807 (struct timespec __user *) &ts); in COMPAT_SYSCALL_DEFINE2()
809 if (!err && tp && compat_put_timespec(&ts, tp)) in COMPAT_SYSCALL_DEFINE2()