Lines Matching defs:map
415 drm_local_map_t *map;
483 TAILQ_FOREACH(map, &dp->maplist, link) {
485 ((u_offset_t)((uintptr_t)map->handle) & 0xffffffff))
494 if (map == NULL) {
495 TAILQ_FOREACH(map, &dp->maplist, link) {
496 if (handle == (map->offset & 0xffffffff))
501 if (map == NULL) {
505 cmn_err(CE_WARN, "Can't find map, offset=0x%llx, len=%x\n",
508 TAILQ_FOREACH(map, &dp->maplist, link) {
509 tmp = (u_offset_t)((uintptr_t)map->handle) & 0xffffffff;
510 cmn_err(CE_WARN, "map(handle=0x%p, size=0x%lx,type=%d,"
511 "offset=0x%lx), handle=%llx, tmp=%lld", map->handle,
512 map->size, map->type, map->offset, handle, tmp);
517 if (map->flags & _DRM_RESTRICTED) {
519 cmn_err(CE_WARN, "restricted map\n");
524 switch (map->type) {
535 (map->type);
545 map->offset, (uint_t)len, ®off);
564 regno, map->type, (unsigned long) handle,
574 if (map->drm_umem_cookie == NULL)
576 length = ptob(btopr(map->size));
578 map->drm_umem_cookie, 0, length,
597 koff = map->offset - aperbase;
599 kva = map->dev_addr;
618 koff = map->offset - (unsigned long)(caddr_t)dp->sg->virtual;
619 kva = map->dev_addr + koff;
621 if (length > map->size) {
623 "mapsize=0x%lx,len=0x%lx", map->offset,
624 dp->sg->virtual, map->size, len);