Lines Matching refs:optlen
731 int optlen, flags, fflag; in sosctp_sendmsg() local
746 optlen = msg->msg_controllen; in sosctp_sendmsg()
747 cmsg = sosctp_find_cmsg(msg->msg_control, optlen, SCTP_SNDRCV); in sosctp_sendmsg()
795 optlen = 0; in sosctp_sendmsg()
888 msg->msg_control, optlen, SCTP_CAN_BLOCK); in sosctp_sendmsg()
933 int namelen, optlen, flags; in sosctp_seq_sendmsg() local
960 optlen = msg->msg_controllen; in sosctp_seq_sendmsg()
962 optlen = 0; in sosctp_seq_sendmsg()
988 msg->msg_control, optlen, flags, cr, &ssa); in sosctp_seq_sendmsg()
1091 optlen, SCTP_CAN_BLOCK); in sosctp_seq_sendmsg()
1228 socklen_t optlen; in sosctp_getsockopt() local
1261 optlen = maxlen; in sosctp_getsockopt()
1268 option_name, optbuf, &optlen); in sosctp_getsockopt()
1274 len = optlen; in sosctp_getsockopt()
1280 *optlenp = optlen; in sosctp_getsockopt()
1295 const void *optval, t_uscalar_t optlen, struct cred *cr) in sosctp_setsockopt() argument
1327 if (optlen < sizeof (sctp_assoc_t)) { in sosctp_setsockopt()
1335 if (optlen != sizeof (struct sctp_sndrcvinfo)) { in sosctp_setsockopt()
1390 optval, optlen); in sosctp_setsockopt()
1409 level, option_name, optval, optlen); in sosctp_setsockopt()
1416 option_name, optval, optlen); in sosctp_setsockopt()
1443 uint32_t optlen; in sosctp_ioctl() local
1553 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE) in sosctp_ioctl()
1576 buflen = optlen; in sosctp_ioctl()
1581 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen, in sosctp_ioctl()
1593 STRUCT_FGET(opt, sopt_name), buf, &optlen); in sosctp_ioctl()
1599 optlen = MIN(buflen, optlen); in sosctp_ioctl()
1602 STRUCT_FSET(opt, sopt_len, optlen); in sosctp_ioctl()
1607 optlen, (mode & (int)FKIOCTL))) { in sosctp_ioctl()
1621 if ((optlen = STRUCT_FGET(opt, sopt_len)) > SO_MAXARGSIZE) in sosctp_ioctl()
1644 buf = kmem_alloc(optlen, KM_SLEEP); in sosctp_ioctl()
1645 if (so_copyin(STRUCT_FGETP(opt, sopt_val), buf, optlen, in sosctp_ioctl()
1657 STRUCT_FGET(opt, sopt_name), buf, optlen); in sosctp_ioctl()
1663 kmem_free(buf, optlen); in sosctp_ioctl()