Lines Matching defs:bytes
60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes)
62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE))
72 chip->comm_page->midi_output[0] = bytes;
73 memcpy(&chip->comm_page->midi_output[1], data, bytes);
77 dev_dbg(chip->card->dev, "write_midi: %d\n", bytes);
78 return bytes;
89 real MIDI bytes, the following logic is needed to skip them. */
115 from the DSP's buffer. It returns the number of bytes received. */
134 consists of MIDI bytes and timestamps for the MIDI time code
135 0xF1 bytes. mtc_process_data() is a little state machine that
206 int bytes, sent, time;
211 sent = bytes = 0;
215 bytes = snd_rawmidi_transmit_peek(chip->midi_out, buf,
217 dev_dbg(chip->card->dev, "Try to send %d bytes...\n", bytes);
218 sent = write_midi(chip, buf, bytes);
226 dev_dbg(chip->card->dev, "%d bytes sent\n", sent);
230 bytes long. Let's wait until half of them are sent */