Lines Matching defs:stream

387 int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt,
389 int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid);
390 void sctp_stream_free(struct sctp_stream *stream);
391 void sctp_stream_clear(struct sctp_stream *stream);
392 void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new);
394 /* What is the current SSN number for this stream? */
395 #define sctp_ssn_peek(stream, type, sid) \
396 (sctp_stream_##type((stream), (sid))->ssn)
398 /* Return the next SSN number for this stream. */
399 #define sctp_ssn_next(stream, type, sid) \
400 (sctp_stream_##type((stream), (sid))->ssn++)
403 #define sctp_ssn_skip(stream, type, sid, ssn) \
404 (sctp_stream_##type((stream), (sid))->ssn = ssn + 1)
406 /* What is the current MID number for this stream? */
407 #define sctp_mid_peek(stream, type, sid) \
408 (sctp_stream_##type((stream), (sid))->mid)
410 /* Return the next MID number for this stream. */
411 #define sctp_mid_next(stream, type, sid) \
412 (sctp_stream_##type((stream), (sid))->mid++)
415 #define sctp_mid_skip(stream, type, sid, mid) \
416 (sctp_stream_##type((stream), (sid))->mid = mid + 1)
418 /* What is the current MID_uo number for this stream? */
419 #define sctp_mid_uo_peek(stream, type, sid) \
420 (sctp_stream_##type((stream), (sid))->mid_uo)
422 /* Return the next MID_uo number for this stream. */
423 #define sctp_mid_uo_next(stream, type, sid) \
424 (sctp_stream_##type((stream), (sid))->mid_uo++)
555 /* List in specific stream outq */
676 return ntohs(ch->subh.data_hdr->stream);
1394 /* The next stream in line */
1403 struct list_head outq; /* chunks enqueued by this stream */
1445 /* Current stream being sent, if any */
1457 /* The next stream in line */
1465 struct sctp_stream *stream,
1468 return genradix_ptr(&stream->out, sid);
1472 struct sctp_stream *stream,
1475 return genradix_ptr(&stream->in, sid);
1484 static inline __u16 sctp_datachk_len(const struct sctp_stream *stream)
1486 return stream->si->data_chunk_len;
1489 static inline __u16 sctp_datahdr_len(const struct sctp_stream *stream)
1491 return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr);
1494 static inline __u16 sctp_ftsnchk_len(const struct sctp_stream *stream)
1496 return stream->si->ftsn_chunk_len;
1499 static inline __u16 sctp_ftsnhdr_len(const struct sctp_stream *stream)
1501 return stream->si->ftsn_chunk_len - sizeof(struct sctp_chunkhdr);
1928 struct sctp_stream stream;