Lines Matching defs:stream

392 int sctp_stream_init(struct sctp_stream *stream, __u16 outcnt, __u16 incnt,
394 int sctp_stream_init_ext(struct sctp_stream *stream, __u16 sid);
395 void sctp_stream_free(struct sctp_stream *stream);
396 void sctp_stream_clear(struct sctp_stream *stream);
397 void sctp_stream_update(struct sctp_stream *stream, struct sctp_stream *new);
399 /* What is the current SSN number for this stream? */
400 #define sctp_ssn_peek(stream, type, sid) \
401 (sctp_stream_##type((stream), (sid))->ssn)
403 /* Return the next SSN number for this stream. */
404 #define sctp_ssn_next(stream, type, sid) \
405 (sctp_stream_##type((stream), (sid))->ssn++)
408 #define sctp_ssn_skip(stream, type, sid, ssn) \
409 (sctp_stream_##type((stream), (sid))->ssn = ssn + 1)
411 /* What is the current MID number for this stream? */
412 #define sctp_mid_peek(stream, type, sid) \
413 (sctp_stream_##type((stream), (sid))->mid)
415 /* Return the next MID number for this stream. */
416 #define sctp_mid_next(stream, type, sid) \
417 (sctp_stream_##type((stream), (sid))->mid++)
420 #define sctp_mid_skip(stream, type, sid, mid) \
421 (sctp_stream_##type((stream), (sid))->mid = mid + 1)
423 /* What is the current MID_uo number for this stream? */
424 #define sctp_mid_uo_peek(stream, type, sid) \
425 (sctp_stream_##type((stream), (sid))->mid_uo)
427 /* Return the next MID_uo number for this stream. */
428 #define sctp_mid_uo_next(stream, type, sid) \
429 (sctp_stream_##type((stream), (sid))->mid_uo++)
561 /* List in specific stream outq */
683 return ntohs(ch->subh.data_hdr->stream);
1410 /* The next stream in line */
1419 struct list_head outq; /* chunks enqueued by this stream */
1466 /* Current stream being sent, if any */
1478 /* The next stream in line */
1489 struct sctp_stream *stream,
1492 return genradix_ptr(&stream->out, sid);
1496 struct sctp_stream *stream,
1499 return genradix_ptr(&stream->in, sid);
1508 static inline __u16 sctp_datachk_len(const struct sctp_stream *stream)
1510 return stream->si->data_chunk_len;
1513 static inline __u16 sctp_datahdr_len(const struct sctp_stream *stream)
1515 return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr);
1518 static inline __u16 sctp_ftsnchk_len(const struct sctp_stream *stream)
1520 return stream->si->ftsn_chunk_len;
1523 static inline __u16 sctp_ftsnhdr_len(const struct sctp_stream *stream)
1525 return stream->si->ftsn_chunk_len - sizeof(struct sctp_chunkhdr);
1954 struct sctp_stream stream;