Lines Matching refs:argp
179 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_getmap() local
184 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_getmap()
198 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
207 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_addmap() local
212 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
232 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
241 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_rmmap() local
245 if (get_user(handle, &argp->handle)) in compat_drm_rmmap()
265 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() local
269 if (copy_from_user(&c32, argp, sizeof(c32))) in compat_drm_getclient()
287 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
303 drm_stats32_t __user *argp = (void __user *)arg; in compat_drm_getstats() local
306 if (clear_user(argp, sizeof(drm_stats32_t))) in compat_drm_getstats()
324 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_addbufs() local
329 if (copy_from_user(&desc32, argp, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs()
346 if (copy_to_user(argp, &desc32, sizeof(drm_buf_desc32_t))) in compat_drm_addbufs()
356 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_markbufs() local
359 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
401 drm_buf_info32_t __user *argp = (void __user *)arg; in compat_drm_infobufs() local
404 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
414 if (put_user(req32.count, &argp->count)) in compat_drm_infobufs()
464 drm_buf_map32_t __user *argp = (void __user *)arg; in compat_drm_mapbufs() local
468 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
477 if (put_user(req32.count, &argp->count) in compat_drm_mapbufs()
478 || put_user(req32.virtual, &argp->virtual)) in compat_drm_mapbufs()
494 drm_buf_free32_t __user *argp = (void __user *)arg; in compat_drm_freebufs() local
496 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
514 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_setsareactx() local
516 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx()
530 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_getsareactx() local
533 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_getsareactx()
542 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_getsareactx()
556 drm_ctx_res32_t __user *argp = (void __user *)arg; in compat_drm_resctx() local
561 if (copy_from_user(&res32, argp, sizeof(res32))) in compat_drm_resctx()
571 if (copy_to_user(argp, &res32, sizeof(res32))) in compat_drm_resctx()
594 drm_dma32_t __user *argp = (void __user *)arg; in compat_drm_dma() local
598 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma()
613 if (put_user(d.request_size, &argp->request_size) in compat_drm_dma()
614 || put_user(d.granted_count, &argp->granted_count)) in compat_drm_dma()
630 drm_agp_mode32_t __user *argp = (void __user *)arg; in compat_drm_agp_enable() local
633 if (get_user(mode.mode, &argp->mode)) in compat_drm_agp_enable()
657 drm_agp_info32_t __user *argp = (void __user *)arg; in compat_drm_agp_info() local
675 if (copy_to_user(argp, &i32, sizeof(i32))) in compat_drm_agp_info()
691 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_alloc() local
696 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_alloc()
708 if (copy_to_user(argp, &req32, sizeof(req32))) { in compat_drm_agp_alloc()
720 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_free() local
723 if (get_user(request.handle, &argp->handle)) in compat_drm_agp_free()
738 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_bind() local
742 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_bind()
754 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_unbind() local
757 if (get_user(request.handle, &argp->handle)) in compat_drm_agp_unbind()
773 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_alloc() local
777 if (get_user(request.size, &argp->size)) in compat_drm_sg_alloc()
786 if (put_user(request.handle >> PAGE_SHIFT, &argp->handle)) in compat_drm_sg_alloc()
795 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_free() local
799 if (get_user(x, &argp->handle)) in compat_drm_sg_free()
844 drm_wait_vblank32_t __user *argp = (void __user *)arg; in compat_drm_wait_vblank() local
849 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_wait_vblank()
863 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_wait_vblank()
885 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; in compat_drm_mode_addfb2() local
891 if (copy_from_user(&req64, argp, in compat_drm_mode_addfb2()
895 if (copy_from_user(&req64.modifier, &argp->modifier, in compat_drm_mode_addfb2()
903 if (put_user(req64.fb_id, &argp->fb_id)) in compat_drm_mode_addfb2()