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.
56 extern int drm_supp_device_capability(void *handle, int capid);
239 entry->handle = (void*)(uintptr_t)(alloc.agpa_key + DRM_AGP_KEY_OFFSET);
249 request.handle = (unsigned long)entry->handle;
262 drm_agp_lookup_entry(drm_device_t *dev, void *handle)
267 if (entry->handle == handle)
289 if (!(entry = drm_agp_lookup_entry(dev, (void *)request.handle)))
295 unbind.agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
322 entry = drm_agp_lookup_entry(dev, (void *)request.handle);
326 key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
352 if (!(entry = drm_agp_lookup_entry(dev, (void *)request.handle)))
355 (void) drm_agp_unbind_memory(request.handle, dev);
364 agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;
444 drm_agp_free_memory(void *handle)
469 drm_agp_unbind_memory(unsigned long handle, drm_device_t *dev)
478 entry = drm_agp_lookup_entry(dev, (void *)handle);
483 unbind.agpu_key = (uintptr_t)entry->handle - DRM_AGP_KEY_OFFSET;