Lines Matching refs:num_chunks
5613 u32 num_chunks = 0; in sctp_getsockopt_peer_auth_chunks() local
5635 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_peer_auth_chunks()
5636 if (len < num_chunks) in sctp_getsockopt_peer_auth_chunks()
5639 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
5642 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_peer_auth_chunks()
5645 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_peer_auth_chunks()
5658 u32 num_chunks = 0; in sctp_getsockopt_local_auth_chunks() local
5683 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_local_auth_chunks()
5684 if (len < sizeof(struct sctp_authchunks) + num_chunks) in sctp_getsockopt_local_auth_chunks()
5687 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_local_auth_chunks()
5690 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_local_auth_chunks()
5693 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_local_auth_chunks()