• Home
  • Raw
  • Download

Lines Matching refs:avail

92 	return runtime->avail >= runtime->avail_min;  in snd_rawmidi_ready()
99 return runtime->avail >= runtime->avail_min && in snd_rawmidi_ready_append()
100 (!substream->append || runtime->avail >= count); in snd_rawmidi_ready_append()
136 runtime->avail = 0; in snd_rawmidi_runtime_create()
138 runtime->avail = runtime->buffer_size; in snd_rawmidi_runtime_create()
183 runtime->avail = runtime->buffer_size; in snd_rawmidi_drop_output()
198 (runtime->avail >= runtime->buffer_size), in snd_rawmidi_drain_output()
202 if (runtime->avail < runtime->buffer_size && !timeout) { in snd_rawmidi_drain_output()
205 (long)runtime->avail, (long)runtime->buffer_size); in snd_rawmidi_drain_output()
230 runtime->avail = 0; in snd_rawmidi_drain_input()
676 runtime->avail = runtime->buffer_size; in snd_rawmidi_output_params()
725 status->avail = runtime->avail; in snd_rawmidi_output_status()
738 status->avail = runtime->avail; in snd_rawmidi_input_status()
926 if (runtime->avail < runtime->buffer_size) { in snd_rawmidi_receive()
929 runtime->avail++; in snd_rawmidi_receive()
939 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in snd_rawmidi_receive()
940 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
944 runtime->avail += count1; in snd_rawmidi_receive()
950 if (count1 > (int)(runtime->buffer_size - runtime->avail)) { in snd_rawmidi_receive()
951 count1 = runtime->buffer_size - runtime->avail; in snd_rawmidi_receive()
957 runtime->avail += count1; in snd_rawmidi_receive()
985 while (count > 0 && runtime->avail) { in snd_rawmidi_kernel_read1()
989 if (count1 > (int)runtime->avail) in snd_rawmidi_kernel_read1()
990 count1 = runtime->avail; in snd_rawmidi_kernel_read1()
996 runtime->avail -= count1; in snd_rawmidi_kernel_read1()
1060 if (!runtime->avail) in snd_rawmidi_read()
1096 result = runtime->avail >= runtime->buffer_size; in snd_rawmidi_transmit_empty()
1122 if (runtime->avail >= runtime->buffer_size) { in __snd_rawmidi_transmit_peek()
1133 if (count1 > (int)(runtime->buffer_size - runtime->avail)) in __snd_rawmidi_transmit_peek()
1134 count1 = runtime->buffer_size - runtime->avail; in __snd_rawmidi_transmit_peek()
1139 if (count > (int)(runtime->buffer_size - runtime->avail - count1)) in __snd_rawmidi_transmit_peek()
1140 count = runtime->buffer_size - runtime->avail - count1; in __snd_rawmidi_transmit_peek()
1194 snd_BUG_ON(runtime->avail + count > runtime->buffer_size); in __snd_rawmidi_transmit_ack()
1197 runtime->avail += count; in __snd_rawmidi_transmit_ack()
1281 if ((long)runtime->avail < count) { in snd_rawmidi_kernel_write1()
1287 while (count > 0 && runtime->avail > 0) { in snd_rawmidi_kernel_write1()
1291 if (count1 > (long)runtime->avail) in snd_rawmidi_kernel_write1()
1292 count1 = runtime->avail; in snd_rawmidi_kernel_write1()
1298 runtime->avail -= count1; in snd_rawmidi_kernel_write1()
1317 count1 = runtime->avail < runtime->buffer_size; in snd_rawmidi_kernel_write1()
1366 if (!runtime->avail && !timeout) in snd_rawmidi_write()
1382 while (runtime->avail != runtime->buffer_size) { in snd_rawmidi_write()
1384 unsigned int last_avail = runtime->avail; in snd_rawmidi_write()
1393 if (runtime->avail == last_avail && !timeout) in snd_rawmidi_write()
1472 (unsigned long) runtime->avail); in snd_rawmidi_proc_info_read()
1495 (unsigned long) runtime->avail, in snd_rawmidi_proc_info_read()