Lines Matching defs:stream
3 * Abstract layer for MIDI v1.0 stream
54 s32 stream;
65 int stream;
158 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
264 /* look for an available substream for the given stream direction;
268 int stream, int mode,
272 struct snd_rawmidi_str *s = &rmidi->streams[stream];
278 if (!(rmidi->info_flags & info_flags[stream]))
285 if (stream == SNDRV_RAWMIDI_STREAM_INPUT ||
319 rmidi->streams[substream->stream].substream_opened++;
510 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
532 rmidi->streams[substream->stream].substream_opened--;
597 info->stream = substream->stream;
632 if (info->stream < 0 || info->stream > 1)
634 info->stream = array_index_nospec(info->stream, 2);
635 pstr = &rmidi->streams[info->stream];
666 if (get_user(info.stream, &_info->stream))
734 status->stream = SNDRV_RAWMIDI_STREAM_OUTPUT;
747 status->stream = SNDRV_RAWMIDI_STREAM_INPUT;
768 switch (status32.stream) {
786 .stream = status64.stream,
808 switch (status.stream) {
843 int stream;
846 if (get_user(stream, &info->stream))
848 switch (stream) {
863 switch (params.stream) {
1622 struct snd_rawmidi_str *stream,
1633 substream->stream = direction;
1636 substream->pstr = stream;
1637 list_add_tail(&substream->list, &stream->substreams);
1638 stream->substream_count++;
1721 static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream)
1725 while (!list_empty(&stream->substreams)) {
1726 substream = list_entry(stream->substreams.next, struct snd_rawmidi_substream, list);
1897 * @stream: the stream direction, SNDRV_RAWMIDI_STREAM_XXX
1900 * Sets the rawmidi operators for the given stream direction.
1902 void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
1907 list_for_each_entry(substream, &rmidi->streams[stream].substreams, list)