Lines Matching refs:sync_ptr
499 struct snd_pcm_sync_ptr sync_ptr; in snd_pcm_ioctl_sync_ptr_buggy() local
505 memset(&sync_ptr, 0, sizeof(sync_ptr)); in snd_pcm_ioctl_sync_ptr_buggy()
506 sync_cp = (struct __snd_pcm_mmap_control64_buggy *)&sync_ptr.c.control; in snd_pcm_ioctl_sync_ptr_buggy()
507 if (get_user(sync_ptr.flags, (unsigned __user *)&(_sync_ptr->flags))) in snd_pcm_ioctl_sync_ptr_buggy()
513 if (sync_ptr.flags & SNDRV_PCM_SYNC_PTR_HWSYNC) { in snd_pcm_ioctl_sync_ptr_buggy()
519 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_APPL)) { in snd_pcm_ioctl_sync_ptr_buggy()
528 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_AVAIL_MIN)) in snd_pcm_ioctl_sync_ptr_buggy()
532 sync_ptr.s.status.state = status->state; in snd_pcm_ioctl_sync_ptr_buggy()
533 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_ioctl_sync_ptr_buggy()
534 sync_ptr.s.status.tstamp = status->tstamp; in snd_pcm_ioctl_sync_ptr_buggy()
535 sync_ptr.s.status.suspended_state = status->suspended_state; in snd_pcm_ioctl_sync_ptr_buggy()
536 sync_ptr.s.status.audio_tstamp = status->audio_tstamp; in snd_pcm_ioctl_sync_ptr_buggy()
538 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_APPL)) in snd_pcm_ioctl_sync_ptr_buggy()
540 if (copy_to_user(_sync_ptr, &sync_ptr, sizeof(sync_ptr))) in snd_pcm_ioctl_sync_ptr_buggy()