Lines Matching refs:handle
50 if (bo->handle) {
51 drmHashDelete(bo->dev->handle_table, bo->handle);
52 drmCloseBufferHandle(bo->dev->fd, bo->handle);
58 /* lookup a buffer from it's handle, call w/ table_lock held: */
59 static struct etna_bo *lookup_bo(void *tbl, uint32_t handle)
63 if (!drmHashLookup(tbl, handle, (void **)&bo)) {
76 uint32_t size, uint32_t handle, uint32_t flags)
81 drmCloseBufferHandle(dev->fd, handle);
87 bo->handle = handle;
91 /* add ourselves to the handle table: */
92 drmHashInsert(dev->handle_table, handle, bo);
118 bo = bo_from_handle(dev, size, req.handle, flags);
137 .handle = bo->handle,
173 bo = lookup_bo(dev->handle_table, req.handle);
177 bo = bo_from_handle(dev, req.size, req.handle, 0);
195 uint32_t handle;
199 * returned handle.
203 ret = drmPrimeFDToHandle(dev->fd, fd, &handle);
209 bo = lookup_bo(dev->handle_table, handle);
217 bo = bo_from_handle(dev, size, handle, 0);
252 .handle = bo->handle,
274 return bo->handle;
284 ret = drmPrimeHandleToFD(bo->dev->fd, bo->handle, DRM_CLOEXEC,
322 .handle = bo->handle,
335 .handle = bo->handle,