Lines Matching refs:line6midi

29 	if (line6->line6midi->substream_receive)  in line6_midi_receive()
30 snd_rawmidi_receive(line6->line6midi->substream_receive, in line6_midi_receive()
41 struct snd_line6_midi *line6midi = line6->line6midi; in line6_midi_transmit() local
42 struct midi_buffer *mb = &line6midi->midibuf_out; in line6_midi_transmit()
87 spin_lock_irqsave(&line6->line6midi->lock, flags); in midi_sent()
88 num = --line6->line6midi->num_active_send_urbs; in midi_sent()
91 line6_midi_transmit(line6->line6midi->substream_transmit); in midi_sent()
92 num = line6->line6midi->num_active_send_urbs; in midi_sent()
96 wake_up(&line6->line6midi->send_wait); in midi_sent()
98 spin_unlock_irqrestore(&line6->line6midi->lock, flags); in midi_sent()
139 ++line6->line6midi->num_active_send_urbs; in send_midi_async()
165 line6->line6midi->substream_transmit = substream; in line6_midi_output_trigger()
166 spin_lock_irqsave(&line6->line6midi->lock, flags); in line6_midi_output_trigger()
168 if (line6->line6midi->num_active_send_urbs == 0) in line6_midi_output_trigger()
171 spin_unlock_irqrestore(&line6->line6midi->lock, flags); in line6_midi_output_trigger()
178 struct snd_line6_midi *midi = line6->line6midi; in line6_midi_output_drain()
201 line6->line6midi->substream_receive = substream; in line6_midi_input_trigger()
203 line6->line6midi->substream_receive = NULL; in line6_midi_input_trigger()
248 struct snd_line6_midi *line6midi = rmidi->private_data; in snd_line6_midi_free() local
250 line6_midibuf_destroy(&line6midi->midibuf_in); in snd_line6_midi_free()
251 line6_midibuf_destroy(&line6midi->midibuf_out); in snd_line6_midi_free()
252 kfree(line6midi); in snd_line6_midi_free()
262 struct snd_line6_midi *line6midi; in line6_init_midi() local
273 line6midi = kzalloc(sizeof(struct snd_line6_midi), GFP_KERNEL); in line6_init_midi()
274 if (!line6midi) in line6_init_midi()
277 rmidi->private_data = line6midi; in line6_init_midi()
280 init_waitqueue_head(&line6midi->send_wait); in line6_init_midi()
281 spin_lock_init(&line6midi->lock); in line6_init_midi()
282 line6midi->line6 = line6; in line6_init_midi()
284 err = line6_midibuf_init(&line6midi->midibuf_in, MIDI_BUFFER_SIZE, 0); in line6_init_midi()
288 err = line6_midibuf_init(&line6midi->midibuf_out, MIDI_BUFFER_SIZE, 1); in line6_init_midi()
292 line6->line6midi = line6midi; in line6_init_midi()