Lines Matching defs:map
201 return (entry->map);
215 drm_local_map_t *map = NULL;
226 map = __find_local_map(drm_dev, off);
227 if (!map) {
235 *pvtp = map->handle;
312 drm_gem_map, /* devmap_ops map routine */
320 struct drm_local_map *map, size_t len, size_t *maplen)
326 map->offset, (uint_t)len, ®off);
346 struct drm_local_map *map, size_t len, size_t *maplen)
350 if (!map->umem_cookie)
353 len = ptob(btopr(map->size));
356 NULL, map->umem_cookie, 0, len, PROT_ALL,
369 struct drm_local_map *map, size_t len, size_t *maplen)
382 &drm_devmap_callbacks, map->umem_cookie, 0, len, PROT_ALL,
395 struct drm_local_map *map, size_t len, size_t *maplen)
400 if (len > map->size) {
403 map->offset, dev->sg->virtual, map->size, len);
408 &drm_devmap_callbacks, map->umem_cookie, 0, len, PROT_ALL,
421 struct drm_local_map *map, size_t *maplen)
426 if (map->callback == 1) {
430 if (!map->umem_cookie)
434 map->umem_cookie, 0, map->size, PROT_ALL,
441 *maplen = map->size;
609 drm_local_map_t *map = NULL;
631 map = __find_local_map(dev, offset);
632 if (!map) {
636 if (map->flags & _DRM_RESTRICTED) {
642 switch (map->type) {
645 DRM_DEBUG_DRIVER("mapping of type %d, len %x\n", map->type, len);
646 return (__devmap_general(dev, dhp, map, len, maplen));
650 return (__devmap_shm(dev, dhp, map, len, maplen));
654 return (__devmap_agp(dev, dhp, map, len, maplen));
658 return (__devmap_sg(dev, dhp, map, len, maplen));
661 return (__devmap_gem(dev, dhp, map, maplen));
804 return (_entry->map);