Lines Matching refs:argp
195 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_getmap() local
201 if (get_user(idx, &argp->offset)) in compat_drm_getmap()
223 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
232 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_addmap() local
238 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
265 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
274 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_rmmap() local
278 if (get_user(handle, &argp->handle)) in compat_drm_rmmap()
303 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() local
307 if (get_user(idx, &argp->idx)) in compat_drm_getclient()
328 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
345 drm_stats32_t __user *argp = (void __user *)arg; in compat_drm_getstats() local
364 if (copy_to_user(argp, &s32, sizeof(s32))) in compat_drm_getstats()
381 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_addbufs() local
387 if (!buf || !access_ok(VERIFY_WRITE, argp, sizeof(*argp))) in compat_drm_addbufs()
390 if (__copy_in_user(buf, argp, offsetof(drm_buf_desc32_t, agp_start)) in compat_drm_addbufs()
391 || __get_user(agp_start, &argp->agp_start) in compat_drm_addbufs()
399 if (__copy_in_user(argp, buf, offsetof(drm_buf_desc32_t, agp_start)) in compat_drm_addbufs()
401 || __put_user(agp_start, &argp->agp_start)) in compat_drm_addbufs()
411 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_markbufs() local
414 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
438 drm_buf_info32_t __user *argp = (void __user *)arg; in compat_drm_infobufs() local
446 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
479 if (__put_user(actual, &argp->count)) in compat_drm_infobufs()
501 drm_buf_map32_t __user *argp = (void __user *)arg; in compat_drm_mapbufs() local
511 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
543 if (__put_user(actual, &argp->count) in compat_drm_mapbufs()
545 || __put_user((unsigned long)addr, &argp->virtual)) in compat_drm_mapbufs()
561 drm_buf_free32_t __user *argp = (void __user *)arg; in compat_drm_freebufs() local
563 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
587 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_setsareactx() local
589 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx()
607 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_getsareactx() local
612 if (!access_ok(VERIFY_WRITE, argp, sizeof(*argp)) in compat_drm_getsareactx()
613 || __get_user(ctx_id, &argp->ctx_id)) in compat_drm_getsareactx()
627 || __put_user((unsigned long)handle, &argp->handle)) in compat_drm_getsareactx()
641 drm_ctx_res32_t __user *argp = (void __user *)arg; in compat_drm_resctx() local
646 if (copy_from_user(&res32, argp, sizeof(res32))) in compat_drm_resctx()
662 || __put_user(res32.count, &argp->count)) in compat_drm_resctx()
685 drm_dma32_t __user *argp = (void __user *)arg; in compat_drm_dma() local
689 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma()
716 || __put_user(d32.request_size, &argp->request_size) in compat_drm_dma()
717 || __put_user(d32.granted_count, &argp->granted_count)) in compat_drm_dma()
731 drm_agp_mode32_t __user *argp = (void __user *)arg; in compat_drm_agp_enable() local
735 if (get_user(m32.mode, &argp->mode)) in compat_drm_agp_enable()
762 drm_agp_info32_t __user *argp = (void __user *)arg; in compat_drm_agp_info() local
786 if (copy_to_user(argp, &i32, sizeof(i32))) in compat_drm_agp_info()
802 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_alloc() local
807 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_alloc()
822 || copy_to_user(argp, &req32, sizeof(req32))) { in compat_drm_agp_alloc()
833 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_free() local
839 || get_user(handle, &argp->handle) in compat_drm_agp_free()
854 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_bind() local
858 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_bind()
873 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_unbind() local
879 || get_user(handle, &argp->handle) in compat_drm_agp_unbind()
895 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_alloc() local
901 if (!request || !access_ok(VERIFY_WRITE, argp, sizeof(*argp)) in compat_drm_sg_alloc()
902 || __get_user(x, &argp->size) in compat_drm_sg_alloc()
912 || __put_user(x >> PAGE_SHIFT, &argp->handle)) in compat_drm_sg_alloc()
921 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_free() local
926 if (!request || !access_ok(VERIFY_WRITE, argp, sizeof(*argp)) in compat_drm_sg_free()
927 || __get_user(x, &argp->handle) in compat_drm_sg_free()
987 drm_wait_vblank32_t __user *argp = (void __user *)arg; in compat_drm_wait_vblank() local
992 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_wait_vblank()
1012 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_wait_vblank()
1033 struct drm_mode_fb_cmd232 __user *argp = (void __user *)arg; in compat_drm_mode_addfb2() local
1039 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mode_addfb2()
1069 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_mode_addfb2()