Lines Matching refs:map
123 void drm_legacy_ioremap(struct drm_local_map *map, struct drm_device *dev) in drm_legacy_ioremap() argument
125 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap()
126 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap()
128 map->handle = ioremap(map->offset, map->size); in drm_legacy_ioremap()
132 void drm_legacy_ioremap_wc(struct drm_local_map *map, struct drm_device *dev) in drm_legacy_ioremap_wc() argument
134 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap_wc()
135 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap_wc()
137 map->handle = ioremap_wc(map->offset, map->size); in drm_legacy_ioremap_wc()
141 void drm_legacy_ioremapfree(struct drm_local_map *map, struct drm_device *dev) in drm_legacy_ioremapfree() argument
143 if (!map->handle || !map->size) in drm_legacy_ioremapfree()
146 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremapfree()
147 vunmap(map->handle); in drm_legacy_ioremapfree()
149 iounmap(map->handle); in drm_legacy_ioremapfree()