Searched refs:midi_out_buf (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/sound/oss/
H A Dmidibuf.c46 static struct midi_buf *midi_out_buf[MAX_MIDI_DEV] = {NULL}; variable in typeref:struct:midi_buf
127 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) midi_poll()
129 while (DATA_AVAIL(midi_out_buf[dev])) midi_poll()
132 int c = midi_out_buf[dev]->queue[midi_out_buf[dev]->head]; midi_poll()
139 midi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE; midi_poll()
140 midi_out_buf[dev]->len--; midi_poll()
143 if (DATA_AVAIL(midi_out_buf[dev]) < 100) midi_poll()
190 midi_out_buf[dev] = vmalloc(sizeof(struct midi_buf)); MIDIbuf_open()
192 if (midi_out_buf[dev] == NULL) MIDIbuf_open()
200 midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; MIDIbuf_open()
236 !DATA_AVAIL(midi_out_buf[dev])); MIDIbuf_release()
252 vfree(midi_out_buf[dev]); MIDIbuf_release()
254 midi_out_buf[dev] = NULL; MIDIbuf_release()
273 n = SPACE_AVAIL(midi_out_buf[dev]); MIDIbuf_write()
285 SPACE_AVAIL(midi_out_buf[dev]))) MIDIbuf_write()
290 n = SPACE_AVAIL(midi_out_buf[dev]); MIDIbuf_write()
304 QUEUE_BYTE(midi_out_buf[dev], tmp_data); MIDIbuf_write()
411 if (!SPACE_AVAIL(midi_out_buf[dev])) MIDIbuf_poll()
/linux-4.1.27/sound/usb/caiaq/
H A Dmidi.c71 cdev->midi_out_buf[0] = EP1_CMD_MIDI_WRITE; snd_usb_caiaq_midi_send()
72 cdev->midi_out_buf[1] = 0; /* port */ snd_usb_caiaq_midi_send()
73 len = snd_rawmidi_transmit(substream, cdev->midi_out_buf + 3, snd_usb_caiaq_midi_send()
79 cdev->midi_out_buf[2] = len; snd_usb_caiaq_midi_send()
H A Ddevice.h70 unsigned char midi_out_buf[EP1_BUFSIZE]; member in struct:snd_usb_caiaqdev
H A Ddevice.c461 cdev->midi_out_buf, EP1_BUFSIZE, init_card()
/linux-4.1.27/sound/usb/bcd2000/
H A Dbcd2000.c61 unsigned char midi_out_buf[BUFSIZE]; member in struct:bcd2000
147 memcpy(bcd2k->midi_out_buf, device_cmd_prefix, bcd2000_midi_send()
155 bcd2k->midi_out_buf + 3, BUFSIZE - 3); bcd2000_midi_send()
165 bcd2k->midi_out_buf[2] = len; bcd2000_midi_send()
169 bcd2k->midi_out_buf, len+3); bcd2000_midi_send()
276 memcpy(bcd2k->midi_out_buf, bcd2000_init_sequence, 52); bcd2000_init_device()
342 bcd2k->midi_out_buf, BUFSIZE, bcd2000_init_midi()

Completed in 119 milliseconds