• Home
  • Raw
  • Download

Lines Matching refs:argp

193 	drm_map32_t __user *argp = (void __user *)arg;  in compat_drm_getmap()  local
199 if (get_user(idx, &argp->offset)) in compat_drm_getmap()
221 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_getmap()
230 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_addmap() local
236 if (copy_from_user(&m32, argp, sizeof(m32))) in compat_drm_addmap()
263 if (copy_to_user(argp, &m32, sizeof(m32))) in compat_drm_addmap()
272 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_rmmap() local
276 if (get_user(handle, &argp->handle)) in compat_drm_rmmap()
301 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() local
305 if (get_user(idx, &argp->idx)) in compat_drm_getclient()
326 if (copy_to_user(argp, &c32, sizeof(c32))) in compat_drm_getclient()
343 drm_stats32_t __user *argp = (void __user *)arg; in compat_drm_getstats() local
362 if (copy_to_user(argp, &s32, sizeof(s32))) in compat_drm_getstats()
379 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_addbufs() local
386 || !access_ok(VERIFY_WRITE, argp, sizeof(*argp))) in compat_drm_addbufs()
389 if (__copy_in_user(buf, argp, offsetof(drm_buf_desc32_t, agp_start)) in compat_drm_addbufs()
390 || __get_user(agp_start, &argp->agp_start) in compat_drm_addbufs()
398 if (__copy_in_user(argp, buf, offsetof(drm_buf_desc32_t, agp_start)) in compat_drm_addbufs()
400 || __put_user(agp_start, &argp->agp_start)) in compat_drm_addbufs()
410 drm_buf_desc32_t __user *argp = (void __user *)arg; in compat_drm_markbufs() local
413 if (copy_from_user(&b32, argp, sizeof(b32))) in compat_drm_markbufs()
437 drm_buf_info32_t __user *argp = (void __user *)arg; in compat_drm_infobufs() local
445 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_infobufs()
478 if (__put_user(actual, &argp->count)) in compat_drm_infobufs()
500 drm_buf_map32_t __user *argp = (void __user *)arg; in compat_drm_mapbufs() local
510 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_mapbufs()
542 if (__put_user(actual, &argp->count) in compat_drm_mapbufs()
544 || __put_user((unsigned long)addr, &argp->virtual)) in compat_drm_mapbufs()
560 drm_buf_free32_t __user *argp = (void __user *)arg; in compat_drm_freebufs() local
562 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_freebufs()
586 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_setsareactx() local
588 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_setsareactx()
606 drm_ctx_priv_map32_t __user *argp = (void __user *)arg; in compat_drm_getsareactx() local
611 if (!access_ok(VERIFY_WRITE, argp, sizeof(*argp)) in compat_drm_getsareactx()
612 || __get_user(ctx_id, &argp->ctx_id)) in compat_drm_getsareactx()
626 || __put_user((unsigned long)handle, &argp->handle)) in compat_drm_getsareactx()
640 drm_ctx_res32_t __user *argp = (void __user *)arg; in compat_drm_resctx() local
645 if (copy_from_user(&res32, argp, sizeof(res32))) in compat_drm_resctx()
661 || __put_user(res32.count, &argp->count)) in compat_drm_resctx()
684 drm_dma32_t __user *argp = (void __user *)arg; in compat_drm_dma() local
688 if (copy_from_user(&d32, argp, sizeof(d32))) in compat_drm_dma()
715 || __put_user(d32.request_size, &argp->request_size) in compat_drm_dma()
716 || __put_user(d32.granted_count, &argp->granted_count)) in compat_drm_dma()
730 drm_agp_mode32_t __user *argp = (void __user *)arg; in compat_drm_agp_enable() local
734 if (get_user(m32.mode, &argp->mode)) in compat_drm_agp_enable()
761 drm_agp_info32_t __user *argp = (void __user *)arg; in compat_drm_agp_info() local
785 if (copy_to_user(argp, &i32, sizeof(i32))) in compat_drm_agp_info()
801 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_alloc() local
806 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_alloc()
821 || copy_to_user(argp, &req32, sizeof(req32))) { in compat_drm_agp_alloc()
832 drm_agp_buffer32_t __user *argp = (void __user *)arg; in compat_drm_agp_free() local
838 || get_user(handle, &argp->handle) in compat_drm_agp_free()
853 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_bind() local
857 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_agp_bind()
872 drm_agp_binding32_t __user *argp = (void __user *)arg; in compat_drm_agp_unbind() local
878 || get_user(handle, &argp->handle) in compat_drm_agp_unbind()
894 drm_scatter_gather32_t __user *argp = (void __user *)arg; in compat_drm_sg_alloc() local
901 || !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
927 || !access_ok(VERIFY_WRITE, argp, sizeof(*argp)) in compat_drm_sg_free()
928 || __get_user(x, &argp->handle) in compat_drm_sg_free()
988 drm_wait_vblank32_t __user *argp = (void __user *)arg; in compat_drm_wait_vblank() local
993 if (copy_from_user(&req32, argp, sizeof(req32))) in compat_drm_wait_vblank()
1013 if (copy_to_user(argp, &req32, sizeof(req32))) in compat_drm_wait_vblank()