Lines Matching refs:kvaddr
137 rk_obj->kvaddr = vmap(rk_obj->pages, rk_obj->num_pages, VM_MAP, in rockchip_gem_alloc_iommu()
139 if (!rk_obj->kvaddr) { in rockchip_gem_alloc_iommu()
167 rk_obj->kvaddr = dma_alloc_attrs(drm->dev, obj->size, in rockchip_gem_alloc_dma()
170 if (!rk_obj->kvaddr) { in rockchip_gem_alloc_dma()
193 vunmap(rk_obj->kvaddr); in rockchip_gem_free_iommu()
203 dma_free_attrs(drm->dev, obj->size, rk_obj->kvaddr, rk_obj->dma_addr, in rockchip_gem_free_dma()
234 return dma_mmap_attrs(drm->dev, vma, rk_obj->kvaddr, rk_obj->dma_addr, in rockchip_drm_gem_object_mmap_dma()
440 ret = dma_get_sgtable_attrs(drm->dev, sgt, rk_obj->kvaddr, in rockchip_gem_prime_get_sg_table()
520 if (rk_obj->kvaddr) in rockchip_gem_prime_vmap()
521 vaddr = rk_obj->kvaddr; in rockchip_gem_prime_vmap()
534 iosys_map_set_vaddr(map, rk_obj->kvaddr); in rockchip_gem_prime_vmap()
545 if (map->vaddr != rk_obj->kvaddr) in rockchip_gem_prime_vunmap()