Lines Matching refs:hw_ptr
182 runtime->appl_ptr = runtime->hw_ptr = 0; in snd_rawmidi_runtime_create()
217 runtime->appl_ptr = runtime->hw_ptr = 0; in __reset_runtime_ptrs()
1058 if (snd_BUG_ON((runtime->hw_ptr & 0x1f) != 0)) in receive_with_tstamp_framing()
1075 dest_ptr = (struct snd_rawmidi_framing_tstamp *) (runtime->buffer + runtime->hw_ptr); in receive_with_tstamp_framing()
1078 runtime->hw_ptr += frame_size; in receive_with_tstamp_framing()
1079 runtime->hw_ptr %= runtime->buffer_size; in receive_with_tstamp_framing()
1139 runtime->buffer[runtime->hw_ptr++] = buffer[0]; in snd_rawmidi_receive()
1140 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1148 count1 = runtime->buffer_size - runtime->hw_ptr; in snd_rawmidi_receive()
1153 memcpy(runtime->buffer + runtime->hw_ptr, buffer, count1); in snd_rawmidi_receive()
1154 runtime->hw_ptr += count1; in snd_rawmidi_receive()
1155 runtime->hw_ptr %= runtime->buffer_size; in snd_rawmidi_receive()
1168 runtime->hw_ptr = count1; in snd_rawmidi_receive()
1345 *buffer = runtime->buffer[runtime->hw_ptr]; in __snd_rawmidi_transmit_peek()
1348 count1 = runtime->buffer_size - runtime->hw_ptr; in __snd_rawmidi_transmit_peek()
1353 memcpy(buffer, runtime->buffer + runtime->hw_ptr, count1); in __snd_rawmidi_transmit_peek()
1415 runtime->hw_ptr += count; in __snd_rawmidi_transmit_ack()
1416 runtime->hw_ptr %= runtime->buffer_size; in __snd_rawmidi_transmit_ack()