Lines Matching defs:handle
48 ptr->handle, ptr->size);
68 .handle = bo->handle,
119 .handle = bo->handle,
130 .handle = bo->handle,
160 c.handle = bo->handle;
163 fprintf(stderr, "close object %d: %s\n", bo->handle, strerror(errno));
255 bo->handle = create.handle;
381 uint32_t handle, uint32_t size)
389 bo = util_hash_table_get(screen->bo_handles, (void*)(uintptr_t)handle);
398 bo->handle = handle;
404 vc4_simulator_open_from_handle(screen->fd, bo->handle, bo->size);
408 _mesa_hash_table_insert(screen->bo_handles, (void *)(uintptr_t)handle, bo);
428 return vc4_bo_open_handle(screen, o.handle, o.size);
434 uint32_t handle;
435 int ret = drmPrimeFDToHandle(screen->fd, fd, &handle);
438 fprintf(stderr, "Failed to get vc4 handle for dmabuf %d\n", fd);
449 return vc4_bo_open_handle(screen, handle, size);
456 int ret = drmPrimeHandleToFD(bo->screen->fd, bo->handle,
460 bo->handle);
466 _mesa_hash_table_insert(bo->screen->bo_handles, (void *)(uintptr_t)bo->handle, bo);
495 bo->handle = create.handle;
516 .handle = bo->handle,
521 bo->handle, strerror(errno));
574 static int vc4_wait_bo_ioctl(int fd, uint32_t handle, uint64_t timeout_ns)
577 .handle = handle,
594 if (vc4_wait_bo_ioctl(screen->fd, bo->handle, 0) == -ETIME) {
600 int ret = vc4_wait_bo_ioctl(screen->fd, bo->handle, timeout_ns);
624 map.handle = bo->handle;
636 bo->handle, (long long)offset, bo->size);