Lines Matching defs:map
191 return (entry->map);
205 drm_local_map_t *map = NULL;
216 map = __find_local_map(drm_dev, off);
217 if (!map) {
225 *pvtp = map->handle;
302 drm_gem_map, /* devmap_ops map routine */
310 struct drm_local_map *map, size_t len, size_t *maplen)
316 map->offset, (uint_t)len, ®off);
336 struct drm_local_map *map, size_t len, size_t *maplen)
340 if (!map->umem_cookie)
343 len = ptob(btopr(map->size));
346 NULL, map->umem_cookie, 0, len, PROT_ALL,
359 struct drm_local_map *map, size_t len, size_t *maplen)
372 &drm_devmap_callbacks, map->umem_cookie, 0, len, PROT_ALL,
385 struct drm_local_map *map, size_t len, size_t *maplen)
390 if (len > map->size) {
393 map->offset, dev->sg->virtual, map->size, len);
398 &drm_devmap_callbacks, map->umem_cookie, 0, len, PROT_ALL,
411 struct drm_local_map *map, size_t *maplen)
416 if (map->callback == 1) {
420 if (!map->umem_cookie)
424 map->umem_cookie, 0, map->size, PROT_ALL,
431 *maplen = map->size;
599 drm_local_map_t *map = NULL;
621 map = __find_local_map(dev, offset);
622 if (!map) {
626 if (map->flags & _DRM_RESTRICTED) {
632 switch (map->type) {
635 return (__devmap_general(dev, dhp, map, len, maplen));
638 return (__devmap_shm(dev, dhp, map, len, maplen));
641 return (__devmap_agp(dev, dhp, map, len, maplen));
644 return (__devmap_sg(dev, dhp, map, len, maplen));
647 return (__devmap_gem(dev, dhp, map, maplen));
790 return (_entry->map);