Home
last modified time | relevance | path

Searched refs:mmap_arg (Results 1 – 6 of 6) sorted by relevance

/third_party/mesa3d/src/intel/tools/
Dintel_sanitize_gpu.c166 struct drm_i915_gem_mmap mmap_arg = { in padding_is_good() local
174 if (mmap_arg.offset == UINT64_MAX) in padding_is_good()
181 ret = libc_ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in padding_is_good()
187 mapped = (uint8_t*) (uintptr_t) mmap_arg.addr_ptr; in padding_is_good()
220 struct drm_i915_gem_mmap mmap_arg = { in create_with_padding() local
227 ret = libc_ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in create_with_padding()
233 noise_values = (uint8_t*) (uintptr_t) mmap_arg.addr_ptr; in create_with_padding()
Dintel_noop_drm_shim.c116 struct drm_i915_gem_mmap *mmap_arg = arg; in i915_ioctl_gem_mmap() local
117 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_arg->handle); in i915_ioctl_gem_mmap()
126 mmap_arg->addr_ptr = (uint64_t) (bo->map + mmap_arg->offset); in i915_ioctl_gem_mmap()
/third_party/libdrm/intel/
Dintel_bufmgr_gem.c1422 struct drm_i915_gem_mmap mmap_arg; in drm_intel_gem_bo_map() local
1427 memclear(mmap_arg); in drm_intel_gem_bo_map()
1428 mmap_arg.handle = bo_gem->gem_handle; in drm_intel_gem_bo_map()
1429 mmap_arg.size = bo->size; in drm_intel_gem_bo_map()
1432 &mmap_arg); in drm_intel_gem_bo_map()
1443 VG(VALGRIND_MALLOCLIKE_BLOCK(mmap_arg.addr_ptr, mmap_arg.size, 0, 1)); in drm_intel_gem_bo_map()
1444 bo_gem->mem_virtual = (void *)(uintptr_t) mmap_arg.addr_ptr; in drm_intel_gem_bo_map()
1491 struct drm_i915_gem_mmap_gtt mmap_arg; in map_gtt() local
1496 memclear(mmap_arg); in map_gtt()
1497 mmap_arg.handle = bo_gem->gem_handle; in map_gtt()
[all …]
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_bufmgr.c785 struct drm_i915_gem_mmap mmap_arg = { in crocus_bo_gem_mmap_legacy() local
791 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in crocus_bo_gem_mmap_legacy()
797 void *map = (void *) (uintptr_t) mmap_arg.addr_ptr; in crocus_bo_gem_mmap_legacy()
808 struct drm_i915_gem_mmap_offset mmap_arg = { in crocus_bo_gem_mmap_offset() local
814 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in crocus_bo_gem_mmap_offset()
823 bufmgr->fd, mmap_arg.offset); in crocus_bo_gem_mmap_offset()
970 struct drm_i915_gem_mmap_gtt mmap_arg = { .handle = bo->gem_handle }; in crocus_bo_map_gtt() local
973 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); in crocus_bo_map_gtt()
982 MAP_SHARED, bufmgr->fd, mmap_arg.offset); in crocus_bo_map_gtt()
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c669 struct drm_virtgpu_map mmap_arg; in virgl_drm_resource_map() local
675 memset(&mmap_arg, 0, sizeof(mmap_arg)); in virgl_drm_resource_map()
676 mmap_arg.handle = res->bo_handle; in virgl_drm_resource_map()
677 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_MAP, &mmap_arg)) in virgl_drm_resource_map()
681 qdws->fd, mmap_arg.offset); in virgl_drm_resource_map()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_bufmgr.c1549 struct drm_i915_gem_mmap mmap_arg = { in iris_bo_gem_mmap_legacy() local
1555 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in iris_bo_gem_mmap_legacy()
1561 void *map = (void *) (uintptr_t) mmap_arg.addr_ptr; in iris_bo_gem_mmap_legacy()
1573 struct drm_i915_gem_mmap_offset mmap_arg = { in iris_bo_gem_mmap_offset() local
1593 mmap_arg.flags = I915_MMAP_OFFSET_FIXED; in iris_bo_gem_mmap_offset()
1603 mmap_arg.flags = mmap_offset_for_mode[bo->real.mmap_mode]; in iris_bo_gem_mmap_offset()
1607 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in iris_bo_gem_mmap_offset()
1616 bufmgr->fd, mmap_arg.offset); in iris_bo_gem_mmap_offset()