Lines Matching refs:argp
180 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_getmap() local
185 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap()
199 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
208 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_addmap() local
213 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
233 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
242 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_rmmap() local
246 if (get_user(handle, &argp->handle)) in compat_drm_rmmap()
266 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() local
270 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient()
288 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
304 drm_stats32_t __user *argp = (void __user *)arg; in compat_drm_getstats() local
311 if (clear_user(argp, sizeof(drm_stats32_t))) in compat_drm_getstats()
329 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_addbufs() local
334 if (copy_from_user(&desc32, argp, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs()
351 if (copy_to_user(argp, &desc32, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs()
361 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_markbufs() local
364 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
406 drm_buf_info32_t __user *argp = (void __user *)arg; in compat_drm_infobufs() local
409 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
419 if (put_user(req32.count, &argp->count)) in compat_drm_infobufs()
469 drm_buf_map32_t __user *argp = (void __user *)arg; in compat_drm_mapbufs() local
473 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
482 if (put_user(req32.count, &argp->count) in compat_drm_mapbufs()
483 || put_user(req32.virtual, &argp->virtual)) in compat_drm_mapbufs()
499 drm_buf_free32_t __user *argp = (void __user *)arg; in compat_drm_freebufs() local
501 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
519 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_setsareactx() local
521 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx()
535 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_getsareactx() local
538 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_getsareactx()
547 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_getsareactx()
561 drm_ctx_res32_t __user *argp = (void __user *)arg; in compat_drm_resctx() local
566 if (copy_from_user(&res32, argp, sizeof(res32))) in compat_drm_resctx()
576 if (copy_to_user(argp, &res32, sizeof(res32))) in compat_drm_resctx()
599 drm_dma32_t __user *argp = (void __user *)arg; in compat_drm_dma() local
603 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma()
618 if (put_user(d.request_size, &argp->request_size) in compat_drm_dma()
619 || put_user(d.granted_count, &argp->granted_count)) in compat_drm_dma()
634 drm_agp_mode32_t __user *argp = (void __user *)arg; in compat_drm_agp_enable() local
637 if (get_user(mode.mode, &argp->mode)) in compat_drm_agp_enable()
661 drm_agp_info32_t __user *argp = (void __user *)arg; in compat_drm_agp_info() local
679 if (copy_to_user(argp, &i32, sizeof(i32))) in compat_drm_agp_info()
695 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_alloc() local
700 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_alloc()
712 if (copy_to_user(argp, &req32, sizeof(req32))) { in compat_drm_agp_alloc()
724 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_free() local
727 if (get_user(request.handle, &argp->handle)) in compat_drm_agp_free()
742 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_bind() local
746 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_bind()
758 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_unbind() local
761 if (get_user(request.handle, &argp->handle)) in compat_drm_agp_unbind()
778 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_alloc() local
782 if (get_user(request.size, &argp->size)) in compat_drm_sg_alloc()
791 if (put_user(request.handle >> PAGE_SHIFT, &argp->handle)) in compat_drm_sg_alloc()
800 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_free() local
804 if (get_user(x, &argp->handle)) in compat_drm_sg_free()
854 drm_wait_vblank32_t __user *argp = (void __user *)arg; in compat_drm_wait_vblank() local
859 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_wait_vblank()
873 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_wait_vblank()
895 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; in compat_drm_mode_addfb2() local
901 if (copy_from_user(&req64, argp, in compat_drm_mode_addfb2()
905 if (copy_from_user(&req64.modifier, &argp->modifier, in compat_drm_mode_addfb2()
913 if (put_user(req64.fb_id, &argp->fb_id)) in compat_drm_mode_addfb2()