Home
last modified time | relevance | path

Searched refs:shmem_obj (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/v3d/
Dv3d_bo.c129 struct drm_gem_shmem_object *shmem_obj; in v3d_bo_create() local
133 shmem_obj = drm_gem_shmem_create(dev, unaligned_size); in v3d_bo_create()
134 if (IS_ERR(shmem_obj)) in v3d_bo_create()
135 return ERR_CAST(shmem_obj); in v3d_bo_create()
136 bo = to_v3d_bo(&shmem_obj->base); in v3d_bo_create()
138 ret = v3d_bo_create_finish(&shmem_obj->base); in v3d_bo_create()
145 drm_gem_shmem_free(shmem_obj); in v3d_bo_create()
Dv3d_mmu.c89 struct drm_gem_shmem_object *shmem_obj = &bo->base; in v3d_mmu_insert_ptes() local
90 struct v3d_dev *v3d = to_v3d_dev(shmem_obj->base.dev); in v3d_mmu_insert_ptes()
95 for_each_sgtable_dma_page(shmem_obj->sgt, &dma_iter, 0) { in v3d_mmu_insert_ptes()
108 shmem_obj->base.size >> V3D_MMU_PAGE_SHIFT); in v3d_mmu_insert_ptes()
/linux-6.1.9/drivers/gpu/drm/virtio/
Dvirtgpu_object.c185 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()