/external/igt-gpu-tools/tools/ |
D | intel_framebuffer_dump.c | 54 struct drm_gem_open open_arg; in main() local 74 open_arg.name = flink.name; in main() 75 if (drmIoctl(fd, DRM_IOCTL_GEM_OPEN, &open_arg) == 0) { in main() 79 mmap_arg.handle = open_arg.handle; in main() 81 (ptr = mmap(0, open_arg.size, PROT_READ, MAP_SHARED, fd, mmap_arg.offset)) != (void *)-1) { in main() 101 munmap(ptr, open_arg.size); in main() 103 drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &open_arg.handle); in main()
|
/external/libdrm/tests/radeon/ |
D | rbo.c | 54 struct drm_gem_open open_arg; in rbo() local 56 memset(&open_arg, 0, sizeof(open_arg)); in rbo() 57 open_arg.name = handle; in rbo() 58 r = drmIoctl(fd, DRM_IOCTL_GEM_OPEN, &open_arg); in rbo() 63 bo->handle = open_arg.handle; in rbo()
|
/external/libdrm/radeon/ |
D | radeon_bo_gem.c | 85 struct drm_gem_open open_arg; in bo_open() local 87 memset(&open_arg, 0, sizeof(open_arg)); in bo_open() 88 open_arg.name = handle; in bo_open() 89 r = drmIoctl(bom->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in bo_open() 94 bo->base.handle = open_arg.handle; in bo_open() 95 bo->base.size = open_arg.size; in bo_open()
|
/external/libdrm/amdgpu/ |
D | amdgpu_bo.c | 261 struct drm_gem_open open_arg = {}; in amdgpu_bo_import() local 328 open_arg.name = shared_handle; in amdgpu_bo_import() 329 r = drmIoctl(dev->flink_fd, DRM_IOCTL_GEM_OPEN, &open_arg); in amdgpu_bo_import() 334 handle = open_arg.handle; in amdgpu_bo_import() 335 alloc_size = open_arg.size; in amdgpu_bo_import() 346 open_arg.handle); in amdgpu_bo_import() 350 open_arg.handle = 0; in amdgpu_bo_import() 383 if (flink_name && open_arg.handle) in amdgpu_bo_import() 384 amdgpu_close_kms_handle(dev->flink_fd, open_arg.handle); in amdgpu_bo_import()
|
/external/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 422 struct drm_gem_open open_arg = {}; in virgl_drm_winsys_resource_create_handle() local 472 memset(&open_arg, 0, sizeof(open_arg)); in virgl_drm_winsys_resource_create_handle() 473 open_arg.name = whandle->handle; in virgl_drm_winsys_resource_create_handle() 474 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in virgl_drm_winsys_resource_create_handle() 479 res->bo_handle = open_arg.handle; in virgl_drm_winsys_resource_create_handle()
|
/external/mesa3d/src/gallium/winsys/radeon/drm/ |
D | radeon_drm_bo.c | 1229 struct drm_gem_open open_arg = {}; in radeon_winsys_bo_from_handle() local 1230 memset(&open_arg, 0, sizeof(open_arg)); in radeon_winsys_bo_from_handle() 1232 open_arg.name = whandle->handle; in radeon_winsys_bo_from_handle() 1233 if (drmIoctl(ws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in radeon_winsys_bo_from_handle() 1237 handle = open_arg.handle; in radeon_winsys_bo_from_handle() 1238 size = open_arg.size; in radeon_winsys_bo_from_handle()
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_bufmgr.c | 692 struct drm_gem_open open_arg = { .name = handle }; in iris_bo_gem_create_from_name() local 693 int ret = gen_ioctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in iris_bo_gem_create_from_name() 704 bo = find_and_ref_external_bo(bufmgr->handle_table, open_arg.handle); in iris_bo_gem_create_from_name() 714 bo->size = open_arg.size; in iris_bo_gem_create_from_name() 716 bo->gem_handle = open_arg.handle; in iris_bo_gem_create_from_name()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_bufmgr.c | 783 struct drm_gem_open open_arg = { .name = handle }; in brw_bo_gem_create_from_name() local 784 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in brw_bo_gem_create_from_name() 795 bo = hash_find_bo(bufmgr->handle_table, open_arg.handle); in brw_bo_gem_create_from_name() 808 bo->size = open_arg.size; in brw_bo_gem_create_from_name() 811 bo->gem_handle = open_arg.handle; in brw_bo_gem_create_from_name()
|
/external/libdrm/intel/ |
D | intel_bufmgr_gem.c | 1108 struct drm_gem_open open_arg; in drm_intel_bo_gem_create_from_name() local 1124 memclear(open_arg); in drm_intel_bo_gem_create_from_name() 1125 open_arg.name = handle; in drm_intel_bo_gem_create_from_name() 1128 &open_arg); in drm_intel_bo_gem_create_from_name() 1140 &open_arg.handle, sizeof(open_arg.handle), bo_gem); in drm_intel_bo_gem_create_from_name() 1153 bo_gem->bo.size = open_arg.size; in drm_intel_bo_gem_create_from_name() 1160 bo_gem->gem_handle = open_arg.handle; in drm_intel_bo_gem_create_from_name() 1161 bo_gem->bo.handle = open_arg.handle; in drm_intel_bo_gem_create_from_name()
|