Lines Matching refs:avail

84 	return runtime->avail >= runtime->avail_min;  in snd_rawmidi_ready()
91 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
92 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
117 runtime->avail = 0; in snd_rawmidi_runtime_create()
119 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
164 runtime->avail = runtime->buffer_size; in snd_rawmidi_drop_output()
178 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
182 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
183 … "rawmidi drain error (avail = %li, buffer_size = %li)\n", (long)runtime->avail, (long)runtime->bu… in snd_rawmidi_drain_output()
207 runtime->avail = 0; in snd_rawmidi_drain_input()
643 runtime->avail = runtime->buffer_size; in snd_rawmidi_output_params()
683 status->avail = runtime->avail; in snd_rawmidi_output_status()
696 status->avail = runtime->avail; in snd_rawmidi_input_status()
884 if (runtime->avail < runtime->buffer_size) { in snd_rawmidi_receive()
887 runtime->avail++; in snd_rawmidi_receive()
897 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
898 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
902 runtime->avail += count1; in snd_rawmidi_receive()
908 if (count1 > (int)(runtime->buffer_size - runtime->avail)) { in snd_rawmidi_receive()
909 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
915 runtime->avail += count1; in snd_rawmidi_receive()
938 while (count > 0 && runtime->avail) { in snd_rawmidi_kernel_read1()
943 if (count1 > (int)runtime->avail) in snd_rawmidi_kernel_read1()
944 count1 = runtime->avail; in snd_rawmidi_kernel_read1()
957 runtime->avail -= count1; in snd_rawmidi_kernel_read1()
1006 if (!runtime->avail) in snd_rawmidi_read()
1041 result = runtime->avail >= runtime->buffer_size; in snd_rawmidi_transmit_empty()
1073 if (runtime->avail >= runtime->buffer_size) { in snd_rawmidi_transmit_peek()
1084 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_transmit_peek()
1085 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_transmit_peek()
1090 if (count > (int)(runtime->buffer_size - runtime->avail - count1)) in snd_rawmidi_transmit_peek()
1091 count = runtime->buffer_size - runtime->avail - count1; in snd_rawmidi_transmit_peek()
1122 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in snd_rawmidi_transmit_ack()
1125 runtime->avail += count; in snd_rawmidi_transmit_ack()
1173 if ((long)runtime->avail < count) { in snd_rawmidi_kernel_write1()
1178 while (count > 0 && runtime->avail > 0) { in snd_rawmidi_kernel_write1()
1182 if (count1 > (long)runtime->avail) in snd_rawmidi_kernel_write1()
1183 count1 = runtime->avail; in snd_rawmidi_kernel_write1()
1199 runtime->avail -= count1; in snd_rawmidi_kernel_write1()
1204 count1 = runtime->avail < runtime->buffer_size; in snd_rawmidi_kernel_write1()
1251 if (!runtime->avail && !timeout) in snd_rawmidi_write()
1267 while (runtime->avail != runtime->buffer_size) { in snd_rawmidi_write()
1269 unsigned int last_avail = runtime->avail; in snd_rawmidi_write()
1278 if (runtime->avail == last_avail && !timeout) in snd_rawmidi_write()
1357 (unsigned long) runtime->avail); in snd_rawmidi_proc_info_read()
1380 (unsigned long) runtime->avail, in snd_rawmidi_proc_info_read()