Lines Matching refs:outcnt
30 struct sctp_stream *new, __u16 outcnt) in sctp_stream_outq_migrate() argument
43 if (sid < outcnt) in sctp_stream_outq_migrate()
65 for (i = 0; i < outcnt; i++) { in sctp_stream_outq_migrate()
72 for (i = outcnt; i < stream->outcnt; i++) { in sctp_stream_outq_migrate()
78 static int sctp_stream_alloc_out(struct sctp_stream *stream, __u16 outcnt, in sctp_stream_alloc_out() argument
83 if (outcnt <= stream->outcnt) in sctp_stream_alloc_out()
86 ret = genradix_prealloc(&stream->out, outcnt, gfp); in sctp_stream_alloc_out()
90 stream->outcnt = outcnt; in sctp_stream_alloc_out()
110 int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt, in sctp_stream_init() argument
121 if (outcnt == stream->outcnt) in sctp_stream_init()
126 sctp_stream_outq_migrate(stream, NULL, outcnt); in sctp_stream_init()
129 ret = sctp_stream_alloc_out(stream, outcnt, gfp); in sctp_stream_init()
133 for (i = 0; i < stream->outcnt; i++) in sctp_stream_init()
152 stream->outcnt = 0; in sctp_stream_init()
182 for (i = 0; i < stream->outcnt; i++) in sctp_stream_free()
192 for (i = 0; i < stream->outcnt; i++) { in sctp_stream_clear()
206 sctp_stream_outq_migrate(stream, new, new->outcnt); in sctp_stream_update()
211 stream->outcnt = new->outcnt; in sctp_stream_update()
218 new->outcnt = 0; in sctp_stream_update()
292 if (str_list[i] >= stream->outcnt) in sctp_send_reset_streams()
343 for (i = 0; i < stream->outcnt; i++) in sctp_send_reset_streams()
362 for (i = 0; i < stream->outcnt; i++) in sctp_send_reset_streams()
396 for (i = 0; i < stream->outcnt; i++) in sctp_send_reset_assoc()
407 for (i = 0; i < stream->outcnt; i++) in sctp_send_reset_assoc()
424 __u32 outcnt, incnt; in sctp_send_add_streams() local
440 outcnt = stream->outcnt + out; in sctp_send_add_streams()
442 if (outcnt > SCTP_MAX_STREAM || incnt > SCTP_MAX_STREAM || in sctp_send_add_streams()
449 retval = sctp_stream_alloc_out(stream, outcnt, GFP_KERNEL); in sctp_send_add_streams()
637 if (ntohs(str_p[i]) >= stream->outcnt) { in sctp_process_strreset_inreq()
658 for (i = 0; i < stream->outcnt; i++) in sctp_process_strreset_inreq()
754 for (i = 0; i < stream->outcnt; i++) { in sctp_process_strreset_tsnreq()
852 __u32 request_seq, outcnt; in sctp_process_strreset_addstrm_in() local
879 outcnt = stream->outcnt + out; in sctp_process_strreset_addstrm_in()
880 if (!out || outcnt > SCTP_MAX_STREAM) in sctp_process_strreset_addstrm_in()
883 ret = sctp_stream_alloc_out(stream, outcnt, GFP_ATOMIC); in sctp_process_strreset_addstrm_in()
895 stream->outcnt = outcnt; in sctp_process_strreset_addstrm_in()
953 for (i = 0; i < stream->outcnt; i++) { in sctp_process_strreset_resp()
963 for (i = 0; i < stream->outcnt; i++) in sctp_process_strreset_resp()
1020 for (i = 0; i < stream->outcnt; i++) { in sctp_process_strreset_resp()
1028 for (i = 0; i < stream->outcnt; i++) in sctp_process_strreset_resp()
1039 number = stream->outcnt - nums; in sctp_process_strreset_resp()
1042 for (i = number; i < stream->outcnt; i++) in sctp_process_strreset_resp()
1045 stream->outcnt = number; in sctp_process_strreset_resp()