Searched refs:vram_node (Results 1 – 7 of 7) sorted by relevance
/linux-5.19.10/drivers/gpu/drm/virtio/ |
D | virtgpu_vram.c | 15 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()
|
D | virtgpu_object.c | 90 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()
|
D | virtgpu_drv.h | 111 struct drm_mm_node vram_node; member
|
/linux-5.19.10/drivers/gpu/drm/etnaviv/ |
D | etnaviv_mmu.c | 133 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 …]
|
D | etnaviv_gem.h | 29 struct drm_mm_node vram_node; member
|
/linux-5.19.10/drivers/gpu/drm/msm/ |
D | msm_gem.c | 28 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()
|
D | msm_gem.h | 137 struct drm_mm_node *vram_node; member
|