Lines Matching refs:pos
1276 static int snd_korg1212_silence(struct snd_korg1212 *korg1212, int pos, int count, int offset, int … in snd_korg1212_silence() argument
1278 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_silence()
1282 pos, offset, size, count); in snd_korg1212_silence()
1283 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_silence()
1302 static int snd_korg1212_copy_to(struct snd_korg1212 *korg1212, void __user *dst, int pos, int count… in snd_korg1212_copy_to() argument
1304 struct KorgAudioFrame * src = korg1212->recordDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_to()
1308 pos, offset, size); in snd_korg1212_copy_to()
1309 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_to()
1332 static int snd_korg1212_copy_from(struct snd_korg1212 *korg1212, void __user *src, int pos, int cou… in snd_korg1212_copy_from() argument
1334 struct KorgAudioFrame * dst = korg1212->playDataBufsPtr[0].bufferData + pos; in snd_korg1212_copy_from()
1338 pos, offset, size, count); in snd_korg1212_copy_from()
1340 if (snd_BUG_ON(pos + count > K1212_MAX_SAMPLES)) in snd_korg1212_copy_from()
1619 snd_pcm_uframes_t pos; in snd_korg1212_playback_pointer() local
1621 pos = korg1212->currentBuffer * kPlayBufferFrames; in snd_korg1212_playback_pointer()
1624 stateName[korg1212->cardState], pos); in snd_korg1212_playback_pointer()
1626 return pos; in snd_korg1212_playback_pointer()
1632 snd_pcm_uframes_t pos; in snd_korg1212_capture_pointer() local
1634 pos = korg1212->currentBuffer * kPlayBufferFrames; in snd_korg1212_capture_pointer()
1637 stateName[korg1212->cardState], pos); in snd_korg1212_capture_pointer()
1639 return pos; in snd_korg1212_capture_pointer()
1644 snd_pcm_uframes_t pos, in snd_korg1212_playback_copy() argument
1651 stateName[korg1212->cardState], pos, count); in snd_korg1212_playback_copy()
1653 return snd_korg1212_copy_from(korg1212, src, pos, count, 0, korg1212->channels * 2); in snd_korg1212_playback_copy()
1659 snd_pcm_uframes_t pos, in snd_korg1212_playback_silence() argument
1667 return snd_korg1212_silence(korg1212, pos, count, 0, korg1212->channels * 2); in snd_korg1212_playback_silence()
1672 snd_pcm_uframes_t pos, in snd_korg1212_capture_copy() argument
1679 stateName[korg1212->cardState], pos, count); in snd_korg1212_capture_copy()
1681 return snd_korg1212_copy_to(korg1212, dst, pos, count, 0, korg1212->channels * 2); in snd_korg1212_capture_copy()