Lines Matching refs:vram_node
101 etnaviv_iommu_unmap(mmu, mapping->vram_node.start, in etnaviv_iommu_remove_mapping()
103 drm_mm_remove_node(&mapping->vram_node); in etnaviv_iommu_remove_mapping()
148 if (!free->vram_node.mm) in etnaviv_iommu_find_iova()
159 if (drm_mm_scan_add_block(&free->vram_node)) { in etnaviv_iommu_find_iova()
168 BUG_ON(drm_mm_scan_remove_block(&m->vram_node)); in etnaviv_iommu_find_iova()
179 if (!drm_mm_scan_remove_block(&m->vram_node)) in etnaviv_iommu_find_iova()
232 node = &mapping->vram_node; in etnaviv_iommu_map_gem()
265 if (mapping->vram_node.mm == &mmu->mm) in etnaviv_iommu_unmap_gem()
334 if (buf->vram_node.allocated) in etnaviv_iommu_get_cmdbuf_va()
335 return (u32)buf->vram_node.start; in etnaviv_iommu_get_cmdbuf_va()
338 ret = etnaviv_iommu_find_iova(mmu, &buf->vram_node, in etnaviv_iommu_get_cmdbuf_va()
344 ret = iommu_map(mmu->domain, buf->vram_node.start, buf->paddr, in etnaviv_iommu_get_cmdbuf_va()
347 drm_mm_remove_node(&buf->vram_node); in etnaviv_iommu_get_cmdbuf_va()
356 mmu->last_iova = buf->vram_node.start + buf->size + SZ_64K; in etnaviv_iommu_get_cmdbuf_va()
360 return (u32)buf->vram_node.start; in etnaviv_iommu_get_cmdbuf_va()
369 if (mmu->version == ETNAVIV_IOMMU_V2 && buf->vram_node.allocated) { in etnaviv_iommu_put_cmdbuf_va()
371 iommu_unmap(mmu->domain, buf->vram_node.start, buf->size); in etnaviv_iommu_put_cmdbuf_va()
372 drm_mm_remove_node(&buf->vram_node); in etnaviv_iommu_put_cmdbuf_va()