Lines Matching defs:map
520 drm_local_map_t *map = NULL;
587 map = entry->obj->map;
595 if (map == NULL) {
603 TAILQ_FOREACH(map, &dp->maplist, link) {
605 ((u_offset_t)((uintptr_t)map->handle) & 0xffffffff))
614 if (map == NULL) {
615 TAILQ_FOREACH(map, &dp->maplist, link) {
616 if (handle == (map->offset & 0xffffffff))
622 if (map == NULL) {
626 cmn_err(CE_WARN, "Can't find map, offset=0x%llx, len=%x\n",
629 TAILQ_FOREACH(map, &dp->maplist, link) {
630 tmp = (u_offset_t)((uintptr_t)map->handle) & 0xffffffff;
631 cmn_err(CE_WARN, "map(handle=0x%p, size=0x%lx,type=%d,"
632 "offset=0x%lx), handle=%llx, tmp=%lld", map->handle,
633 map->size, map->type, map->offset, handle, tmp);
637 if (map->flags & _DRM_RESTRICTED) {
639 cmn_err(CE_WARN, "restricted map\n");
644 switch (map->type) {
652 map->offset, (uint_t)len, ®off);
666 regno, map->type, handle, offset, len);
674 if (map->drm_umem_cookie == NULL)
676 length = ptob(btopr(map->size));
678 map->drm_umem_cookie, 0, length,
696 koff = map->offset - aperbase;
698 kva = map->dev_addr;
716 koff = map->offset - (unsigned long)(caddr_t)dp->sg->virtual;
717 kva = map->dev_addr + koff;
719 if (length > map->size) {
721 "mapsize=0x%lx,len=0x%lx", map->offset,
722 dp->sg->virtual, map->size, len);
742 if (map->drm_umem_cookie == NULL)
746 NULL, map->drm_umem_cookie, 0, map->size, PROT_ALL,
752 *maplen = map->size;