Lines Matching defs:map
255 DRM_ERROR("obj %p map incorrect 0x%lx != 0x%lx",
276 drm_local_map_t *map;
291 map = drm_alloc(sizeof (struct drm_local_map), DRM_MEM_MAPS);
292 if (map == NULL) {
293 DRM_DEBUG("map == NULL");
297 map->handle = obj;
298 map->offset = (uintptr_t)map->handle;
299 map->offset &= 0xffffffffUL;
300 map->size = obj->real_size;
301 map->type = _DRM_GEM;
302 map->callback = 0;
303 map->flags = _DRM_WRITE_COMBINING | _DRM_REMOVABLE;
304 map->umem_cookie =
306 if (map->umem_cookie == NULL) {
311 obj->maplist.map = map;
335 gfxp_umem_cookie_destroy(map->umem_cookie);
337 drm_free(map, sizeof (struct drm_local_map), DRM_MEM_MAPS);
662 struct drm_local_map *map = obj->maplist.map;
678 gfxp_umem_cookie_destroy(map->umem_cookie);
679 drm_free(map, sizeof (struct drm_local_map), DRM_MEM_MAPS);
772 struct ddi_umem_cookie *umem_cookie = obj->maplist.map->umem_cookie;
775 if (obj->maplist.map->gtt_mmap == 0) {
780 if (obj->maplist.map->gtt_mmap == 1) {
782 obj->maplist.map->gtt_mmap = 0;