Lines Matching refs:sid
53 __u16 sid; in sctp_chunk_assign_mid() local
58 sid = sctp_chunk_stream_no(chunk); in sctp_chunk_assign_mid()
76 sctp_mid_uo_next(stream, out, sid) : in sctp_chunk_assign_mid()
77 sctp_mid_uo_peek(stream, out, sid); in sctp_chunk_assign_mid()
80 sctp_mid_next(stream, out, sid) : in sctp_chunk_assign_mid()
81 sctp_mid_peek(stream, out, sid); in sctp_chunk_assign_mid()
90 __u16 sid, ssn; in sctp_validate_data() local
99 sid = sctp_chunk_stream_no(chunk); in sctp_validate_data()
102 return !SSN_lt(ssn, sctp_ssn_peek(stream, in, sid)); in sctp_validate_data()
109 __u16 sid; in sctp_validate_idata() local
118 sid = sctp_chunk_stream_no(chunk); in sctp_validate_idata()
121 return !MID_lt(mid, sctp_mid_peek(stream, in, sid)); in sctp_validate_idata()
423 __u16 sid = event->stream; in sctp_intl_retrieve_ordered() local
431 if (cevent->stream > sid) in sctp_intl_retrieve_ordered()
434 if (cevent->stream < sid) in sctp_intl_retrieve_ordered()
437 if (cevent->mid != sctp_mid_peek(stream, in, sid)) in sctp_intl_retrieve_ordered()
440 sctp_mid_next(stream, in, sid); in sctp_intl_retrieve_ordered()
452 __u16 sid; in sctp_intl_order() local
455 sid = event->stream; in sctp_intl_order()
457 if (event->mid != sctp_mid_peek(stream, in, sid)) { in sctp_intl_order()
462 sctp_mid_next(stream, in, sid); in sctp_intl_order()
763 __u16 sid = 0; in sctp_intl_retrieve_first_uo() local
780 sid = cevent->stream; in sctp_intl_retrieve_first_uo()
786 if (cevent->stream == sid && in sctp_intl_retrieve_first_uo()
869 __u16 sid = 0; in sctp_intl_retrieve_first() local
887 sid = cevent->stream; in sctp_intl_retrieve_first()
893 if (cevent->stream == sid && in sctp_intl_retrieve_first()
978 static void sctp_intl_stream_abort_pd(struct sctp_ulpq *ulpq, __u16 sid, in sctp_intl_stream_abort_pd() argument
989 sid, mid, flags, gfp); in sctp_intl_stream_abort_pd()
1002 static void sctp_intl_reap_ordered(struct sctp_ulpq *ulpq, __u16 sid) in sctp_intl_reap_ordered() argument
1018 if (csid > sid) in sctp_intl_reap_ordered()
1021 if (csid < sid) in sctp_intl_reap_ordered()
1039 if (csid == sid && cmid == sctp_mid_peek(stream, in, csid)) { in sctp_intl_reap_ordered()
1056 __u16 sid; in sctp_intl_abort_pd() local
1058 for (sid = 0; sid < stream->incnt; sid++) { in sctp_intl_abort_pd()
1059 struct sctp_stream_in *sin = SCTP_SI(stream, sid); in sctp_intl_abort_pd()
1066 sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x1, gfp); in sctp_intl_abort_pd()
1073 sctp_intl_stream_abort_pd(ulpq, sid, mid, 0, gfp); in sctp_intl_abort_pd()
1074 sctp_mid_skip(stream, in, sid, mid); in sctp_intl_abort_pd()
1076 sctp_intl_reap_ordered(ulpq, sid); in sctp_intl_abort_pd()
1122 __be16 sid = chunk->subh.idata_hdr->stream; in sctp_generate_iftsn() local
1131 sid, flags); in sctp_generate_iftsn()
1132 ftsn_skip_arr[skip_pos].stream = sid; in sctp_generate_iftsn()
1251 static void sctp_intl_skip(struct sctp_ulpq *ulpq, __u16 sid, __u32 mid, in sctp_intl_skip() argument
1254 struct sctp_stream_in *sin = sctp_stream_in(&ulpq->asoc->stream, sid); in sctp_intl_skip()
1260 sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x1, in sctp_intl_skip()
1266 if (MID_lt(mid, sctp_mid_peek(stream, in, sid))) in sctp_intl_skip()
1271 sctp_intl_stream_abort_pd(ulpq, sid, mid, 0x0, GFP_ATOMIC); in sctp_intl_skip()
1274 sctp_mid_skip(stream, in, sid, mid); in sctp_intl_skip()
1276 sctp_intl_reap_ordered(ulpq, sid); in sctp_intl_skip()