Home
last modified time | relevance | path

Searched refs:vram_node (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_vram.c15 unmap = drm_mm_node_allocated(&vram->vram_node); in virtio_gpu_vram_free()
60 if (vm_size != vram->vram_node.size) in virtio_gpu_vram_mmap()
64 vram->vram_node.start >> PAGE_SHIFT, in virtio_gpu_vram_mmap()
97 addr = dma_map_resource(dev, vram->vram_node.start, in virtio_gpu_vram_map_dma_buf()
98 vram->vram_node.size, dir, in virtio_gpu_vram_map_dma_buf()
104 sg_set_page(sgt->sgl, NULL, vram->vram_node.size, 0); in virtio_gpu_vram_map_dma_buf()
106 sg_dma_len(sgt->sgl) = vram->vram_node.size; in virtio_gpu_vram_map_dma_buf()
153 ret = drm_mm_insert_node(&vgdev->host_visible_mm, &vram->vram_node, in virtio_gpu_vram_map()
168 offset = vram->vram_node.start - vgdev->host_visible_region.addr; in virtio_gpu_vram_map()
180 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_vram_map()
Dvirtgpu_object.c75 if (drm_mm_node_allocated(&vram->vram_node)) in virtio_gpu_cleanup_object()
76 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_cleanup_object()
Dvirtgpu_drv.h109 struct drm_mm_node vram_node; member
/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_mmu.c133 etnaviv_iommu_unmap(context, mapping->vram_node.start, in etnaviv_iommu_remove_mapping()
135 drm_mm_remove_node(&mapping->vram_node); in etnaviv_iommu_remove_mapping()
178 if (!free->vram_node.mm) in etnaviv_iommu_find_iova()
189 if (drm_mm_scan_add_block(&scan, &free->vram_node)) { in etnaviv_iommu_find_iova()
198 BUG_ON(drm_mm_scan_remove_block(&scan, &m->vram_node)); in etnaviv_iommu_find_iova()
209 if (!drm_mm_scan_remove_block(&scan, &m->vram_node)) in etnaviv_iommu_find_iova()
261 vram_node); in etnaviv_iommu_insert_exact()
305 node = &mapping->vram_node; in etnaviv_iommu_map_gem()
347 if (mapping->vram_node.mm == &context->mm) in etnaviv_iommu_unmap_gem()
433 struct drm_mm_node *node = &mapping->vram_node; in etnaviv_iommu_get_suballoc_va()
[all …]
Detnaviv_gem.h29 struct drm_mm_node vram_node; member
/linux-6.6.21/drivers/gpu/drm/msm/
Dmsm_gem.c26 return (((dma_addr_t)msm_obj->vram_node->start) << PAGE_SHIFT) + in physaddr()
33 return !msm_obj->vram_node; in use_pages()
121 ret = drm_mm_insert_node(&priv->vram.mm, msm_obj->vram_node, npages); in get_pages_vram()
188 drm_mm_remove_node(msm_obj->vram_node); in put_pages_vram()
1212 to_msm_bo(obj)->vram_node = &vma->node; in msm_gem_new()
Dmsm_gem.h107 struct drm_mm_node *vram_node; member