Lines Matching refs:optlen
2786 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument
2799 if (optlen < 1) in do_tcp_setsockopt()
2803 min_t(long, TCP_CA_NAME_MAX-1, optlen)); in do_tcp_setsockopt()
2818 if (optlen < 1) in do_tcp_setsockopt()
2823 optlen)); in do_tcp_setsockopt()
2840 if (optlen != TCP_FASTOPEN_KEY_LENGTH && in do_tcp_setsockopt()
2841 optlen != TCP_FASTOPEN_KEY_BUF_LENGTH) in do_tcp_setsockopt()
2844 if (copy_from_user(key, optval, optlen)) in do_tcp_setsockopt()
2847 if (optlen == TCP_FASTOPEN_KEY_BUF_LENGTH) in do_tcp_setsockopt()
2857 if (optlen < sizeof(int)) in do_tcp_setsockopt()
2952 optlen); in do_tcp_setsockopt()
3070 err = tp->af_specific->md5_parse(sk, optname, optval, optlen); in do_tcp_setsockopt()
3122 err = tcp_repair_set_window(tp, optval, optlen); in do_tcp_setsockopt()
3149 unsigned int optlen) in tcp_setsockopt() argument
3155 optval, optlen); in tcp_setsockopt()
3156 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in tcp_setsockopt()
3162 char __user *optval, unsigned int optlen) in compat_tcp_setsockopt() argument
3166 optval, optlen); in compat_tcp_setsockopt()
3167 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in compat_tcp_setsockopt()
3393 int optname, char __user *optval, int __user *optlen) in do_tcp_getsockopt() argument
3400 if (get_user(len, optlen)) in do_tcp_getsockopt()
3449 if (get_user(len, optlen)) in do_tcp_getsockopt()
3455 if (put_user(len, optlen)) in do_tcp_getsockopt()
3467 if (get_user(len, optlen)) in do_tcp_getsockopt()
3475 if (put_user(len, optlen)) in do_tcp_getsockopt()
3486 if (get_user(len, optlen)) in do_tcp_getsockopt()
3489 if (put_user(len, optlen)) in do_tcp_getsockopt()
3496 if (get_user(len, optlen)) in do_tcp_getsockopt()
3500 if (put_user(0, optlen)) in do_tcp_getsockopt()
3504 if (put_user(len, optlen)) in do_tcp_getsockopt()
3515 if (get_user(len, optlen)) in do_tcp_getsockopt()
3528 if (put_user(len, optlen)) in do_tcp_getsockopt()
3556 if (get_user(len, optlen)) in do_tcp_getsockopt()
3617 if (get_user(len, optlen)) in do_tcp_getsockopt()
3623 if (put_user(tp->saved_syn[0], optlen)) { in do_tcp_getsockopt()
3631 if (put_user(len, optlen)) { in do_tcp_getsockopt()
3644 if (put_user(len, optlen)) in do_tcp_getsockopt()
3654 if (get_user(len, optlen)) in do_tcp_getsockopt()
3672 if (put_user(len, optlen)) in do_tcp_getsockopt()
3680 int __user *optlen) in tcp_getsockopt() argument
3686 optval, optlen); in tcp_getsockopt()
3687 return do_tcp_getsockopt(sk, level, optname, optval, optlen); in tcp_getsockopt()
3693 char __user *optval, int __user *optlen) in compat_tcp_getsockopt() argument
3697 optval, optlen); in compat_tcp_getsockopt()
3698 return do_tcp_getsockopt(sk, level, optname, optval, optlen); in compat_tcp_getsockopt()