Lines Matching defs:map
257 DRM_ERROR("obj %p map incorrect 0x%lx != 0x%lx",
278 drm_local_map_t *map;
293 map = drm_alloc(sizeof (struct drm_local_map), DRM_MEM_MAPS);
294 if (map == NULL) {
295 DRM_DEBUG("map == NULL");
299 map->handle = obj;
300 map->offset = (uintptr_t)map->handle;
301 map->offset &= 0xffffffffUL;
302 map->size = obj->real_size;
303 map->type = _DRM_GEM;
304 map->callback = 0;
305 map->flags = _DRM_WRITE_COMBINING | _DRM_REMOVABLE;
306 map->umem_cookie =
308 if (map->umem_cookie == NULL) {
313 obj->maplist.map = map;
337 gfxp_umem_cookie_destroy(map->umem_cookie);
339 drm_free(map, sizeof (struct drm_local_map), DRM_MEM_MAPS);
680 struct drm_local_map *map = obj->maplist.map;
696 gfxp_umem_cookie_destroy(map->umem_cookie);
697 drm_free(map, sizeof (struct drm_local_map), DRM_MEM_MAPS);
774 * if already have a map, return.
804 struct ddi_umem_cookie *umem_cookie = obj->maplist.map->umem_cookie;
807 if (obj->maplist.map->gtt_mmap == 0) {
812 if (obj->maplist.map->gtt_mmap == 1) {
814 obj->maplist.map->gtt_mmap = 0;