Lines Matching refs: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()
273 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
718 if (params->buffer_size < 32 || params->buffer_size > 1024L * 1024L) in resize_runtime_buffer()
720 if (framing == SNDRV_RAWMIDI_MODE_FRAMING_TSTAMP && (params->buffer_size & 0x1f) != 0) in resize_runtime_buffer()
722 if (params->avail_min < 1 || params->avail_min > params->buffer_size) in resize_runtime_buffer()
724 if (params->buffer_size & get_align(runtime)) in resize_runtime_buffer()
726 if (params->buffer_size != runtime->buffer_size) { in resize_runtime_buffer()
727 newbuf = kvzalloc(params->buffer_size, GFP_KERNEL); in resize_runtime_buffer()
738 runtime->buffer_size = params->buffer_size; in resize_runtime_buffer()
1091 if ((int)(runtime->buffer_size - runtime->avail) < frame_size) { in receive_with_tstamp_framing()
1110 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1168 if (runtime->avail < runtime->buffer_size) { in snd_rawmidi_receive()
1170 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1178 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1181 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
1182 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1188 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1195 if (count1 > (int)(runtime->buffer_size - runtime->avail)) { in snd_rawmidi_receive()
1196 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
1230 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_read1()
1239 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_read1()
1342 return (runtime->avail >= runtime->buffer_size); in snd_rawmidi_transmit_empty()
1366 if (runtime->avail >= runtime->buffer_size) { in __snd_rawmidi_transmit_peek()
1374 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1377 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in __snd_rawmidi_transmit_peek()
1378 count1 = runtime->buffer_size - runtime->avail; in __snd_rawmidi_transmit_peek()
1386 if (count > (int)(runtime->buffer_size - runtime->avail - count1)) in __snd_rawmidi_transmit_peek()
1387 count = runtime->buffer_size - runtime->avail - count1; in __snd_rawmidi_transmit_peek()
1440 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in __snd_rawmidi_transmit_ack()
1443 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()
1510 runtime->avail < runtime->buffer_size) { in snd_rawmidi_proceed()
1511 count = runtime->buffer_size - runtime->avail; in snd_rawmidi_proceed()
1543 count1 = runtime->buffer_size - runtime->appl_ptr; in snd_rawmidi_kernel_write1()
1552 runtime->appl_ptr %= runtime->buffer_size; in snd_rawmidi_kernel_write1()
1572 count1 = runtime->avail < runtime->buffer_size; in snd_rawmidi_kernel_write1()
1600 if (substream->append && count > runtime->buffer_size) in snd_rawmidi_write()
1640 while (runtime->avail != runtime->buffer_size) { in snd_rawmidi_write()
1706 unsigned long buffer_size, avail, xruns; in snd_rawmidi_proc_info_read() local
1733 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1741 buffer_size, avail); in snd_rawmidi_proc_info_read()
1760 buffer_size = runtime->buffer_size; in snd_rawmidi_proc_info_read()
1768 buffer_size, avail, xruns); in snd_rawmidi_proc_info_read()