Searched refs:open_arg (Results 1 – 8 of 8) sorted by relevance
/third_party/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()
|
/third_party/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()
|
/third_party/libdrm/amdgpu/ |
D | amdgpu_bo.c | 253 struct drm_gem_open open_arg = {}; in amdgpu_bo_import() local 320 open_arg.name = shared_handle; in amdgpu_bo_import() 321 r = drmIoctl(dev->flink_fd, DRM_IOCTL_GEM_OPEN, &open_arg); in amdgpu_bo_import() 326 handle = open_arg.handle; in amdgpu_bo_import() 327 alloc_size = open_arg.size; in amdgpu_bo_import() 338 open_arg.handle); in amdgpu_bo_import() 342 open_arg.handle = 0; in amdgpu_bo_import() 375 if (flink_name && open_arg.handle) in amdgpu_bo_import() 376 drmCloseBufferHandle(dev->flink_fd, open_arg.handle); in amdgpu_bo_import()
|
/third_party/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 472 struct drm_gem_open open_arg = {}; in virgl_drm_winsys_resource_create_handle() local 531 memset(&open_arg, 0, sizeof(open_arg)); in virgl_drm_winsys_resource_create_handle() 532 open_arg.name = whandle->handle; in virgl_drm_winsys_resource_create_handle() 533 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in virgl_drm_winsys_resource_create_handle() 538 res->bo_handle = open_arg.handle; in virgl_drm_winsys_resource_create_handle()
|
/third_party/mesa3d/src/gallium/winsys/radeon/drm/ |
D | radeon_drm_bo.c | 1226 struct drm_gem_open open_arg = {}; in radeon_winsys_bo_from_handle() local 1227 memset(&open_arg, 0, sizeof(open_arg)); in radeon_winsys_bo_from_handle() 1229 open_arg.name = whandle->handle; in radeon_winsys_bo_from_handle() 1230 if (drmIoctl(ws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in radeon_winsys_bo_from_handle() 1234 handle = open_arg.handle; in radeon_winsys_bo_from_handle() 1235 size = open_arg.size; in radeon_winsys_bo_from_handle()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_bufmgr.c | 545 struct drm_gem_open open_arg = { .name = handle }; in crocus_bo_gem_create_from_name() local 546 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in crocus_bo_gem_create_from_name() 557 bo = find_and_ref_external_bo(bufmgr->handle_table, open_arg.handle); in crocus_bo_gem_create_from_name() 567 bo->size = open_arg.size; in crocus_bo_gem_create_from_name() 570 bo->gem_handle = open_arg.handle; in crocus_bo_gem_create_from_name()
|
/third_party/libdrm/intel/ |
D | intel_bufmgr_gem.c | 1069 struct drm_gem_open open_arg; in drm_intel_bo_gem_create_from_name() local 1085 memclear(open_arg); in drm_intel_bo_gem_create_from_name() 1086 open_arg.name = handle; in drm_intel_bo_gem_create_from_name() 1089 &open_arg); in drm_intel_bo_gem_create_from_name() 1101 &open_arg.handle, sizeof(open_arg.handle), bo_gem); in drm_intel_bo_gem_create_from_name() 1114 bo_gem->bo.size = open_arg.size; in drm_intel_bo_gem_create_from_name() 1121 bo_gem->gem_handle = open_arg.handle; in drm_intel_bo_gem_create_from_name() 1122 bo_gem->bo.handle = open_arg.handle; in drm_intel_bo_gem_create_from_name()
|
/third_party/mesa3d/src/gallium/drivers/iris/ |
D | iris_bufmgr.c | 1254 struct drm_gem_open open_arg = { .name = handle }; in iris_bo_gem_create_from_name() local 1255 int ret = intel_ioctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in iris_bo_gem_create_from_name() 1266 bo = find_and_ref_external_bo(bufmgr->handle_table, open_arg.handle); in iris_bo_gem_create_from_name() 1272 struct drm_gem_close close = { .handle = open_arg.handle, }; in iris_bo_gem_create_from_name() 1279 bo->size = open_arg.size; in iris_bo_gem_create_from_name() 1281 bo->gem_handle = open_arg.handle; in iris_bo_gem_create_from_name()
|