• Home
  • Raw
  • Download

Lines Matching refs:optval

383 static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen)  in sock_set_timeout()  argument
389 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout()
546 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice() argument
574 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice()
604 static int sock_getbindtodevice(struct sock *sk, char __user *optval, in sock_getbindtodevice() argument
628 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice()
677 char __user *optval, unsigned int optlen) in sock_setsockopt() argument
690 return sock_setbindtodevice(sk, optval, optlen); in sock_setsockopt()
695 if (get_user(val, (int __user *)optval)) in sock_setsockopt()
812 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt()
889 ret = sock_set_timeout(&sk->sk_rcvtimeo, optval, optlen); in sock_setsockopt()
893 ret = sock_set_timeout(&sk->sk_sndtimeo, optval, optlen); in sock_setsockopt()
902 if (copy_from_user(&fprog, optval, sizeof(fprog))) in sock_setsockopt()
1002 char __user *optval, int __user *optlen) in sock_getsockopt() argument
1148 if (copy_to_user(optval, &peercred, len)) in sock_getsockopt()
1161 if (copy_to_user(optval, address, len)) in sock_getsockopt()
1178 return security_socket_getpeersec_stream(sock, optval, optlen, len); in sock_getsockopt()
1203 return sock_getbindtodevice(sk, optval, optlen, len); in sock_getsockopt()
1206 len = sk_get_filter(sk, (struct sock_filter __user *)optval, len); in sock_getsockopt()
1240 if (copy_to_user(optval, &v, len)) in sock_getsockopt()
2147 char __user *optval, unsigned int optlen) in sock_no_setsockopt() argument
2154 char __user *optval, int __user *optlen) in sock_no_getsockopt() argument
2521 char __user *optval, int __user *optlen) in sock_common_getsockopt() argument
2525 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in sock_common_getsockopt()
2531 char __user *optval, int __user *optlen) in compat_sock_common_getsockopt() argument
2537 optval, optlen); in compat_sock_common_getsockopt()
2538 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in compat_sock_common_getsockopt()
2562 char __user *optval, unsigned int optlen) in sock_common_setsockopt() argument
2566 return sk->sk_prot->setsockopt(sk, level, optname, optval, optlen); in sock_common_setsockopt()
2572 char __user *optval, unsigned int optlen) in compat_sock_common_setsockopt() argument
2578 optval, optlen); in compat_sock_common_setsockopt()
2579 return sk->sk_prot->setsockopt(sk, level, optname, optval, optlen); in compat_sock_common_setsockopt()