Lines Matching refs:hw_ptr
185 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
234 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
1112 if (snd_BUG_ON((runtime->hw_ptr & 0x1f) != 0)) in receive_with_tstamp_framing()
1131 dest_ptr = (struct snd_rawmidi_framing_tstamp *) (runtime->buffer + runtime->hw_ptr); in receive_with_tstamp_framing()
1134 runtime->hw_ptr += frame_size; in receive_with_tstamp_framing()
1135 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1198 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
1199 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1207 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1215 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
1216 runtime->hw_ptr += count1; in snd_rawmidi_receive()
1217 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1230 runtime->hw_ptr = count1; in snd_rawmidi_receive()
1407 *buffer = runtime->buffer[runtime->hw_ptr]; in __snd_rawmidi_transmit_peek()
1410 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1418 memcpy(buffer, runtime->buffer + runtime->hw_ptr, count1); in __snd_rawmidi_transmit_peek()
1484 runtime->hw_ptr += count; in __snd_rawmidi_transmit_ack()
1485 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()