Lines Matching full:buffer_size
174 runtime->buffer_size = PAGE_SIZE; in snd_rawmidi_runtime_create()
179 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
180 runtime->buffer = kvzalloc(runtime->buffer_size, GFP_KERNEL); in snd_rawmidi_runtime_create()
235 runtime->avail = is_input ? 0 : runtime->buffer_size; in __reset_runtime_ptrs()
276 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
282 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
284 "rawmidi drain error (avail = %li, buffer_size = %li)\n", in snd_rawmidi_drain_output()
285 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
735 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
737 if (framing == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP && (params->buffer_size & 0x1f) != 0) in resize_runtime_buffer()
739 if (params->avail_min < 1 || params->avail_min > params->buffer_size) in resize_runtime_buffer()
741 if (params->buffer_size & get_align(runtime)) in resize_runtime_buffer()
743 if (params->buffer_size != runtime->buffer_size) { in resize_runtime_buffer()
744 newbuf = kvzalloc(params->buffer_size, GFP_KERNEL); in resize_runtime_buffer()
755 runtime->buffer_size = params->buffer_size; in resize_runtime_buffer()
1116 if ((int)(runtime->buffer_size - runtime->avail) < frame_size) { in receive_with_tstamp_framing()
1135 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1197 if (runtime->avail < runtime->buffer_size) { in snd_rawmidi_receive()
1199 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1207 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1210 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
1211 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1217 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1224 if (count1 > (int)(runtime->buffer_size - runtime->avail)) { in snd_rawmidi_receive()
1225 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1261 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1270 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1()
1375 result = runtime->avail >= runtime->buffer_size; in snd_rawmidi_transmit_empty()
1402 if (runtime->avail >= runtime->buffer_size) { in __snd_rawmidi_transmit_peek()
1410 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1413 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in __snd_rawmidi_transmit_peek()
1414 count1 = runtime->buffer_size - runtime->avail; in __snd_rawmidi_transmit_peek()
1422 if (count > (int)(runtime->buffer_size - runtime->avail - count1)) in __snd_rawmidi_transmit_peek()
1423 count = runtime->buffer_size - runtime->avail - count1; in __snd_rawmidi_transmit_peek()
1482 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in __snd_rawmidi_transmit_ack()
1485 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()
1567 runtime->avail < runtime->buffer_size) { in snd_rawmidi_proceed()
1568 count = runtime->buffer_size - runtime->avail; in snd_rawmidi_proceed()
1601 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_write1()
1610 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_write1()
1630 count1 = runtime->avail < runtime->buffer_size; in snd_rawmidi_kernel_write1()
1658 if (substream->append && count > runtime->buffer_size) in snd_rawmidi_write()
1698 while (runtime->avail != runtime->buffer_size) { in snd_rawmidi_write()
1764 unsigned long buffer_size, avail, xruns; in snd_rawmidi_proc_info_read() local
1791 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1799 buffer_size, avail); in snd_rawmidi_proc_info_read()
1818 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1826 buffer_size, avail, xruns); in snd_rawmidi_proc_info_read()