Lines Matching refs:p32
52 struct v4l2_window32 __user *p32) in get_v4l2_window32() argument
56 if (copy_from_user(&w32, p32, sizeof(w32))) in get_v4l2_window32()
73 struct v4l2_window32 __user *p32) in put_v4l2_window32() argument
88 if (copy_to_user(p32, &w32, sizeof(w32))) in put_v4l2_window32()
132 struct v4l2_format32 __user *p32) in get_v4l2_format32() argument
134 if (get_user(p64->type, &p32->type)) in get_v4l2_format32()
140 return copy_from_user(&p64->fmt.pix, &p32->fmt.pix, in get_v4l2_format32()
144 return copy_from_user(&p64->fmt.pix_mp, &p32->fmt.pix_mp, in get_v4l2_format32()
148 return get_v4l2_window32(&p64->fmt.win, &p32->fmt.win); in get_v4l2_format32()
151 return copy_from_user(&p64->fmt.vbi, &p32->fmt.vbi, in get_v4l2_format32()
155 return copy_from_user(&p64->fmt.sliced, &p32->fmt.sliced, in get_v4l2_format32()
159 return copy_from_user(&p64->fmt.sdr, &p32->fmt.sdr, in get_v4l2_format32()
163 return copy_from_user(&p64->fmt.meta, &p32->fmt.meta, in get_v4l2_format32()
171 struct v4l2_create_buffers32 __user *p32) in get_v4l2_create32() argument
173 if (copy_from_user(p64, p32, in get_v4l2_create32()
176 if (copy_from_user(&p64->flags, &p32->flags, sizeof(p32->flags))) in get_v4l2_create32()
178 return get_v4l2_format32(&p64->format, &p32->format); in get_v4l2_create32()
182 struct v4l2_format32 __user *p32) in put_v4l2_format32() argument
187 return copy_to_user(&p32->fmt.pix, &p64->fmt.pix, in put_v4l2_format32()
191 return copy_to_user(&p32->fmt.pix_mp, &p64->fmt.pix_mp, in put_v4l2_format32()
195 return put_v4l2_window32(&p64->fmt.win, &p32->fmt.win); in put_v4l2_format32()
198 return copy_to_user(&p32->fmt.vbi, &p64->fmt.vbi, in put_v4l2_format32()
202 return copy_to_user(&p32->fmt.sliced, &p64->fmt.sliced, in put_v4l2_format32()
206 return copy_to_user(&p32->fmt.sdr, &p64->fmt.sdr, in put_v4l2_format32()
210 return copy_to_user(&p32->fmt.meta, &p64->fmt.meta, in put_v4l2_format32()
218 struct v4l2_create_buffers32 __user *p32) in put_v4l2_create32() argument
220 if (copy_to_user(p32, p64, in put_v4l2_create32()
222 put_user(p64->capabilities, &p32->capabilities) || in put_v4l2_create32()
223 put_user(p64->flags, &p32->flags) || in put_v4l2_create32()
224 copy_to_user(p32->reserved, p64->reserved, sizeof(p64->reserved))) in put_v4l2_create32()
226 return put_v4l2_format32(&p64->format, &p32->format); in put_v4l2_create32()
239 struct v4l2_standard32 __user *p32) in get_v4l2_standard32() argument
242 return get_user(p64->index, &p32->index); in get_v4l2_standard32()
246 struct v4l2_standard32 __user *p32) in put_v4l2_standard32() argument
248 if (put_user(p64->index, &p32->index) || in put_v4l2_standard32()
249 put_user(p64->id, &p32->id) || in put_v4l2_standard32()
250 copy_to_user(p32->name, p64->name, sizeof(p32->name)) || in put_v4l2_standard32()
251 copy_to_user(&p32->frameperiod, &p64->frameperiod, in put_v4l2_standard32()
252 sizeof(p32->frameperiod)) || in put_v4l2_standard32()
253 put_user(p64->framelines, &p32->framelines) || in put_v4l2_standard32()
254 copy_to_user(p32->reserved, p64->reserved, sizeof(p32->reserved))) in put_v4l2_standard32()
327 struct v4l2_plane32 __user *p32, in get_v4l2_plane32() argument
333 if (copy_from_user(&plane32, p32, sizeof(plane32))) in get_v4l2_plane32()
361 struct v4l2_plane32 __user *p32, in put_v4l2_plane32() argument
386 if (copy_to_user(p32, &plane32, sizeof(plane32))) in put_v4l2_plane32()
588 struct v4l2_framebuffer32 __user *p32) in get_v4l2_framebuffer32() argument
590 if (get_user(p64->capability, &p32->capability) || in get_v4l2_framebuffer32()
591 get_user(p64->flags, &p32->flags) || in get_v4l2_framebuffer32()
592 copy_from_user(&p64->fmt, &p32->fmt, sizeof(p64->fmt))) in get_v4l2_framebuffer32()
600 struct v4l2_framebuffer32 __user *p32) in put_v4l2_framebuffer32() argument
602 if (put_user((uintptr_t)p64->base, &p32->base) || in put_v4l2_framebuffer32()
603 put_user(p64->capability, &p32->capability) || in put_v4l2_framebuffer32()
604 put_user(p64->flags, &p32->flags) || in put_v4l2_framebuffer32()
605 copy_to_user(&p32->fmt, &p64->fmt, sizeof(p64->fmt))) in put_v4l2_framebuffer32()
628 struct v4l2_input32 __user *p32) in get_v4l2_input32() argument
630 if (copy_from_user(p64, p32, sizeof(*p32))) in get_v4l2_input32()
636 struct v4l2_input32 __user *p32) in put_v4l2_input32() argument
638 if (copy_to_user(p32, p64, sizeof(*p32))) in put_v4l2_input32()
694 struct v4l2_ext_controls32 __user *p32) in get_v4l2_ext_controls32() argument
698 if (copy_from_user(&ec32, p32, sizeof(ec32))) in get_v4l2_ext_controls32()
714 struct v4l2_ext_controls32 __user *p32) in put_v4l2_ext_controls32() argument
728 if (copy_to_user(p32, &ec32, sizeof(ec32))) in put_v4l2_ext_controls32()
756 struct v4l2_event32 __user *p32) in put_v4l2_event32() argument
758 if (put_user(p64->type, &p32->type) || in put_v4l2_event32()
759 copy_to_user(&p32->u, &p64->u, sizeof(p64->u)) || in put_v4l2_event32()
760 put_user(p64->pending, &p32->pending) || in put_v4l2_event32()
761 put_user(p64->sequence, &p32->sequence) || in put_v4l2_event32()
762 put_user(p64->timestamp.tv_sec, &p32->timestamp.tv_sec) || in put_v4l2_event32()
763 put_user(p64->timestamp.tv_nsec, &p32->timestamp.tv_nsec) || in put_v4l2_event32()
764 put_user(p64->id, &p32->id) || in put_v4l2_event32()
765 copy_to_user(p32->reserved, p64->reserved, sizeof(p32->reserved))) in put_v4l2_event32()
787 struct v4l2_event32_time32 __user *p32) in put_v4l2_event32_time32() argument
789 if (put_user(p64->type, &p32->type) || in put_v4l2_event32_time32()
790 copy_to_user(&p32->u, &p64->u, sizeof(p64->u)) || in put_v4l2_event32_time32()
791 put_user(p64->pending, &p32->pending) || in put_v4l2_event32_time32()
792 put_user(p64->sequence, &p32->sequence) || in put_v4l2_event32_time32()
793 put_user(p64->timestamp.tv_sec, &p32->timestamp.tv_sec) || in put_v4l2_event32_time32()
794 put_user(p64->timestamp.tv_nsec, &p32->timestamp.tv_nsec) || in put_v4l2_event32_time32()
795 put_user(p64->id, &p32->id) || in put_v4l2_event32_time32()
796 copy_to_user(p32->reserved, p64->reserved, sizeof(p32->reserved))) in put_v4l2_event32_time32()
811 struct v4l2_edid32 __user *p32) in get_v4l2_edid32() argument
815 if (copy_from_user(p64, p32, offsetof(struct v4l2_edid32, edid)) || in get_v4l2_edid32()
816 get_user(edid, &p32->edid)) in get_v4l2_edid32()
824 struct v4l2_edid32 __user *p32) in put_v4l2_edid32() argument
826 if (copy_to_user(p32, p64, offsetof(struct v4l2_edid32, edid))) in put_v4l2_edid32()
1042 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_get_array_args() local
1051 err = get_v4l2_plane32(p64, p32, b64->memory); in v4l2_compat_get_array_args()
1055 ++p32; in v4l2_compat_get_array_args()
1112 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_put_array_args() local
1121 err = put_v4l2_plane32(p64, p32, b64->memory); in v4l2_compat_put_array_args()
1125 ++p32; in v4l2_compat_put_array_args()