Home
last modified time | relevance | path

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

/linux-5.19.10/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.c90 if (drm_mm_node_allocated(&vram->vram_node)) in virtio_gpu_cleanup_object()
91 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_cleanup_object()
Dvirtgpu_drv.h111 struct drm_mm_node vram_node; member
/linux-5.19.10/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()
165 if (!free->vram_node.mm) in etnaviv_iommu_find_iova()
176 if (drm_mm_scan_add_block(&scan, &free->vram_node)) { in etnaviv_iommu_find_iova()
185 BUG_ON(drm_mm_scan_remove_block(&scan, &m->vram_node)); in etnaviv_iommu_find_iova()
196 if (!drm_mm_scan_remove_block(&scan, &m->vram_node)) in etnaviv_iommu_find_iova()
251 vram_node); in etnaviv_iommu_insert_exact()
298 node = &mapping->vram_node; in etnaviv_iommu_map_gem()
340 if (mapping->vram_node.mm == &context->mm) in etnaviv_iommu_unmap_gem()
426 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-5.19.10/drivers/gpu/drm/msm/
Dmsm_gem.c28 return (((dma_addr_t)msm_obj->vram_node->start) << PAGE_SHIFT) + in physaddr()
35 return !msm_obj->vram_node; in use_pages()
80 ret = drm_mm_insert_node(&priv->vram.mm, msm_obj->vram_node, npages); in get_pages_vram()
147 drm_mm_remove_node(msm_obj->vram_node); in put_pages_vram()
1192 to_msm_bo(obj)->vram_node = &vma->node; in msm_gem_new()
Dmsm_gem.h137 struct drm_mm_node *vram_node; member