• Home
  • Raw
  • Download

Lines Matching refs:val

496 	u8 *val;  in dccp_setsockopt_ccid()  local
502 val = memdup_sockptr(optval, optlen); in dccp_setsockopt_ccid()
503 if (IS_ERR(val)) in dccp_setsockopt_ccid()
504 return PTR_ERR(val); in dccp_setsockopt_ccid()
508 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 1, val, optlen); in dccp_setsockopt_ccid()
511 rc = dccp_feat_register_sp(sk, DCCPF_CCID, 0, val, optlen); in dccp_setsockopt_ccid()
514 kfree(val); in dccp_setsockopt_ccid()
522 int val, err = 0; in do_dccp_setsockopt() local
541 if (copy_from_sockptr(&val, optval, sizeof(int))) in do_dccp_setsockopt()
545 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt()
553 dp->dccps_server_timewait = (val != 0); in do_dccp_setsockopt()
556 err = dccp_setsockopt_cscov(sk, val, false); in do_dccp_setsockopt()
559 err = dccp_setsockopt_cscov(sk, val, true); in do_dccp_setsockopt()
564 else if (val < 0 || val >= DCCPQ_POLICY_MAX) in do_dccp_setsockopt()
567 dp->dccps_qpolicy = val; in do_dccp_setsockopt()
570 if (val < 0) in do_dccp_setsockopt()
573 dp->dccps_tx_qlen = val; in do_dccp_setsockopt()
628 int val, len; in do_dccp_getsockopt() local
646 val = READ_ONCE(dp->dccps_mss_cache); in do_dccp_getsockopt()
651 val = ccid_get_current_tx_ccid(dp); in do_dccp_getsockopt()
652 if (val < 0) in do_dccp_getsockopt()
656 val = ccid_get_current_rx_ccid(dp); in do_dccp_getsockopt()
657 if (val < 0) in do_dccp_getsockopt()
661 val = dp->dccps_server_timewait; in do_dccp_getsockopt()
664 val = dp->dccps_pcslen; in do_dccp_getsockopt()
667 val = dp->dccps_pcrlen; in do_dccp_getsockopt()
670 val = dp->dccps_qpolicy; in do_dccp_getsockopt()
673 val = dp->dccps_tx_qlen; in do_dccp_getsockopt()
685 len = sizeof(val); in do_dccp_getsockopt()
686 if (put_user(len, optlen) || copy_to_user(optval, &val, len)) in do_dccp_getsockopt()