Searched refs:ctv (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/kernel/ |
D | compat.c | 96 static int __compat_get_timeval(struct timeval *tv, const struct compat_timeval __user *ctv) in __compat_get_timeval() argument 98 return (!access_ok(VERIFY_READ, ctv, sizeof(*ctv)) || in __compat_get_timeval() 99 __get_user(tv->tv_sec, &ctv->tv_sec) || in __compat_get_timeval() 100 __get_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_get_timeval() 103 static int __compat_put_timeval(const struct timeval *tv, struct compat_timeval __user *ctv) in __compat_put_timeval() argument 105 return (!access_ok(VERIFY_WRITE, ctv, sizeof(*ctv)) || in __compat_put_timeval() 106 __put_user(tv->tv_sec, &ctv->tv_sec) || in __compat_put_timeval() 107 __put_user(tv->tv_usec, &ctv->tv_usec)) ? -EFAULT : 0; in __compat_put_timeval()
|
/Linux-v4.19/net/ |
D | compat.c | 212 struct compat_timeval ctv; in put_cmsg_compat() local 224 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat() 225 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat() 226 data = &ctv; in put_cmsg_compat() 227 len = sizeof(ctv); in put_cmsg_compat() 460 struct compat_timeval __user *ctv; in compat_sock_get_timestamp() local 467 ctv = (struct compat_timeval __user *) userstamp; in compat_sock_get_timestamp() 478 if (put_user(tv.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestamp() 479 put_user(tv.tv_usec, &ctv->tv_usec)) in compat_sock_get_timestamp() 487 struct compat_timespec __user *ctv; in compat_sock_get_timestampns() local [all …]
|
/Linux-v4.19/include/linux/ |
D | compat.h | 1013 struct compat_timeval ctv; in ns_to_compat_timeval() local 1016 ctv.tv_sec = tv.tv_sec; in ns_to_compat_timeval() 1017 ctv.tv_usec = tv.tv_usec; in ns_to_compat_timeval() 1019 return ctv; in ns_to_compat_timeval()
|
/Linux-v4.19/net/bluetooth/ |
D | hci_sock.c | 1386 struct compat_timeval ctv; in hci_sock_cmsg() local 1399 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg() 1400 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg() 1401 data = &ctv; in hci_sock_cmsg() 1402 len = sizeof(ctv); in hci_sock_cmsg()
|