Lines Matching refs:optval

1387 				     char __user *optval,  in sctp_getsockopt_connectx3()  argument
1401 if (copy_from_user(&param32, optval, sizeof(param32))) in sctp_getsockopt_connectx3()
1412 if (copy_from_user(&param, optval, sizeof(param))) in sctp_getsockopt_connectx3()
1423 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3()
2261 static int sctp_setsockopt_autoclose(struct sock *sk, u32 *optval, in sctp_setsockopt_autoclose() argument
2273 sp->autoclose = *optval; in sctp_setsockopt_autoclose()
4563 sockptr_t optval, unsigned int optlen) in sctp_setsockopt() argument
4579 return af->setsockopt(sk, level, optname, optval, optlen); in sctp_setsockopt()
4587 kopt = memdup_sockptr(optval, optlen); in sctp_setsockopt()
5401 char __user *optval, in sctp_getsockopt_sctp_status() argument
5416 if (copy_from_user(&status, optval, len)) { in sctp_getsockopt_sctp_status()
5463 if (copy_to_user(optval, &status, len)) { in sctp_getsockopt_sctp_status()
5481 char __user *optval, in sctp_getsockopt_peer_addr_info() argument
5494 if (copy_from_user(&pinfo, optval, len)) { in sctp_getsockopt_peer_addr_info()
5527 if (copy_to_user(optval, &pinfo, len)) { in sctp_getsockopt_peer_addr_info()
5544 char __user *optval, int __user *optlen) in sctp_getsockopt_disable_fragments() argument
5555 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_disable_fragments()
5565 static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_events() argument
5583 if (copy_to_user(optval, &subscribe, len)) in sctp_getsockopt_events()
5600 static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *opt… in sctp_getsockopt_autoclose() argument
5610 if (put_user(sctp_sk(sk)->autoclose, (int __user *)optval)) in sctp_getsockopt_autoclose()
5702 static int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_peeloff() argument
5711 if (copy_from_user(&peeloff, optval, len)) in sctp_getsockopt_peeloff()
5725 if (copy_to_user(optval, &peeloff, len)) { in sctp_getsockopt_peeloff()
5736 char __user *optval, int __user *optlen) in sctp_getsockopt_peeloff_flags() argument
5745 if (copy_from_user(&peeloff, optval, len)) in sctp_getsockopt_peeloff_flags()
5760 if (copy_to_user(optval, &peeloff, len)) { in sctp_getsockopt_peeloff_flags()
5903 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_addr_params() argument
5919 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_peer_addr_params()
6001 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_peer_addr_params()
6046 char __user *optval, in sctp_getsockopt_delayed_ack() argument
6056 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_delayed_ack()
6064 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_delayed_ack()
6099 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_delayed_ack()
6119 static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optle… in sctp_getsockopt_initmsg() argument
6126 if (copy_to_user(optval, &sctp_sk(sk)->initmsg, len)) in sctp_getsockopt_initmsg()
6133 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_addrs() argument
6149 if (copy_from_user(&getaddrs, optval, sizeof(struct sctp_getaddrs))) in sctp_getsockopt_peer_addrs()
6157 to = optval + offsetof(struct sctp_getaddrs, addrs); in sctp_getsockopt_peer_addrs()
6174 if (put_user(cnt, &((struct sctp_getaddrs __user *)optval)->addr_num)) in sctp_getsockopt_peer_addrs()
6176 bytes_copied = ((char __user *)to) - optval; in sctp_getsockopt_peer_addrs()
6229 char __user *optval, int __user *optlen) in sctp_getsockopt_local_addrs() argument
6249 if (copy_from_user(&getaddrs, optval, sizeof(struct sctp_getaddrs))) in sctp_getsockopt_local_addrs()
6267 to = optval + offsetof(struct sctp_getaddrs, addrs); in sctp_getsockopt_local_addrs()
6316 if (put_user(cnt, &((struct sctp_getaddrs __user *)optval)->addr_num)) { in sctp_getsockopt_local_addrs()
6337 char __user *optval, int __user *optlen) in sctp_getsockopt_primary_addr() argument
6348 if (copy_from_user(&prim, optval, len)) in sctp_getsockopt_primary_addr()
6366 if (copy_to_user(optval, &prim, len)) in sctp_getsockopt_primary_addr()
6379 char __user *optval, int __user *optlen) in sctp_getsockopt_adaptation_layer() argument
6392 if (copy_to_user(optval, &adaptation, len)) in sctp_getsockopt_adaptation_layer()
6418 int len, char __user *optval, in sctp_getsockopt_default_send_param() argument
6430 if (copy_from_user(&info, optval, len)) in sctp_getsockopt_default_send_param()
6454 if (copy_to_user(optval, &info, len)) in sctp_getsockopt_default_send_param()
6464 char __user *optval, in sctp_getsockopt_default_sndinfo() argument
6476 if (copy_from_user(&info, optval, len)) in sctp_getsockopt_default_sndinfo()
6498 if (copy_to_user(optval, &info, len)) in sctp_getsockopt_default_sndinfo()
6515 char __user *optval, int __user *optlen) in sctp_getsockopt_nodelay() argument
6526 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_nodelay()
6544 char __user *optval, in sctp_getsockopt_rtoinfo() argument
6554 if (copy_from_user(&rtoinfo, optval, len)) in sctp_getsockopt_rtoinfo()
6580 if (copy_to_user(optval, &rtoinfo, len)) in sctp_getsockopt_rtoinfo()
6598 char __user *optval, in sctp_getsockopt_associnfo() argument
6612 if (copy_from_user(&assocparams, optval, len)) in sctp_getsockopt_associnfo()
6650 if (copy_to_user(optval, &assocparams, len)) in sctp_getsockopt_associnfo()
6667 char __user *optval, int __user *optlen) in sctp_getsockopt_mappedv4() argument
6679 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_mappedv4()
6690 char __user *optval, int __user *optlen) in sctp_getsockopt_context() argument
6700 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_context()
6713 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_context()
6747 char __user *optval, int __user *optlen) in sctp_getsockopt_maxseg() argument
6761 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_maxseg()
6779 if (copy_to_user(optval, &params.assoc_value, len)) in sctp_getsockopt_maxseg()
6782 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_maxseg()
6794 char __user *optval, int __user *optlen) in sctp_getsockopt_fragment_interleave() argument
6806 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_fragment_interleave()
6817 char __user *optval, in sctp_getsockopt_partial_delivery_point() argument
6830 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_partial_delivery_point()
6841 char __user *optval, in sctp_getsockopt_maxburst() argument
6856 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_maxburst()
6869 if (copy_to_user(optval, &params.assoc_value, len)) in sctp_getsockopt_maxburst()
6872 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_maxburst()
6881 char __user *optval, int __user *optlen) in sctp_getsockopt_hmac_ident() argument
6884 struct sctp_hmacalgo __user *p = (void __user *)optval; in sctp_getsockopt_hmac_ident()
6917 char __user *optval, int __user *optlen) in sctp_getsockopt_active_key() argument
6927 if (copy_from_user(&val, optval, len)) in sctp_getsockopt_active_key()
6946 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_active_key()
6953 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_auth_chunks() argument
6955 struct sctp_authchunks __user *p = (void __user *)optval; in sctp_getsockopt_peer_auth_chunks()
6965 if (copy_from_user(&val, optval, sizeof(val))) in sctp_getsockopt_peer_auth_chunks()
6997 char __user *optval, int __user *optlen) in sctp_getsockopt_local_auth_chunks() argument
7000 struct sctp_authchunks __user *p = (void __user *)optval; in sctp_getsockopt_local_auth_chunks()
7010 if (copy_from_user(&val, optval, sizeof(val))) in sctp_getsockopt_local_auth_chunks()
7053 char __user *optval, int __user *optlen) in sctp_getsockopt_assoc_number() argument
7073 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_assoc_number()
7084 char __user *optval, int __user *optlen) in sctp_getsockopt_auto_asconf() argument
7096 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_auto_asconf()
7109 char __user *optval, int __user *optlen) in sctp_getsockopt_assoc_ids() argument
7141 if (put_user(len, optlen) || copy_to_user(optval, ids, len)) { in sctp_getsockopt_assoc_ids()
7158 char __user *optval, int len, in sctp_getsockopt_paddr_thresholds() argument
7170 if (copy_from_user(&val, optval, len)) in sctp_getsockopt_paddr_thresholds()
7204 if (put_user(len, optlen) || copy_to_user(optval, &val, len)) in sctp_getsockopt_paddr_thresholds()
7217 char __user *optval, in sctp_getsockopt_assoc_stats() argument
7230 if (copy_from_user(&sas, optval, len)) in sctp_getsockopt_assoc_stats()
7268 if (copy_to_user(optval, &sas, len)) in sctp_getsockopt_assoc_stats()
7275 char __user *optval, in sctp_getsockopt_recvrcvinfo() argument
7288 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_recvrcvinfo()
7295 char __user *optval, in sctp_getsockopt_recvnxtinfo() argument
7308 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_recvnxtinfo()
7315 char __user *optval, in sctp_getsockopt_pr_supported() argument
7328 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_pr_supported()
7344 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_pr_supported()
7354 char __user *optval, in sctp_getsockopt_default_prinfo() argument
7367 if (copy_from_user(&info, optval, len)) in sctp_getsockopt_default_prinfo()
7390 if (copy_to_user(optval, &info, len)) in sctp_getsockopt_default_prinfo()
7400 char __user *optval, in sctp_getsockopt_pr_assocstatus() argument
7412 if (copy_from_user(&params, optval, len)) { in sctp_getsockopt_pr_assocstatus()
7447 if (copy_to_user(optval, &params, len)) { in sctp_getsockopt_pr_assocstatus()
7459 char __user *optval, in sctp_getsockopt_pr_streamstatus() argument
7472 if (copy_from_user(&params, optval, len)) { in sctp_getsockopt_pr_streamstatus()
7511 if (put_user(len, optlen) || copy_to_user(optval, &params, len)) { in sctp_getsockopt_pr_streamstatus()
7523 char __user *optval, in sctp_getsockopt_reconfig_supported() argument
7536 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_reconfig_supported()
7552 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_reconfig_supported()
7562 char __user *optval, in sctp_getsockopt_enable_strreset() argument
7575 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_enable_strreset()
7591 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_enable_strreset()
7601 char __user *optval, in sctp_getsockopt_scheduler() argument
7614 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_scheduler()
7630 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_scheduler()
7640 char __user *optval, in sctp_getsockopt_scheduler_value() argument
7653 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_scheduler_value()
7672 if (copy_to_user(optval, &params, len)) { in sctp_getsockopt_scheduler_value()
7682 char __user *optval, in sctp_getsockopt_interleaving_supported() argument
7695 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_interleaving_supported()
7711 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_interleaving_supported()
7721 char __user *optval, in sctp_getsockopt_reuse_port() argument
7734 if (copy_to_user(optval, &val, len)) in sctp_getsockopt_reuse_port()
7740 static int sctp_getsockopt_event(struct sock *sk, int len, char __user *optval, in sctp_getsockopt_event() argument
7751 if (copy_from_user(&param, optval, len)) in sctp_getsockopt_event()
7769 if (copy_to_user(optval, &param, len)) in sctp_getsockopt_event()
7776 char __user *optval, in sctp_getsockopt_asconf_supported() argument
7789 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_asconf_supported()
7805 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_asconf_supported()
7815 char __user *optval, in sctp_getsockopt_auth_supported() argument
7828 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_auth_supported()
7844 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_auth_supported()
7854 char __user *optval, in sctp_getsockopt_ecn_supported() argument
7867 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_ecn_supported()
7883 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_ecn_supported()
7893 char __user *optval, in sctp_getsockopt_pf_expose() argument
7906 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_pf_expose()
7922 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_pf_expose()
7932 char __user *optval, int __user *optlen) in sctp_getsockopt_encap_port() argument
7943 if (copy_from_user(&encap, optval, len)) in sctp_getsockopt_encap_port()
7981 if (copy_to_user(optval, &encap, len)) in sctp_getsockopt_encap_port()
7991 char __user *optval, in sctp_getsockopt_probe_interval() argument
8003 if (copy_from_user(&params, optval, len)) in sctp_getsockopt_probe_interval()
8041 if (copy_to_user(optval, &params, len)) in sctp_getsockopt_probe_interval()
8051 char __user *optval, int __user *optlen) in sctp_getsockopt() argument
8067 retval = af->getsockopt(sk, level, optname, optval, optlen); in sctp_getsockopt()
8081 retval = sctp_getsockopt_sctp_status(sk, len, optval, optlen); in sctp_getsockopt()
8084 retval = sctp_getsockopt_disable_fragments(sk, len, optval, in sctp_getsockopt()
8088 retval = sctp_getsockopt_events(sk, len, optval, optlen); in sctp_getsockopt()
8091 retval = sctp_getsockopt_autoclose(sk, len, optval, optlen); in sctp_getsockopt()
8094 retval = sctp_getsockopt_peeloff(sk, len, optval, optlen); in sctp_getsockopt()
8097 retval = sctp_getsockopt_peeloff_flags(sk, len, optval, optlen); in sctp_getsockopt()
8100 retval = sctp_getsockopt_peer_addr_params(sk, len, optval, in sctp_getsockopt()
8104 retval = sctp_getsockopt_delayed_ack(sk, len, optval, in sctp_getsockopt()
8108 retval = sctp_getsockopt_initmsg(sk, len, optval, optlen); in sctp_getsockopt()
8111 retval = sctp_getsockopt_peer_addrs(sk, len, optval, in sctp_getsockopt()
8115 retval = sctp_getsockopt_local_addrs(sk, len, optval, in sctp_getsockopt()
8119 retval = sctp_getsockopt_connectx3(sk, len, optval, optlen); in sctp_getsockopt()
8123 optval, optlen); in sctp_getsockopt()
8127 optval, optlen); in sctp_getsockopt()
8130 retval = sctp_getsockopt_primary_addr(sk, len, optval, optlen); in sctp_getsockopt()
8133 retval = sctp_getsockopt_nodelay(sk, len, optval, optlen); in sctp_getsockopt()
8136 retval = sctp_getsockopt_rtoinfo(sk, len, optval, optlen); in sctp_getsockopt()
8139 retval = sctp_getsockopt_associnfo(sk, len, optval, optlen); in sctp_getsockopt()
8142 retval = sctp_getsockopt_mappedv4(sk, len, optval, optlen); in sctp_getsockopt()
8145 retval = sctp_getsockopt_maxseg(sk, len, optval, optlen); in sctp_getsockopt()
8148 retval = sctp_getsockopt_peer_addr_info(sk, len, optval, in sctp_getsockopt()
8152 retval = sctp_getsockopt_adaptation_layer(sk, len, optval, in sctp_getsockopt()
8156 retval = sctp_getsockopt_context(sk, len, optval, optlen); in sctp_getsockopt()
8159 retval = sctp_getsockopt_fragment_interleave(sk, len, optval, in sctp_getsockopt()
8163 retval = sctp_getsockopt_partial_delivery_point(sk, len, optval, in sctp_getsockopt()
8167 retval = sctp_getsockopt_maxburst(sk, len, optval, optlen); in sctp_getsockopt()
8176 retval = sctp_getsockopt_hmac_ident(sk, len, optval, optlen); in sctp_getsockopt()
8179 retval = sctp_getsockopt_active_key(sk, len, optval, optlen); in sctp_getsockopt()
8182 retval = sctp_getsockopt_peer_auth_chunks(sk, len, optval, in sctp_getsockopt()
8186 retval = sctp_getsockopt_local_auth_chunks(sk, len, optval, in sctp_getsockopt()
8190 retval = sctp_getsockopt_assoc_number(sk, len, optval, optlen); in sctp_getsockopt()
8193 retval = sctp_getsockopt_assoc_ids(sk, len, optval, optlen); in sctp_getsockopt()
8196 retval = sctp_getsockopt_auto_asconf(sk, len, optval, optlen); in sctp_getsockopt()
8199 retval = sctp_getsockopt_paddr_thresholds(sk, optval, len, in sctp_getsockopt()
8203 retval = sctp_getsockopt_paddr_thresholds(sk, optval, len, in sctp_getsockopt()
8207 retval = sctp_getsockopt_assoc_stats(sk, len, optval, optlen); in sctp_getsockopt()
8210 retval = sctp_getsockopt_recvrcvinfo(sk, len, optval, optlen); in sctp_getsockopt()
8213 retval = sctp_getsockopt_recvnxtinfo(sk, len, optval, optlen); in sctp_getsockopt()
8216 retval = sctp_getsockopt_pr_supported(sk, len, optval, optlen); in sctp_getsockopt()
8219 retval = sctp_getsockopt_default_prinfo(sk, len, optval, in sctp_getsockopt()
8223 retval = sctp_getsockopt_pr_assocstatus(sk, len, optval, in sctp_getsockopt()
8227 retval = sctp_getsockopt_pr_streamstatus(sk, len, optval, in sctp_getsockopt()
8231 retval = sctp_getsockopt_reconfig_supported(sk, len, optval, in sctp_getsockopt()
8235 retval = sctp_getsockopt_enable_strreset(sk, len, optval, in sctp_getsockopt()
8239 retval = sctp_getsockopt_scheduler(sk, len, optval, in sctp_getsockopt()
8243 retval = sctp_getsockopt_scheduler_value(sk, len, optval, in sctp_getsockopt()
8247 retval = sctp_getsockopt_interleaving_supported(sk, len, optval, in sctp_getsockopt()
8251 retval = sctp_getsockopt_reuse_port(sk, len, optval, optlen); in sctp_getsockopt()
8254 retval = sctp_getsockopt_event(sk, len, optval, optlen); in sctp_getsockopt()
8257 retval = sctp_getsockopt_asconf_supported(sk, len, optval, in sctp_getsockopt()
8261 retval = sctp_getsockopt_auth_supported(sk, len, optval, in sctp_getsockopt()
8265 retval = sctp_getsockopt_ecn_supported(sk, len, optval, optlen); in sctp_getsockopt()
8268 retval = sctp_getsockopt_pf_expose(sk, len, optval, optlen); in sctp_getsockopt()
8271 retval = sctp_getsockopt_encap_port(sk, len, optval, optlen); in sctp_getsockopt()
8274 retval = sctp_getsockopt_probe_interval(sk, len, optval, optlen); in sctp_getsockopt()