Lines Matching refs:num_chunks
6948 u32 num_chunks = 0; in sctp_getsockopt_peer_auth_chunks() local
6970 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_peer_auth_chunks()
6971 if (len < num_chunks) in sctp_getsockopt_peer_auth_chunks()
6974 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
6977 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_peer_auth_chunks()
6980 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_peer_auth_chunks()
6993 u32 num_chunks = 0; in sctp_getsockopt_local_auth_chunks() local
7020 num_chunks = ntohs(ch->param_hdr.length) - sizeof(struct sctp_paramhdr); in sctp_getsockopt_local_auth_chunks()
7021 if (len < sizeof(struct sctp_authchunks) + num_chunks) in sctp_getsockopt_local_auth_chunks()
7024 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_local_auth_chunks()
7027 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_local_auth_chunks()
7030 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_local_auth_chunks()