Lines Matching refs:optlen

415 				   sockptr_t optval, unsigned int optlen)  in dccp_setsockopt_service()  argument
421 optlen > DCCP_SERVICE_LIST_MAX_LEN * sizeof(u32)) in dccp_setsockopt_service()
424 if (optlen > sizeof(service)) { in dccp_setsockopt_service()
425 sl = kmalloc(optlen, GFP_KERNEL); in dccp_setsockopt_service()
429 sl->dccpsl_nr = optlen / sizeof(u32) - 1; in dccp_setsockopt_service()
431 sizeof(service), optlen - sizeof(service)) || in dccp_setsockopt_service()
485 sockptr_t optval, unsigned int optlen) in dccp_setsockopt_ccid() argument
490 if (optlen < 1 || optlen > DCCP_FEAT_MAX_SP_VALS) in dccp_setsockopt_ccid()
493 val = memdup_sockptr(optval, optlen); in dccp_setsockopt_ccid()
499 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 1, val, optlen); in dccp_setsockopt_ccid()
502 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 0, val, optlen); in dccp_setsockopt_ccid()
510 sockptr_t optval, unsigned int optlen) in do_dccp_setsockopt() argument
526 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt()
529 if (optlen < (int)sizeof(int)) in do_dccp_setsockopt()
536 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt()
576 unsigned int optlen) in dccp_setsockopt() argument
581 optlen); in dccp_setsockopt()
582 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt()
589 int __user *optlen) in dccp_getsockopt_service() argument
606 if (put_user(total_len, optlen) || in dccp_getsockopt_service()
616 char __user *optval, int __user *optlen) in do_dccp_getsockopt() argument
621 if (get_user(len, optlen)) in do_dccp_getsockopt()
635 (__be32 __user *)optval, optlen); in do_dccp_getsockopt()
640 return ccid_getsockopt_builtin_ccids(sk, len, optval, optlen); in do_dccp_getsockopt()
668 len, (u32 __user *)optval, optlen); in do_dccp_getsockopt()
671 len, (u32 __user *)optval, optlen); in do_dccp_getsockopt()
677 if (put_user(len, optlen) || copy_to_user(optval, &val, len)) in do_dccp_getsockopt()
684 char __user *optval, int __user *optlen) in dccp_getsockopt() argument
689 optlen); in dccp_getsockopt()
690 return do_dccp_getsockopt(sk, level, optname, optval, optlen); in dccp_getsockopt()