Lines Matching refs:optlen

740 	int optlen, flags, fflag;  in sosctp_sendmsg()  local
755 optlen = msg->msg_controllen; in sosctp_sendmsg()
756 cmsg = sosctp_find_cmsg(msg->msg_control, optlen, SCTP_SNDRCV); in sosctp_sendmsg()
804 optlen = 0; in sosctp_sendmsg()
897 msg->msg_control, optlen, SCTP_CAN_BLOCK); in sosctp_sendmsg()
942 int namelen, optlen, flags; in sosctp_seq_sendmsg() local
969 optlen = msg->msg_controllen; in sosctp_seq_sendmsg()
971 optlen = 0; in sosctp_seq_sendmsg()
997 msg->msg_control, optlen, flags, cr, &ssa); in sosctp_seq_sendmsg()
1100 optlen, SCTP_CAN_BLOCK); in sosctp_seq_sendmsg()
1237 socklen_t optlen; in sosctp_getsockopt() local
1270 optlen = maxlen; in sosctp_getsockopt()
1277 option_name, optbuf, &optlen); in sosctp_getsockopt()
1283 len = optlen; in sosctp_getsockopt()
1289 *optlenp = optlen; in sosctp_getsockopt()
1304 const void *optval, t_uscalar_t optlen, struct cred *cr) in sosctp_setsockopt() argument
1336 if (optlen < sizeof (sctp_assoc_t)) { in sosctp_setsockopt()
1344 if (optlen != sizeof (struct sctp_sndrcvinfo)) { in sosctp_setsockopt()
1399 optval, optlen); in sosctp_setsockopt()
1418 level, option_name, optval, optlen); in sosctp_setsockopt()
1425 option_name, optval, optlen); in sosctp_setsockopt()
1452 uint32_t optlen; in sosctp_ioctl() local
1562 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE) in sosctp_ioctl()
1585 buflen = optlen; in sosctp_ioctl()
1590 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen, in sosctp_ioctl()
1602 STRUCT_FGET(opt, sopt_name), buf, &optlen); in sosctp_ioctl()
1608 optlen = MIN(buflen, optlen); in sosctp_ioctl()
1611 STRUCT_FSET(opt, sopt_len, optlen); in sosctp_ioctl()
1616 optlen, (mode & (int)FKIOCTL))) { in sosctp_ioctl()
1630 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE) in sosctp_ioctl()
1653 buf = kmem_alloc(optlen, KM_SLEEP); in sosctp_ioctl()
1654 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen, in sosctp_ioctl()
1666 STRUCT_FGET(opt, sopt_name), buf, optlen); in sosctp_ioctl()
1672 kmem_free(buf, optlen); in sosctp_ioctl()