Searched refs:mmap_arg (Results 1 – 7 of 7) sorted by relevance
/third_party/mesa3d/src/intel/tools/ |
D | intel_sanitize_gpu.c | 166 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()
|
D | intel_noop_drm_shim.c | 81 struct drm_i915_gem_mmap *mmap_arg = arg; in i915_ioctl_gem_mmap() local 82 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_arg->handle); in i915_ioctl_gem_mmap() 90 mmap_arg->addr_ptr = (uint64_t) (bo->map + mmap_arg->offset); in i915_ioctl_gem_mmap()
|
/third_party/libdrm/intel/ |
D | intel_bufmgr_gem.c | 1464 struct drm_i915_gem_mmap mmap_arg; in drm_intel_gem_bo_map() local 1469 memclear(mmap_arg); in drm_intel_gem_bo_map() 1470 mmap_arg.handle = bo_gem->gem_handle; in drm_intel_gem_bo_map() 1471 mmap_arg.size = bo->size; in drm_intel_gem_bo_map() 1474 &mmap_arg); in drm_intel_gem_bo_map() 1485 VG(VALGRIND_MALLOCLIKE_BLOCK(mmap_arg.addr_ptr, mmap_arg.size, 0, 1)); in drm_intel_gem_bo_map() 1486 bo_gem->mem_virtual = (void *)(uintptr_t) mmap_arg.addr_ptr; in drm_intel_gem_bo_map() 1533 struct drm_i915_gem_mmap_gtt mmap_arg; in map_gtt() local 1538 memclear(mmap_arg); in map_gtt() 1539 mmap_arg.handle = bo_gem->gem_handle; in map_gtt() [all …]
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_bufmgr.c | 783 struct drm_i915_gem_mmap mmap_arg = { in crocus_bo_gem_mmap_legacy() local 789 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in crocus_bo_gem_mmap_legacy() 795 void *map = (void *) (uintptr_t) mmap_arg.addr_ptr; in crocus_bo_gem_mmap_legacy() 806 struct drm_i915_gem_mmap_offset mmap_arg = { in crocus_bo_gem_mmap_offset() local 812 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in crocus_bo_gem_mmap_offset() 821 bufmgr->fd, mmap_arg.offset); in crocus_bo_gem_mmap_offset() 968 struct drm_i915_gem_mmap_gtt mmap_arg = { .handle = bo->gem_handle }; in crocus_bo_map_gtt() local 971 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); in crocus_bo_map_gtt() 980 MAP_SHARED, bufmgr->fd, mmap_arg.offset); in crocus_bo_map_gtt()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_bufmgr.c | 1016 struct drm_i915_gem_mmap mmap_arg = { in brw_bo_gem_mmap_legacy() local 1022 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in brw_bo_gem_mmap_legacy() 1028 void *map = (void *) (uintptr_t) mmap_arg.addr_ptr; in brw_bo_gem_mmap_legacy() 1038 struct drm_i915_gem_mmap_offset mmap_arg = { in brw_bo_gem_mmap_offset() local 1044 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in brw_bo_gem_mmap_offset() 1053 bufmgr->fd, mmap_arg.offset); in brw_bo_gem_mmap_offset() 1188 struct drm_i915_gem_mmap_gtt mmap_arg = { .handle = bo->gem_handle }; in brw_bo_map_gtt() local 1191 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); in brw_bo_map_gtt() 1200 MAP_SHARED, bufmgr->fd, mmap_arg.offset); in brw_bo_map_gtt()
|
/third_party/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 669 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/ |
D | iris_bufmgr.c | 1443 struct drm_i915_gem_mmap mmap_arg = { in iris_bo_gem_mmap_legacy() local 1449 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in iris_bo_gem_mmap_legacy() 1455 void *map = (void *) (uintptr_t) mmap_arg.addr_ptr; in iris_bo_gem_mmap_legacy() 1467 struct drm_i915_gem_mmap_offset mmap_arg = { in iris_bo_gem_mmap_offset() local 1487 mmap_arg.flags = I915_MMAP_OFFSET_FIXED; in iris_bo_gem_mmap_offset() 1497 mmap_arg.flags = mmap_offset_for_mode[bo->real.mmap_mode]; in iris_bo_gem_mmap_offset() 1501 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in iris_bo_gem_mmap_offset() 1510 bufmgr->fd, mmap_arg.offset); in iris_bo_gem_mmap_offset()
|