Lines Matching defs:handle
50 * this agpa_key as a handle returned to userland. Generally,
51 * 0 is not a valid value for a handle, so we add an offset
52 * to the key to get a handle.
261 entry->handle = alloc.agpa_key + DRM_AGP_KEY_OFFSET;
266 request->handle = entry->handle;
281 * Search for the AGP memory entry associated with a handle.
284 * \param handle AGP memory handle.
285 * \return pointer to the drm_agp_mem structure associated with \p handle.
287 * Walks through drm_agp_head::memory until finding a matching handle.
290 unsigned long handle)
295 if (entry->handle == handle)
320 if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
328 unbind.agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
368 if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
374 uint_t key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
415 if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
418 (void) drm_agp_unbind_memory(request->handle, dev);
422 int agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
500 int drm_agp_free_memory(agp_allocate_t *handle, struct drm_device *dev)
520 int drm_agp_unbind_memory(unsigned long handle, struct drm_device *dev)
529 entry = drm_agp_lookup_entry(dev, handle);
534 unbind.agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
549 * caller to handle that.