Searched refs:sync_ptr (Results 1 – 2 of 2) sorted by relevance
495 struct snd_pcm_sync_ptr sync_ptr; in snd_pcm_ioctl_sync_ptr_buggy() local501 memset(&sync_ptr, 0, sizeof(sync_ptr)); in snd_pcm_ioctl_sync_ptr_buggy()502 sync_cp = (struct __snd_pcm_mmap_control64_buggy *)&sync_ptr.c.control; in snd_pcm_ioctl_sync_ptr_buggy()503 if (get_user(sync_ptr.flags, (unsigned __user *)&(_sync_ptr->flags))) in snd_pcm_ioctl_sync_ptr_buggy()509 if (sync_ptr.flags & SNDRV_PCM_SYNC_PTR_HWSYNC) { in snd_pcm_ioctl_sync_ptr_buggy()515 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_APPL)) { in snd_pcm_ioctl_sync_ptr_buggy()524 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_AVAIL_MIN)) in snd_pcm_ioctl_sync_ptr_buggy()528 sync_ptr.s.status.state = status->state; in snd_pcm_ioctl_sync_ptr_buggy()529 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_ioctl_sync_ptr_buggy()530 sync_ptr.s.status.tstamp = status->tstamp; in snd_pcm_ioctl_sync_ptr_buggy()[all …]
3011 struct snd_pcm_sync_ptr sync_ptr; in snd_pcm_sync_ptr() local3016 memset(&sync_ptr, 0, sizeof(sync_ptr)); in snd_pcm_sync_ptr()3017 if (get_user(sync_ptr.flags, (unsigned __user *)&(_sync_ptr->flags))) in snd_pcm_sync_ptr()3019 …if (copy_from_user(&sync_ptr.c.control, &(_sync_ptr->c.control), sizeof(struct snd_pcm_mmap_contro… in snd_pcm_sync_ptr()3023 if (sync_ptr.flags & SNDRV_PCM_SYNC_PTR_HWSYNC) { in snd_pcm_sync_ptr()3029 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_APPL)) { in snd_pcm_sync_ptr()3031 sync_ptr.c.control.appl_ptr); in snd_pcm_sync_ptr()3037 sync_ptr.c.control.appl_ptr = control->appl_ptr; in snd_pcm_sync_ptr()3039 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_AVAIL_MIN)) in snd_pcm_sync_ptr()3040 control->avail_min = sync_ptr.c.control.avail_min; in snd_pcm_sync_ptr()[all …]