Lines Matching refs:size1
195 ssize_t size1; in snd_rawmidi_virtual_write() local
212 size1 = snd_midi_event_encode(virt->midi_event, buffer, size, &virt->out_event); in snd_rawmidi_virtual_write()
213 if (size1 <= 0) in snd_rawmidi_virtual_write()
215 size -= size1; in snd_rawmidi_virtual_write()
216 result += size1; in snd_rawmidi_virtual_write()
217 buffer += size1; in snd_rawmidi_virtual_write()
240 int size1, err; in snd_rawmidi_virtual_read() local
264 size1 = virt->in_buf_size - virt->in_buf_ofs; in snd_rawmidi_virtual_read()
265 if ((size_t)size1 > size) { in snd_rawmidi_virtual_read()
271 memcpy(buffer, virt->in_buf_ptr + virt->in_buf_ofs, size1); in snd_rawmidi_virtual_read()
272 size -= size1; in snd_rawmidi_virtual_read()
273 result += size1; in snd_rawmidi_virtual_read()
274 buffer += size1; in snd_rawmidi_virtual_read()