Lines Matching refs:num_chunks
5626 u32 num_chunks = 0; in sctp_getsockopt_peer_auth_chunks() local
5648 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_peer_auth_chunks()
5649 if (len < num_chunks) in sctp_getsockopt_peer_auth_chunks()
5652 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_peer_auth_chunks()
5655 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_peer_auth_chunks()
5658 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_peer_auth_chunks()
5671 u32 num_chunks = 0; in sctp_getsockopt_local_auth_chunks() local
5696 num_chunks = ntohs(ch->param_hdr.length) - sizeof(sctp_paramhdr_t); in sctp_getsockopt_local_auth_chunks()
5697 if (len < sizeof(struct sctp_authchunks) + num_chunks) in sctp_getsockopt_local_auth_chunks()
5700 if (copy_to_user(to, ch->chunks, num_chunks)) in sctp_getsockopt_local_auth_chunks()
5703 len = sizeof(struct sctp_authchunks) + num_chunks; in sctp_getsockopt_local_auth_chunks()
5706 if (put_user(num_chunks, &p->gauth_number_of_chunks)) in sctp_getsockopt_local_auth_chunks()