Searched refs:shmem_obj (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_gem.c | 33 struct drm_gem_shmem_object *shmem_obj = shmem_gem_from_pvr_gem(pvr_obj); in pvr_gem_mmap() local 38 return drm_gem_shmem_mmap(shmem_obj, vma); in pvr_gem_mmap() 199 struct drm_gem_shmem_object *shmem_obj = shmem_gem_from_pvr_gem(pvr_obj); in pvr_gem_object_vmap() local 206 err = drm_gem_shmem_vmap(shmem_obj, &map); in pvr_gem_object_vmap() 211 struct device *dev = shmem_obj->base.dev->dev; in pvr_gem_object_vmap() 216 if (shmem_obj->sgt) in pvr_gem_object_vmap() 217 dma_sync_sgtable_for_cpu(dev, shmem_obj->sgt, DMA_BIDIRECTIONAL); in pvr_gem_object_vmap() 241 struct drm_gem_shmem_object *shmem_obj = shmem_gem_from_pvr_gem(pvr_obj); in pvr_gem_object_vunmap() local 242 struct iosys_map map = IOSYS_MAP_INIT_VADDR(shmem_obj->vaddr); in pvr_gem_object_vunmap() 251 struct device *dev = shmem_obj->base.dev->dev; in pvr_gem_object_vunmap() [all …]
|
D | pvr_gem.h | 114 #define shmem_gem_to_pvr_gem(shmem_obj) container_of_const(shmem_obj, struct pvr_gem_object, base) argument
|
/linux-6.12.1/drivers/gpu/drm/v3d/ |
D | v3d_bo.c | 145 struct drm_gem_shmem_object *shmem_obj; in v3d_bo_create() local 149 shmem_obj = drm_gem_shmem_create(dev, unaligned_size); in v3d_bo_create() 150 if (IS_ERR(shmem_obj)) in v3d_bo_create() 151 return ERR_CAST(shmem_obj); in v3d_bo_create() 152 bo = to_v3d_bo(&shmem_obj->base); in v3d_bo_create() 155 ret = v3d_bo_create_finish(&shmem_obj->base); in v3d_bo_create() 162 drm_gem_shmem_free(shmem_obj); in v3d_bo_create()
|
D | v3d_mmu.c | 87 struct drm_gem_shmem_object *shmem_obj = &bo->base; in v3d_mmu_insert_ptes() local 88 struct v3d_dev *v3d = to_v3d_dev(shmem_obj->base.dev); in v3d_mmu_insert_ptes() 93 for_each_sgtable_dma_page(shmem_obj->sgt, &dma_iter, 0) { in v3d_mmu_insert_ptes() 106 shmem_obj->base.size >> V3D_MMU_PAGE_SHIFT); in v3d_mmu_insert_ptes()
|
/linux-6.12.1/drivers/gpu/drm/virtio/ |
D | virtgpu_object.c | 185 struct drm_gem_shmem_object *shmem_obj; in virtio_gpu_object_create() local 194 shmem_obj = drm_gem_shmem_create(vgdev->ddev, params->size); in virtio_gpu_object_create() 195 if (IS_ERR(shmem_obj)) in virtio_gpu_object_create() 196 return PTR_ERR(shmem_obj); in virtio_gpu_object_create() 197 bo = gem_to_virtio_gpu_obj(&shmem_obj->base); in virtio_gpu_object_create() 247 drm_gem_shmem_free(shmem_obj); in virtio_gpu_object_create()
|