Lines Matching defs:handle
85 static void lima_close_kms_handle(struct lima_screen *screen, uint32_t handle)
88 .handle = handle,
105 (void *)(uintptr_t)bo->handle);
114 lima_close_kms_handle(screen, bo->handle);
132 .handle = bo->handle,
308 bo->handle = req.handle;
323 lima_close_kms_handle(screen, bo->handle);
361 bool lima_bo_export(struct lima_bo *bo, struct winsys_handle *handle)
368 switch (handle->type) {
372 .handle = bo->handle,
385 handle->handle = bo->flink_name;
391 (void *)(uintptr_t)bo->handle, bo);
394 handle->handle = bo->handle;
398 if (drmPrimeHandleToFD(screen->fd, bo->handle, DRM_CLOEXEC,
399 (int*)&handle->handle))
404 (void *)(uintptr_t)bo->handle, bo);
414 struct winsys_handle *handle)
419 unsigned h = handle->handle;
423 /* Convert a DMA buf handle to a KMS handle now. */
424 if (handle->type == WINSYS_HANDLE_TYPE_FD) {
428 /* Get a KMS handle. */
447 switch (handle->type) {
472 if (handle->type == WINSYS_HANDLE_TYPE_FD)
484 switch (handle->type) {
492 bo->handle = req.handle;
497 bo->handle = h;
506 if (handle->type == WINSYS_HANDLE_TYPE_SHARED)
510 (void*)(uintptr_t)bo->handle, bo);
513 lima_close_kms_handle(screen, bo->handle);
536 .handle = bo->handle,