Lines Matching refs:stream

3  *  Abstract layer for MIDI v1.0 stream
54 s32 stream;
65 int stream;
176 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
316 /* look for an available substream for the given stream direction;
320 int stream, int mode,
324 struct snd_rawmidi_str *s = &rmidi->streams[stream];
330 if (!(rmidi->info_flags & info_flags[stream]))
337 if (stream == SNDRV_RAWMIDI_STREAM_INPUT ||
372 rmidi->streams[substream->stream].substream_opened++;
556 if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
581 rmidi->streams[substream->stream].substream_opened--;
646 info->stream = substream->stream;
681 if (info->stream < 0 || info->stream > 1)
683 info->stream = array_index_nospec(info->stream, 2);
684 pstr = &rmidi->streams[info->stream];
715 if (get_user(info.stream, &_info->stream))
816 status->stream = SNDRV_RAWMIDI_STREAM_OUTPUT;
829 status->stream = SNDRV_RAWMIDI_STREAM_INPUT;
850 switch (status32.stream) {
868 .stream = status64.stream,
890 switch (status.stream) {
926 int stream;
929 if (get_user(stream, &info->stream))
931 switch (stream) {
955 switch (params.stream) {
1858 struct snd_rawmidi_str *stream,
1869 substream->stream = direction;
1872 substream->pstr = stream;
1874 list_add_tail(&substream->list, &stream->substreams);
1875 stream->substream_count++;
1969 static void snd_rawmidi_free_substreams(struct snd_rawmidi_str *stream)
1973 while (!list_empty(&stream->substreams)) {
1974 substream = list_entry(stream->substreams.next, struct snd_rawmidi_substream, list);
2151 * @stream: the stream direction, SNDRV_RAWMIDI_STREAM_XXX
2154 * Sets the rawmidi operators for the given stream direction.
2156 void snd_rawmidi_set_ops(struct snd_rawmidi *rmidi, int stream,
2161 list_for_each_entry(substream, &rmidi->streams[stream].substreams, list)