Lines Matching defs:map
110 void drm_legacy_ioremap(struct drm_local_map *map, struct drm_device *dev)
112 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
113 map->handle = agp_remap(map->offset, map->size, dev);
115 map->handle = ioremap(map->offset, map->size);
119 void drm_legacy_ioremap_wc(struct drm_local_map *map, struct drm_device *dev)
121 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
122 map->handle = agp_remap(map->offset, map->size, dev);
124 map->handle = ioremap_wc(map->offset, map->size);
128 void drm_legacy_ioremapfree(struct drm_local_map *map, struct drm_device *dev)
130 if (!map->handle || !map->size)
133 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP)
134 vunmap(map->handle);
136 iounmap(map->handle);