Lines Matching refs:optlen
405 char __user *optval, unsigned int optlen) in dccp_setsockopt_service() argument
411 optlen > DCCP_SERVICE_LIST_MAX_LEN * sizeof(u32)) in dccp_setsockopt_service()
414 if (optlen > sizeof(service)) { in dccp_setsockopt_service()
415 sl = kmalloc(optlen, GFP_KERNEL); in dccp_setsockopt_service()
419 sl->dccpsl_nr = optlen / sizeof(u32) - 1; in dccp_setsockopt_service()
422 optlen - sizeof(service)) || in dccp_setsockopt_service()
476 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid() argument
481 if (optlen < 1 || optlen > DCCP_FEAT_MAX_SP_VALS) in dccp_setsockopt_ccid()
484 val = memdup_user(optval, optlen); in dccp_setsockopt_ccid()
490 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 1, val, optlen); in dccp_setsockopt_ccid()
493 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 0, val, optlen); in dccp_setsockopt_ccid()
501 char __user *optval, unsigned int optlen) in do_dccp_setsockopt() argument
517 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt()
520 if (optlen < (int)sizeof(int)) in do_dccp_setsockopt()
527 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt()
567 char __user *optval, unsigned int optlen) in dccp_setsockopt() argument
572 optlen); in dccp_setsockopt()
573 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt()
580 char __user *optval, unsigned int optlen) in compat_dccp_setsockopt() argument
584 optval, optlen); in compat_dccp_setsockopt()
585 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in compat_dccp_setsockopt()
593 int __user *optlen) in dccp_getsockopt_service() argument
610 if (put_user(total_len, optlen) || in dccp_getsockopt_service()
620 char __user *optval, int __user *optlen) in do_dccp_getsockopt() argument
625 if (get_user(len, optlen)) in do_dccp_getsockopt()
639 (__be32 __user *)optval, optlen); in do_dccp_getsockopt()
644 return ccid_getsockopt_builtin_ccids(sk, len, optval, optlen); in do_dccp_getsockopt()
672 len, (u32 __user *)optval, optlen); in do_dccp_getsockopt()
675 len, (u32 __user *)optval, optlen); in do_dccp_getsockopt()
681 if (put_user(len, optlen) || copy_to_user(optval, &val, len)) in do_dccp_getsockopt()
688 char __user *optval, int __user *optlen) in dccp_getsockopt() argument
693 optlen); in dccp_getsockopt()
694 return do_dccp_getsockopt(sk, level, optname, optval, optlen); in dccp_getsockopt()
701 char __user *optval, int __user *optlen) in compat_dccp_getsockopt() argument
705 optval, optlen); in compat_dccp_getsockopt()
706 return do_dccp_getsockopt(sk, level, optname, optval, optlen); in compat_dccp_getsockopt()