Lines Matching refs:hw_ptr
143 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
182 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_drop_output()
229 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_drain_input()
677 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_output_params()
708 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_input_params()
927 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
928 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
936 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
941 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
942 runtime->hw_ptr += count1; in snd_rawmidi_receive()
943 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
956 runtime->hw_ptr = count1; in snd_rawmidi_receive()
1127 *buffer = runtime->buffer[runtime->hw_ptr]; in __snd_rawmidi_transmit_peek()
1130 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1135 memcpy(buffer, runtime->buffer + runtime->hw_ptr, count1); in __snd_rawmidi_transmit_peek()
1195 runtime->hw_ptr += count; in __snd_rawmidi_transmit_ack()
1196 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()