Searched refs:sync_ptr (Results 1 – 2 of 2) sorted by relevance
499 struct snd_pcm_sync_ptr sync_ptr; in snd_pcm_ioctl_sync_ptr_buggy() local505 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()[all …]
3036 struct snd_pcm_sync_ptr sync_ptr; in snd_pcm_sync_ptr() local3041 memset(&sync_ptr, 0, sizeof(sync_ptr)); in snd_pcm_sync_ptr()3042 if (get_user(sync_ptr.flags, (unsigned __user *)&(_sync_ptr->flags))) in snd_pcm_sync_ptr()3044 …if (copy_from_user(&sync_ptr.c.control, &(_sync_ptr->c.control), sizeof(struct snd_pcm_mmap_contro… in snd_pcm_sync_ptr()3048 if (sync_ptr.flags & SNDRV_PCM_SYNC_PTR_HWSYNC) { in snd_pcm_sync_ptr()3054 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_APPL)) { in snd_pcm_sync_ptr()3056 sync_ptr.c.control.appl_ptr); in snd_pcm_sync_ptr()3062 sync_ptr.c.control.appl_ptr = control->appl_ptr; in snd_pcm_sync_ptr()3064 if (!(sync_ptr.flags & SNDRV_PCM_SYNC_PTR_AVAIL_MIN)) in snd_pcm_sync_ptr()3065 control->avail_min = sync_ptr.c.control.avail_min; in snd_pcm_sync_ptr()[all …]