Home
last modified time | relevance | path

Searched refs:etnaviv_obj (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/etnaviv/
Detnaviv_gem.c20 static void etnaviv_gem_scatter_map(struct etnaviv_gem_object *etnaviv_obj) in etnaviv_gem_scatter_map() argument
22 struct drm_device *dev = etnaviv_obj->base.dev; in etnaviv_gem_scatter_map()
23 struct sg_table *sgt = etnaviv_obj->sgt; in etnaviv_gem_scatter_map()
29 if (etnaviv_obj->flags & ETNA_BO_CACHE_MASK) in etnaviv_gem_scatter_map()
33 static void etnaviv_gem_scatterlist_unmap(struct etnaviv_gem_object *etnaviv_obj) in etnaviv_gem_scatterlist_unmap() argument
35 struct drm_device *dev = etnaviv_obj->base.dev; in etnaviv_gem_scatterlist_unmap()
36 struct sg_table *sgt = etnaviv_obj->sgt; in etnaviv_gem_scatterlist_unmap()
53 if (etnaviv_obj->flags & ETNA_BO_CACHE_MASK) in etnaviv_gem_scatterlist_unmap()
58 static int etnaviv_gem_shmem_get_pages(struct etnaviv_gem_object *etnaviv_obj) in etnaviv_gem_shmem_get_pages() argument
60 struct drm_device *dev = etnaviv_obj->base.dev; in etnaviv_gem_shmem_get_pages()
[all …]
Detnaviv_gem_prime.c19 struct etnaviv_gem_object *etnaviv_obj = to_etnaviv_bo(obj); in etnaviv_gem_prime_get_sg_table() local
22 if (WARN_ON(!etnaviv_obj->pages)) /* should have already pinned! */ in etnaviv_gem_prime_get_sg_table()
25 return drm_prime_pages_to_sg(obj->dev, etnaviv_obj->pages, npages); in etnaviv_gem_prime_get_sg_table()
43 struct etnaviv_gem_object *etnaviv_obj = to_etnaviv_bo(obj); in etnaviv_gem_prime_pin() local
45 mutex_lock(&etnaviv_obj->lock); in etnaviv_gem_prime_pin()
46 etnaviv_gem_get_pages(etnaviv_obj); in etnaviv_gem_prime_pin()
47 mutex_unlock(&etnaviv_obj->lock); in etnaviv_gem_prime_pin()
55 struct etnaviv_gem_object *etnaviv_obj = to_etnaviv_bo(obj); in etnaviv_gem_prime_unpin() local
57 mutex_lock(&etnaviv_obj->lock); in etnaviv_gem_prime_unpin()
59 mutex_unlock(&etnaviv_obj->lock); in etnaviv_gem_prime_unpin()
[all …]
Detnaviv_mmu.c129 struct etnaviv_gem_object *etnaviv_obj = mapping->object; in etnaviv_iommu_remove_mapping() local
134 etnaviv_obj->sgt, etnaviv_obj->base.size); in etnaviv_iommu_remove_mapping()
279 struct etnaviv_gem_object *etnaviv_obj, u32 memory_base, in etnaviv_iommu_map_gem() argument
282 struct sg_table *sgt = etnaviv_obj->sgt; in etnaviv_iommu_map_gem()
286 lockdep_assert_held(&etnaviv_obj->lock); in etnaviv_iommu_map_gem()
292 sgt->nents == 1 && !(etnaviv_obj->flags & ETNA_BO_FORCE_MMU)) { in etnaviv_iommu_map_gem()
309 etnaviv_obj->base.size, va); in etnaviv_iommu_map_gem()
312 etnaviv_obj->base.size); in etnaviv_iommu_map_gem()
317 ret = etnaviv_iommu_map(context, node->start, sgt, etnaviv_obj->base.size, in etnaviv_iommu_map_gem()
Detnaviv_gem.h71 static inline bool is_active(struct etnaviv_gem_object *etnaviv_obj) in is_active() argument
73 return atomic_read(&etnaviv_obj->gpu_active) != 0; in is_active()
Detnaviv_gem_submit.c218 struct etnaviv_gem_object *etnaviv_obj = submit->bos[i].obj; in submit_pin_objects() local
221 mapping = etnaviv_gem_mapping_get(&etnaviv_obj->base, in submit_pin_objects()
235 atomic_inc(&etnaviv_obj->gpu_active); in submit_pin_objects()
375 struct etnaviv_gem_object *etnaviv_obj = submit->bos[i].obj; in submit_cleanup() local
380 atomic_dec(&etnaviv_obj->gpu_active); in submit_cleanup()
387 drm_gem_object_put(&etnaviv_obj->base); in submit_cleanup()
Detnaviv_mmu.h90 struct etnaviv_gem_object *etnaviv_obj, u32 memory_base,
Detnaviv_gpu.h210 struct etnaviv_gem_object *etnaviv_obj,
Detnaviv_gpu.c1270 struct etnaviv_gem_object *etnaviv_obj, in etnaviv_gpu_wait_obj_inactive() argument
1277 return !is_active(etnaviv_obj) ? 0 : -EBUSY; in etnaviv_gpu_wait_obj_inactive()
1282 !is_active(etnaviv_obj), in etnaviv_gpu_wait_obj_inactive()