Lines Matching refs:userptr
945 struct drm_i915_gem_userptr userptr; in drm_intel_gem_bo_alloc_userptr() local
959 memclear(userptr); in drm_intel_gem_bo_alloc_userptr()
960 userptr.user_ptr = (__u64)((unsigned long)addr); in drm_intel_gem_bo_alloc_userptr()
961 userptr.user_size = size; in drm_intel_gem_bo_alloc_userptr()
962 userptr.flags = flags; in drm_intel_gem_bo_alloc_userptr()
966 &userptr); in drm_intel_gem_bo_alloc_userptr()
975 bo_gem->gem_handle = userptr.handle; in drm_intel_gem_bo_alloc_userptr()
1014 struct drm_i915_gem_userptr userptr; in has_userptr() local
1026 memclear(userptr); in has_userptr()
1027 userptr.user_ptr = (__u64)(unsigned long)ptr; in has_userptr()
1028 userptr.user_size = pgsz; in has_userptr()
1031 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); in has_userptr()
1033 if (errno == ENODEV && userptr.flags == 0) { in has_userptr()
1034 userptr.flags = I915_USERPTR_UNSYNCHRONIZED; in has_userptr()
1049 bufmgr_gem->userptr_active.handle = userptr.handle; in has_userptr()