Lines Matching refs:num_chunks
6966 u32 num_chunks = 0; in sctp_getsockopt_peer_auth_chunks() local
6988 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
6989 if (len < num_chunks) in sctp_getsockopt_peer_auth_chunks()
6992 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
6995 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_peer_auth_chunks()
6998 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_peer_auth_chunks()
7011 u32 num_chunks = 0; in sctp_getsockopt_local_auth_chunks() local
7038 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
7039 if (len < sizeof(struct sctp_authchunks) + num_chunks) in sctp_getsockopt_local_auth_chunks()
7042 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_local_auth_chunks()
7045 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_local_auth_chunks()
7048 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_local_auth_chunks()