Lines Matching refs:handle
189 map->handle = NULL; in drm_addmap_core()
227 map->handle = ioremap_wc(map->offset, in drm_addmap_core()
230 map->handle = ioremap(map->offset, map->size); in drm_addmap_core()
231 if (!map->handle) { in drm_addmap_core()
252 map->handle = vmalloc_user(map->size); in drm_addmap_core()
254 map->size, order_base_2(map->size), map->handle); in drm_addmap_core()
255 if (!map->handle) { in drm_addmap_core()
259 map->offset = (unsigned long)map->handle; in drm_addmap_core()
263 vfree(map->handle); in drm_addmap_core()
267 dev->sigdata.lock = dev->master->lock.hw_lock = map->handle; /* Pointer to lock */ in drm_addmap_core()
329 map->handle = dma_alloc_coherent(dev->dev, in drm_addmap_core()
333 if (!map->handle) { in drm_addmap_core()
346 iounmap(map->handle); in drm_addmap_core()
357 user_token = (map->type == _DRM_SHM) ? (unsigned long)map->handle : in drm_addmap_core()
363 iounmap(map->handle); in drm_addmap_core()
436 map->handle = (void *)(unsigned long)maplist->user_token; in drm_legacy_addmap_ioctl()
496 map->handle = (void *)(unsigned long) r_list->user_token; in drm_legacy_getmap_ioctl()
538 iounmap(map->handle); in drm_legacy_rmmap_locked()
544 vfree(map->handle); in drm_legacy_rmmap_locked()
559 map->handle, in drm_legacy_rmmap_locked()
634 r_list->user_token == (unsigned long)request->handle && in drm_legacy_rmmap_ioctl()