Lines Matching refs:cts
143 static int __compat_get_timespec(struct timespec *ts, const struct compat_timespec __user *cts) in __compat_get_timespec() argument
145 return (!access_ok(VERIFY_READ, cts, sizeof(*cts)) || in __compat_get_timespec()
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
152 return (!access_ok(VERIFY_WRITE, cts, sizeof(*cts)) || in __compat_put_timespec()
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()
194 const void __user *cts) in compat_convert_timespec() argument
199 if (!cts || COMPAT_USE_64BIT_TIME) { in compat_convert_timespec()
200 *kts = (struct timespec __user *)cts; in compat_convert_timespec()
207 if (compat_get_timespec(&ts, cts)) in compat_convert_timespec()