Lines Matching defs:handle
299 map->handle = obj;
300 map->offset = (uintptr_t)map->handle;
395 * Removes the mapping from handle to filp for this object.
398 drm_gem_handle_delete(struct drm_file *filp, u32 handle)
408 * use-after-free later. Given the frequency of our handle lookups,
415 obj = idr_list_find(&filp->object_idr, handle);
423 (void) idr_list_remove(&filp->object_idr, handle);
435 * @file: drm file-private structure to remove the dumb handle from
437 * @handle: the dumb handle to remove
444 uint32_t handle)
446 return drm_gem_handle_delete(file, handle);
450 * Create a handle for this object. This adds a handle reference
463 * Get the user-visible handle using idr.
466 /* ensure there is space available to allocate a handle */
493 /** Returns a reference to the object named by the handle. */
497 u32 handle)
504 obj = idr_list_find(&filp->object_idr, handle);
518 * Releases the handle to an mm object.
530 ret = drm_gem_handle_delete(file, args->handle);
552 obj = drm_gem_object_lookup(dev, file, args->handle);
589 * Open an object using the global name, returning a handle and the size.
591 * This handle (of course) holds a reference to the object, so the object
592 * will not go away until the handle is deleted.
601 u32 handle;
614 ret = drm_gem_handle_create(file, obj, &handle);
619 args->handle = handle;
639 * handle references on objects.
736 * Called after the last handle to the object has been closed
757 * This cannot be the last reference, since the handle holds one too.