Lines Matching refs:src
13 s32 __user *src) in snd_pcm_ioctl_delay_compat() argument
21 if (put_user(delay, src)) in snd_pcm_ioctl_delay_compat()
27 u32 __user *src) in snd_pcm_ioctl_rewind_compat() argument
32 if (get_user(frames, src)) in snd_pcm_ioctl_rewind_compat()
35 if (put_user(err, src)) in snd_pcm_ioctl_rewind_compat()
41 u32 __user *src) in snd_pcm_ioctl_forward_compat() argument
46 if (get_user(frames, src)) in snd_pcm_ioctl_forward_compat()
49 if (put_user(err, src)) in snd_pcm_ioctl_forward_compat()
100 struct snd_pcm_sw_params32 __user *src) in snd_pcm_ioctl_sw_params_compat() argument
107 if (get_user(params.tstamp_mode, &src->tstamp_mode) || in snd_pcm_ioctl_sw_params_compat()
108 get_user(params.period_step, &src->period_step) || in snd_pcm_ioctl_sw_params_compat()
109 get_user(params.sleep_min, &src->sleep_min) || in snd_pcm_ioctl_sw_params_compat()
110 get_user(params.avail_min, &src->avail_min) || in snd_pcm_ioctl_sw_params_compat()
111 get_user(params.xfer_align, &src->xfer_align) || in snd_pcm_ioctl_sw_params_compat()
112 get_user(params.start_threshold, &src->start_threshold) || in snd_pcm_ioctl_sw_params_compat()
113 get_user(params.stop_threshold, &src->stop_threshold) || in snd_pcm_ioctl_sw_params_compat()
114 get_user(params.silence_threshold, &src->silence_threshold) || in snd_pcm_ioctl_sw_params_compat()
115 get_user(params.silence_size, &src->silence_size) || in snd_pcm_ioctl_sw_params_compat()
116 get_user(params.tstamp_type, &src->tstamp_type) || in snd_pcm_ioctl_sw_params_compat()
117 get_user(params.proto, &src->proto)) in snd_pcm_ioctl_sw_params_compat()
129 if (boundary && put_user(boundary, &src->boundary)) in snd_pcm_ioctl_sw_params_compat()
142 struct snd_pcm_channel_info32 __user *src) in snd_pcm_ioctl_channel_info_compat() argument
147 if (get_user(info.channel, &src->channel) || in snd_pcm_ioctl_channel_info_compat()
148 get_user(info.offset, &src->offset) || in snd_pcm_ioctl_channel_info_compat()
149 get_user(info.first, &src->first) || in snd_pcm_ioctl_channel_info_compat()
150 get_user(info.step, &src->step)) in snd_pcm_ioctl_channel_info_compat()
155 if (put_user(info.channel, &src->channel) || in snd_pcm_ioctl_channel_info_compat()
156 put_user(info.offset, &src->offset) || in snd_pcm_ioctl_channel_info_compat()
157 put_user(info.first, &src->first) || in snd_pcm_ioctl_channel_info_compat()
158 put_user(info.step, &src->step)) in snd_pcm_ioctl_channel_info_compat()
166 struct snd_pcm_channel_info __user *src);
191 struct snd_pcm_status32 __user *src, in snd_pcm_status_user_compat() argument
204 (u32 __user *)(&src->audio_tstamp_data))) in snd_pcm_status_user_compat()
210 if (clear_user(src, sizeof(*src))) in snd_pcm_status_user_compat()
212 if (put_user(status.state, &src->state) || in snd_pcm_status_user_compat()
213 compat_put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || in snd_pcm_status_user_compat()
214 compat_put_timespec(&status.tstamp, &src->tstamp) || in snd_pcm_status_user_compat()
215 put_user(status.appl_ptr, &src->appl_ptr) || in snd_pcm_status_user_compat()
216 put_user(status.hw_ptr, &src->hw_ptr) || in snd_pcm_status_user_compat()
217 put_user(status.delay, &src->delay) || in snd_pcm_status_user_compat()
218 put_user(status.avail, &src->avail) || in snd_pcm_status_user_compat()
219 put_user(status.avail_max, &src->avail_max) || in snd_pcm_status_user_compat()
220 put_user(status.overrange, &src->overrange) || in snd_pcm_status_user_compat()
221 put_user(status.suspended_state, &src->suspended_state) || in snd_pcm_status_user_compat()
222 put_user(status.audio_tstamp_data, &src->audio_tstamp_data) || in snd_pcm_status_user_compat()
223 compat_put_timespec(&status.audio_tstamp, &src->audio_tstamp) || in snd_pcm_status_user_compat()
224 compat_put_timespec(&status.driver_tstamp, &src->driver_tstamp) || in snd_pcm_status_user_compat()
225 put_user(status.audio_tstamp_accuracy, &src->audio_tstamp_accuracy)) in snd_pcm_status_user_compat()
252 #define put_timespec(src, dst) copy_to_user(dst, src, sizeof(*dst)) argument
255 struct snd_pcm_status_x32 __user *src, in snd_pcm_status_user_x32() argument
268 (u32 __user *)(&src->audio_tstamp_data))) in snd_pcm_status_user_x32()
274 if (clear_user(src, sizeof(*src))) in snd_pcm_status_user_x32()
276 if (put_user(status.state, &src->state) || in snd_pcm_status_user_x32()
277 put_timespec(&status.trigger_tstamp, &src->trigger_tstamp) || in snd_pcm_status_user_x32()
278 put_timespec(&status.tstamp, &src->tstamp) || in snd_pcm_status_user_x32()
279 put_user(status.appl_ptr, &src->appl_ptr) || in snd_pcm_status_user_x32()
280 put_user(status.hw_ptr, &src->hw_ptr) || in snd_pcm_status_user_x32()
281 put_user(status.delay, &src->delay) || in snd_pcm_status_user_x32()
282 put_user(status.avail, &src->avail) || in snd_pcm_status_user_x32()
283 put_user(status.avail_max, &src->avail_max) || in snd_pcm_status_user_x32()
284 put_user(status.overrange, &src->overrange) || in snd_pcm_status_user_x32()
285 put_user(status.suspended_state, &src->suspended_state) || in snd_pcm_status_user_x32()
286 put_user(status.audio_tstamp_data, &src->audio_tstamp_data) || in snd_pcm_status_user_x32()
287 put_timespec(&status.audio_tstamp, &src->audio_tstamp) || in snd_pcm_status_user_x32()
288 put_timespec(&status.driver_tstamp, &src->driver_tstamp) || in snd_pcm_status_user_x32()
289 put_user(status.audio_tstamp_accuracy, &src->audio_tstamp_accuracy)) in snd_pcm_status_user_x32()
467 struct snd_pcm_sync_ptr32 __user *src) in snd_pcm_ioctl_sync_ptr_compat() argument
481 if (get_user(sflags, &src->flags) || in snd_pcm_ioctl_sync_ptr_compat()
482 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
483 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
511 if (put_user(sstatus.state, &src->s.status.state) || in snd_pcm_ioctl_sync_ptr_compat()
512 put_user(sstatus.hw_ptr, &src->s.status.hw_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
513 compat_put_timespec(&sstatus.tstamp, &src->s.status.tstamp) || in snd_pcm_ioctl_sync_ptr_compat()
514 put_user(sstatus.suspended_state, &src->s.status.suspended_state) || in snd_pcm_ioctl_sync_ptr_compat()
516 &src->s.status.audio_tstamp) || in snd_pcm_ioctl_sync_ptr_compat()
517 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_compat()
518 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_compat()
556 struct snd_pcm_sync_ptr_x32 __user *src) in snd_pcm_ioctl_sync_ptr_x32() argument
570 if (get_user(sflags, &src->flags) || in snd_pcm_ioctl_sync_ptr_x32()
571 get_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
572 get_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()
600 if (put_user(sstatus.state, &src->s.status.state) || in snd_pcm_ioctl_sync_ptr_x32()
601 put_user(sstatus.hw_ptr, &src->s.status.hw_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
602 put_timespec(&sstatus.tstamp, &src->s.status.tstamp) || in snd_pcm_ioctl_sync_ptr_x32()
603 put_user(sstatus.suspended_state, &src->s.status.suspended_state) || in snd_pcm_ioctl_sync_ptr_x32()
604 put_timespec(&sstatus.audio_tstamp, &src->s.status.audio_tstamp) || in snd_pcm_ioctl_sync_ptr_x32()
605 put_user(scontrol.appl_ptr, &src->c.control.appl_ptr) || in snd_pcm_ioctl_sync_ptr_x32()
606 put_user(scontrol.avail_min, &src->c.control.avail_min)) in snd_pcm_ioctl_sync_ptr_x32()