Lines Matching full:buffer_size
169 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
174 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
175 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
230 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs()
264 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
270 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
272 "rawmidi drain error (avail = %li, buffer_size = %li)\n", in snd_rawmidi_drain_output()
273 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
715 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
717 if (framing == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP && (params->buffer_size & 0x1f) != 0) in resize_runtime_buffer()
719 if (params->avail_min < 1 || params->avail_min > params->buffer_size) in resize_runtime_buffer()
721 if (params->buffer_size & get_align(runtime)) in resize_runtime_buffer()
723 if (params->buffer_size != runtime->buffer_size) { in resize_runtime_buffer()
724 newbuf = kvzalloc(params->buffer_size, GFP_KERNEL); in resize_runtime_buffer()
734 runtime->buffer_size = params->buffer_size; in resize_runtime_buffer()
1086 if ((int)(runtime->buffer_size - runtime->avail) < frame_size) { in receive_with_tstamp_framing()
1105 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1163 if (runtime->avail < runtime->buffer_size) { in snd_rawmidi_receive()
1165 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1173 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1176 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
1177 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1183 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1190 if (count1 > (int)(runtime->buffer_size - runtime->avail)) { in snd_rawmidi_receive()
1191 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1225 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1234 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1()
1337 return (runtime->avail >= runtime->buffer_size); in snd_rawmidi_transmit_empty()
1361 if (runtime->avail >= runtime->buffer_size) { in __snd_rawmidi_transmit_peek()
1369 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1372 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in __snd_rawmidi_transmit_peek()
1373 count1 = runtime->buffer_size - runtime->avail; in __snd_rawmidi_transmit_peek()
1381 if (count > (int)(runtime->buffer_size - runtime->avail - count1)) in __snd_rawmidi_transmit_peek()
1382 count = runtime->buffer_size - runtime->avail - count1; in __snd_rawmidi_transmit_peek()
1435 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in __snd_rawmidi_transmit_ack()
1438 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()
1505 runtime->avail < runtime->buffer_size) { in snd_rawmidi_proceed()
1506 count = runtime->buffer_size - runtime->avail; in snd_rawmidi_proceed()
1538 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_write1()
1547 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_write1()
1567 count1 = runtime->avail < runtime->buffer_size; in snd_rawmidi_kernel_write1()
1595 if (substream->append && count > runtime->buffer_size) in snd_rawmidi_write()
1635 while (runtime->avail != runtime->buffer_size) { in snd_rawmidi_write()
1701 unsigned long buffer_size, avail, xruns; in snd_rawmidi_proc_info_read() local
1728 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1736 buffer_size, avail); in snd_rawmidi_proc_info_read()
1755 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1763 buffer_size, avail, xruns); in snd_rawmidi_proc_info_read()