Lines Matching refs:hw_ptr
124 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
163 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_drop_output()
206 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_drain_input()
885 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
886 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
894 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
899 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
900 runtime->hw_ptr += count1; in snd_rawmidi_receive()
901 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
914 runtime->hw_ptr = count1; in snd_rawmidi_receive()
1078 *buffer = runtime->buffer[runtime->hw_ptr]; in snd_rawmidi_transmit_peek()
1081 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_transmit_peek()
1086 memcpy(buffer, runtime->buffer + runtime->hw_ptr, count1); in snd_rawmidi_transmit_peek()
1123 runtime->hw_ptr += count; in snd_rawmidi_transmit_ack()
1124 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_transmit_ack()